aMule Forum
English => aMule Help => Topic started by: Jacobs on May 12, 2004, 12:02:20 PM
-
Hi, I've rc3 up and running with all the howtos read twice or more and I got this problem:
when I start amuleweb, I got:
Web Server: Started
amuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on localhost:4711
then when I try
lynx http://localhost:4711
I got
HTTP request sent; waiting for response.
and it just hangs there forever. It don't ask for password anyhow.
Any ideas? Thanks in advance...
-
Same here.
-
Did you install wxBase? stefanero told me that some part of the webserver need it, and i didn't have it :S
-
right..
best thing to avoid problems with .eMule file setting is always to check if amulecmd is working fine and without any problems...
if you can connect with your amulecmd its not a settings error...
another thing many people forget is to copy webserver src files and aMule.tmpl in ther .aMule dir....
stefanero
-
Nope :(
I've got all the things you mention ok. Can the problem be somewhere else or do I just need to wait for RC4? Would it help if I'd post some parts of my amule config file?
-
Yeah, paste the strings of ~/.eMule which beggin with "EC" and the section "[WebServer]"
-
ECUseTCPPort=1
ECPort=4712
ECPassword=8bf12104d397ca4b8b7a1b8374b23d12
[WebServer]
Password=d41d8cd34f00b504e9800998ecf8427e
PasswordLow=
Port=4711
Enabled=1
UseGzip=1
PageRefreshTime=120
UseLowRightsUser=0
DontCompressAvi=0
hope it helps
-
k, looking good... :(
what is teh output when your start
amuleweb ??
did you compile amuleweb yourself?
and you did copy the webserver src and amule.tmpl in your amule dir? and also run the amuleweb with the right user?
stefanero
-
Hello,
I exactly had the same problem... The amuleweb command won't start on a user account. I don't know why (maybe a bug ? :]). This output is produced :
thoseg@Soltek:~$ amuleweb
This is amuleweb (WebServer)
Enter password for mule connection (return if no pass defined):
Creating client...
Now doing connection...
Using host localhost port 4712
Trying to connect (timeout = 10 sec) ...
Succeeded ! Connection established
---------------------------------
| aMule Web Server |
---------------------------------
Use 'Help' for command list
*** creating web socket and starting listener!
Abandon
In addition an error window pops up under aMule dealing with wxsocket and a signature problem in ReadMsg.
So, I launch amuleweb as root and it launches without error...
Soltek:/home/thoseg# amuleweb
This is amuleweb (WebInterface)
Enter password for mule connection (return if no pass defined):
Creating client...
Now doing connection...
Using host localhost port 4712
Trying to connect (timeout = 10 sec) ...
Succeeded ! Connection established
---------------------------------
| aMule Web Server |
---------------------------------
Use 'Help' for command list
*** creating web socket and starting listener!
*** WebServer: Using port: 4711
Web Server: Started
amuleweb$
I can see at the bottom of the amule's GUI :
Can't load templates: Can't open file /root/.aMule/aMule.tmpl
I do a copy of the webserver directory and the aMule.tmpl to this path and go to http://localhost:4711/
This time the webserver works !!
I hope this post could help you... But be aware that It seems to consume a lot of cpu ! 8o
Sincerly.
-
hey
you maybe run amule as root? or not?
I never seen that type of error before.... but hopefully it helps the others...
what linux are you using btw?
stefanero
-
Hi everybody, 8o
No. I don't run aMule as root ! ;)
At first, I think this error was produced because I don't enter the good password but it's not that.... ?(
I run my own compiled aMule 2.0rc3 under :baby: Debian sid (kernel 2426). If you want another log / info from me, I'm here !
Voilààà
Best regards.
-
> Can't load templates: Can't open file /root/.aMule/aMule.tmpl
:-/ Maybe you are running as a sub-shell under a root account?
Jacobs: veeery weird. I think it'd be nice if you could give stefanero an ssh account to your computer to check the problem.
Greetings!
-
well
can't load templates is not weird when he did not copy the aMule.tmpl in his root amule dir, as he said
and after he fixed that it was doing fine he said....
I am really having to clue on why your amuleweb only runs with root and not with user,
btw you said CPU usaga was high, why linux distribution you use? amuleweb uses here 5-6% of CPU
stefanero
-
Ok,
I investigate a bit more and I discover that I don't remove the package (debian) of amule2.0rc1... :] As you know, the default directory for binaries included in a package is /usr/bin whereas the compiled go to /usr/local/bin.
So, the root launched amuleweb 2.0rc1 from /usr/bin and user the amuleweb 2.0rc3 from /usr/local/bin ! That's the problem.
I do a copy in another directory, of the rc1 binaries and launch amuleweb 2.0rc1 as a user and....it works perfectly ! But the rc3 always won't run... under user AND root. ?(
I hope my explanation cleared the situation and I'm sorry for the trouble !
Sincerly.
-
hmmm
mixing it all up... ;)
well are you sure when you run rc3 amule and rc3 webserver it does not work?
there are some cahnges so it is "normal" taht rc3 webserver can't talk to rc1 amule
but the version with each other should work fine.... (except rc3 without teh patch for any adress)
stefanero
-
Sorry, I've been gone for a few days.
stefanero:
> what is teh output when your start amuleweb ??
+ it's posted in the first post of this thread - nothing weird there
> did you compile amuleweb yourself?
+ well, I've used the gentoo ebuild posted somewhere here on the forums - also I've done some manual adjustments to put the template and src files to ~/.aMule/
> and you did copy the webserver src and amule.tmpl in your amule dir?
+ yep, manually
> and also run the amuleweb with the right user?
+ under a regular user (I think I've tried it with root too, but with the same result - not 100% sure though)
I'm using gentoo linux and aMule-2.0_rc3 - I've used 1.2.6 before - maybe some stuff wasn't cleaned during uninstall?
The only thing that doesn't work is the amuleweb. amulecmd works great, amule itself works quite nice except of a few crashes once in a while.
Hope it helps. I can't give you a ssh account ;) as Jacobo221 suggested, but I can check for you whatever you want...
Thanks for any suggestions
-
Jacobs:
Thinking on the problem thoseg had... Maybe you didn't set the tools flag on the eBuild and you are using aMuleWeb from 1.2.6 since aMuleWeb for v2rc3 wasn't compiled? I'm not sure about this (I'm on Debian, never used Gentoo), but IIRC GePeU's eBuild has a tools flag since rc3, so check that ;-)
Greetings!
-
hi,
I guess I have exactly the same problem here. I can't copy/paste any thing right now, I am not on my computer, but :
- I am using a Debian unstable.
- I removed (purged actually) the binary package for aMule.
- compiled aMule from CVS with the option --enable-webserver.
(basically, I followed both the howto about compilation and the one about the webserver).
When I run amuleweb, everything seems to be fine.
(I get those nice lines:
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on localhost:4711)
but when I try localhost:4711 in any web browser, nothing happens.
On the other hand, amulecmd is working fine.
I tried this with all the CVS versions during the last week, each time removing the previous installation, and I even tried to move .eMule and .aMule out of the way. I also disabled my firewall, tried to use another port ... no change.
Any idea?
thx
I can post here any information/debug trace/output if needed (when I will have my computer again).
-
Are you sure you are using aMuleweb from the same version as the aMule binnary? that is, both are rc3 or CVS from 21/06/2004 or whatever?
Greetings
-
well, yes, I am pretty sure, unless I completely misunderstand what " using aMuleweb from the same version as the aMule binnary".
What I do is the following (today for example):
First as root:
- make uninstall (removing the old installation) and \rm -r amule-cvs
- tar xvfj tar xvfj aMule-cvs-20040621.tar.bz2; cd amule-cvs
- ./configure --enable-webserver
- make (ok, with aMule-cvs-20040621 I have an error here, so I started again with the tarball of yesterday...)
- make install
Then as user:
- \rm -r .aMule/webserver/ .aMule/aMule.tmpl
- cp -r /usr/local/share/amuleweb/* .aMule/ (I also tried to copy the files from the src folder)
- amule
- amuleweb
- and then I try localhost:4711 (and nothing happens)
And again, amulecmd is working perfectly...
Also (/usr/local/bin empty before the make install):
- which amuleweb
/usr/local/bin/amuleweb
- which amule
/usr/local/bin/amule
Do I do something wrong there?
oups.... :] I just tried with aMule rc3 instead of the CVS version, it's working... Sorry for the trouble, I should have tried this from the begining...
-
hehehe
BTW, current CVS's aMuleWeb is kind of broken (sinec some few days ago) AFAIK, so don't use it ;-)
Greetings!