aMule Forum

English => Multiplatform => Mac OSX => Topic started by: miniMALE on October 13, 2005, 08:41:24 AM

Title: webserver.. where are u?
Post by: miniMALE on October 13, 2005, 08:41:24 AM
I'm going at my parents' home for the weekend and I would use the webserver to manage the program remotely, but when i activate the webserver and restart amule, it gives an error with it..

the error says (it's written in italian) that rhe program can't find the webserver and suggests to install it (from where?  ;( ) or to compile the program itself with the option -enable webserver (but i don't need to compile on osx!  ;(  )

hope someone can help with that...  

i'm wondering if a vnc session can work with the 56k line at my parents' home.



(i love amule! any idea on when the kad will be in the stable version?  :) )
Title: Re: webserver.. where are u?
Post by: miniMALE on October 13, 2005, 08:43:17 AM
maybe it's not important, but i have tiger updated in every single part :)
Title: Re: webserver.. where are u?
Post by: lfroen on October 14, 2005, 06:57:07 AM
Quote
if a vnc session can work with the 56k
Probably yes, but very very slow. Use ssh if you can.
Title: Re: webserver.. where are u?
Post by: lionel77 on October 14, 2005, 07:25:29 AM
miniMale:
The webserver is included with the CVS binaries that I post. However, I think you need to copy the required templates manually to your aMule settings folder (Mental note: we should probably solve this more elegantly in the future). Unfortunately, the wiki is down, and I don't remember the details off the top of my head.
Title: Re: webserver.. where are u?
Post by: ken on October 16, 2005, 07:33:31 AM
Hmm.  amuleweb should be able to find the templates within the aMule.app application bundle.

Besides, miniMALE's error message indicates that aMule is failing to find amuleweb, not that amuleweb is failing to find its templates.  Strange -- I also put code in aMule so that it will find amuleweb properly within its own bundle.  It must be failing.

I wonder if maybe the amuleweb executable program is not set to be executable.  miniMALE, try this, please:

Title: Re: webserver.. where are u?
Post by: guest on October 27, 2005, 02:22:43 PM
with cvs 2005-10-06, it seems that the path to the config folder is not escaped, so the command fails since Application Support contains a space.
if i try to run amuleweb manually, with the escaped path, i get :
Code: [Select]
FATAL ERROR: Cannot find template: defaultthe default folder is in the app bundle and i duplicated it in the amule conf folder.
Title: Re: webserver.. where are u?
Post by: ken on October 27, 2005, 11:12:15 PM
Escaping path names is necessary if/when you pass them on the command line.  It shouldn't be necessary inside a program where the path is stored in a variable by itself (as opposed to stored as a multi-element string which is going to be parsed into its individual elements).  However, your theory is worth checking out.
Title: Re: webserver.. where are u?
Post by: guest on October 28, 2005, 09:09:55 AM
I should have post the startup log in the first place :
Code: [Select]

[Debug] 09:20:36: Launching: /Applications/Utilities/P2P/aMule.app/Contents/MacOS/amuleweb --amule-config-file=/Users/joseph/Library/Application Support/aMule/amule.conf
[Debug] 09:20:36: wxMacExecute Bad bundle
[Debug] 09:20:37: pid=14497
[Debug] 09:20:37: Successfully added notification to the runloop
Unexpected parameter 'Support/aMule/amule.conf'
Usage: amuleweb ...[snipped]
[Debug] 09:20:39: Process ended
Title: Re: webserver.. where are u?
Post by: ken on October 30, 2005, 07:54:17 AM
Ah.  Good catch.  Thanks.  I'll go fix that.
Title: Re: webserver.. where are u?
Post by: pick on November 04, 2005, 07:35:08 PM
I can't connect to aMuleWeb on last cvs...
aMuleWeb is actived on aMule pref panel.
It seems to works :
Code: [Select]
2005-11-04 19:41:25: webserver running on pid 7045but i can't see it on my browser.

I've tried to execute it via terminal and there is what it said :
Code: [Select]
{hadrien@hadrien-2} ->/Applications/aMule.app/Contents/MacOS<- $ ./amuleweb
This is amuleweb CVS rev. 5636
Enter password for mule connection:

Creating client...
Now, doing connection....
Using host 'localhost' port: 4712
Trying to connect (timeout = 10 sec)...
Connection Failed. Unable to connect to the specified host
Title: Re: webserver.. where are u?
Post by: ken on November 05, 2005, 12:29:42 AM
pick: That error means either: 1) aMule wasn't running when you tried to run amuleweb, or 2) amuleweb is trying to connect to aMule using a different port number than aMule is accepting connections on.

Go into aMule's preferences.  In "Remote Controls", enable "Accept external connections" and specify a password in the field below (this is the password that amuleweb uses to authenticate to aMule and is different than the password that you use to login to amuleweb using your browser).

When aMule runs amuleweb for you, amuleweb gets its configuration settings from amule.conf.  When you run amuleweb manually via terminal, it gets its configuration settings from remote.conf.  Because of this, the two methods can have different results.  The easiest way to overcome this is to set everything the way you want it in aMule, which writes amule.conf.  Then, run this command in the terminal:

amuleweb --create-config-from=~/Library/Application\ Support/aMule/amule.conf

which creates remote.conf based off of the settings in amule.conf.

Now that you know they both agree, please try your test again.