aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Amuleweb fails to start when amuled was started with -f option.  (Read 3513 times)

devel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Amuleweb fails to start when amuled was started with -f option.
« on: January 02, 2009, 07:28:34 PM »

Hello. I've just compiled and installed Amule 2.2.3 at my FreeBSD 7.
Here is my report about amuleweb issue.
Amuleweb cannot start if I run amuled in background mode. If not - everything is okay.
Here is my log. First I start 'amuled -f'. You will see amuleweb message 'Creating client'.
I have been waiting for about 20 minutes, nothing happened. So I pressed ^C and started
'amuled &'. After that I succedded running amuleweb.

Quote
> ps aux | grep amule
ykrapiva  1111  0.0  0.1   388   220  p0  R+    8:16PM   0:00.00 grep amule
> amuled -f
amuled: OnInit - starting timer
Initialising aMuled 2.2.3 using wxGTK2 v2.8.9
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
amuled: forking to background - see you
> amuleweb
This is amuleweb 2.2.3

Creating client...
^C
> ps aux | grep amule
ykrapiva  1121  0.0  1.5 12236  5820  ??  Ss    8:16PM   0:00.00 amuled -f
> kill -9 1121
>
> amuled &
[1] 1128
> amuled: OnInit - starting timer
Initialising aMuled 2.2.3 using wxGTK2 v2.8.9
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
HTTP download thread started
Loading temp files from /home/ykrapiva/.aMule/Temp.
Loading PartFile 11 of 11
All PartFiles Loaded.
Adding file /home/ykrapiva/.aMule/Temp/005.part.met to shares
Adding file /home/ykrapiva/.aMule/Temp/006.part.met to shares
No shareable files found in directory: /home/ykrapiva/music
No shareable files found in directory: /home/ykrapiva/music/Joe Satriani - Discografia 1986 - 2006
No shareable files found in directory: /home/ykrapiva/music/John Petrucci
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended

> amuleweb
This is amuleweb 2.2.3

Creating client...
Succeeded! Connection established to aMule 2.2.3

--------------------------------------
|          aMule Web Server          |
--------------------------------------

Use 'Help' for command list

web client connection accepted
Processing request [original]:
No session opened - will request login
Session created - requesting login
You did not enter any password. Blank password is not allowed.
Processing request [redirected]: login.php
web client connection accepted
Session ok, not logged in
No session opened - will request login
Session created - requesting login

Logged

lfroen

  • Guest
Re: Amuleweb fails to start when amuled was started with -f option.
« Reply #1 on: January 03, 2009, 09:33:57 AM »

Please note this line:
Quote
You did not enter any password. Blank password is not allowed.

Meaning that something wrong w/ your configuration.
Logged

devel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amuleweb fails to start when amuled was started with -f option.
« Reply #2 on: January 03, 2009, 10:09:36 AM »

Wait wait wait... I have not also told amuleweb EC / Admin passwords another time either. And  this was ok, because these things were located at .aMule/remote.conf (I've created it before).
Maybe I don't know if there is any difference in fork and normal mode of amuled... ?

Look, I just want to say that I have all passwords listed in amule.conf and remote.conf.
And amuleweb running without any options just don't want to start if I start amuled in fork mode.
Logged

devel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amuleweb fails to start when amuled was started with -f option.
« Reply #3 on: January 03, 2009, 10:15:35 AM »

Please note this line:
Quote
You did not enter any password. Blank password is not allowed.

Meaning that something wrong w/ your configuration.

Ah sorry, I didn't understand what you were about.
Look, may be at the time I was recording this log I have deleted remote.conf.
This is not about any passwords.
The important thing is that just amuleweb hangs up :\
Logged

devel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amuleweb fails to start when amuled was started with -f option.
« Reply #4 on: January 03, 2009, 10:42:29 PM »

There is one thing that might has relation to my issue.
Amuled started in fork mode doesn't respond to SIGTERM signal.
That's why you can see 'kill -9' command in my log.
Logged

lfroen

  • Guest
Re: Amuleweb fails to start when amuled was started with -f option.
« Reply #5 on: January 04, 2009, 01:39:16 AM »

Amuled started in fork mode doesn't respond to SIGTERM signal.
That may explain why amuleweb fails to connect - daemon doesn't respond to connection request.
Logged