aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: amuleweb - it just does nothing when trying to connect  (Read 7129 times)

Jacobs

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
amuleweb - it just does nothing when trying to connect
« 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...
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb - it just does nothing when trying to connect
« Reply #1 on: May 17, 2004, 03:26:52 PM »

Same here.
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb - it just does nothing when trying to connect
« Reply #2 on: May 17, 2004, 06:02:26 PM »

Did you install wxBase? stefanero told me that some part of the webserver need it, and i didn't have it :S
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb - it just does nothing when trying to connect
« Reply #3 on: May 17, 2004, 06:08:21 PM »

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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Jacobs

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: amuleweb - it just does nothing when trying to connect
« Reply #4 on: May 19, 2004, 05:24:53 PM »

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?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: amuleweb - it just does nothing when trying to connect
« Reply #5 on: May 19, 2004, 07:55:16 PM »

Yeah, paste the strings of ~/.eMule which beggin with "EC" and the section "[WebServer]"
Logged

Jacobs

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: amuleweb - it just does nothing when trying to connect
« Reply #6 on: May 20, 2004, 02:08:51 PM »

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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb - it just does nothing when trying to connect
« Reply #7 on: May 20, 2004, 02:27:06 PM »

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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb - it just does nothing when trying to connect
« Reply #8 on: May 20, 2004, 02:50:22 PM »

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 :

Code: [Select]
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...

Code: [Select]
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.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb - it just does nothing when trying to connect
« Reply #9 on: May 20, 2004, 03:08:14 PM »

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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb - it just does nothing when trying to connect
« Reply #10 on: May 20, 2004, 09:52:05 PM »

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.
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: amuleweb - it just does nothing when trying to connect
« Reply #11 on: May 20, 2004, 10:29:48 PM »

> 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!
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb - it just does nothing when trying to connect
« Reply #12 on: May 21, 2004, 10:02:49 AM »

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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb - it just does nothing when trying to connect
« Reply #13 on: May 21, 2004, 12:28:51 PM »

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.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb - it just does nothing when trying to connect
« Reply #14 on: May 21, 2004, 01:22:28 PM »

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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."
Pages: [1] 2