aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: webserver.. where are u?  (Read 6073 times)

miniMALE

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
webserver.. where are u?
« 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?  :) )
Logged

miniMALE

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: webserver.. where are u?
« Reply #1 on: October 13, 2005, 08:43:17 AM »

maybe it's not important, but i have tiger updated in every single part :)
Logged

lfroen

  • Guest
Re: webserver.. where are u?
« Reply #2 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.
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: webserver.. where are u?
« Reply #3 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.
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: webserver.. where are u?
« Reply #4 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:

  • Control-click (or right-click) on your aMule application icon and select "Show Package Contents"
  • Open "Contents".  You should see a folder called "MacOS" there.
  • Open Applications -> Utilities -> Terminal
  • Type "ls -l " (note the space at the end of that) but do not press return, yet.
  • Drag the "MacOS" folder icon onto the Terminal window and drop it.
  • Press return in the Terminal window.
  • Copy the output and paste it into a reply to this thread.
Logged

guest

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 54
Re: webserver.. where are u?
« Reply #5 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.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: webserver.. where are u?
« Reply #6 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.
Logged

guest

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 54
Re: webserver.. where are u?
« Reply #7 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
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: webserver.. where are u?
« Reply #8 on: October 30, 2005, 07:54:17 AM »

Ah.  Good catch.  Thanks.  I'll go fix that.
Logged

pick

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
    • http://www.pickzik.com
Re: webserver.. where are u?
« Reply #9 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
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: webserver.. where are u?
« Reply #10 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.
Logged