aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: What happened to Amuleweb? SVN_240508 on Debian Etch  (Read 25273 times)

gaglia

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 63
What happened to Amuleweb? SVN_240508 on Debian Etch
« on: May 25, 2008, 12:04:45 PM »

I run amuled+amuleweb on a headless Debian server using only Kad. I usually upgrade the SVN version every week or so by apt-upgrade (using the Vollstrecker repo).

Yesterday i upgraded and abruptly Amuleweb stopped working. What i observe is:

Code: [Select]
myserver:/home/amule/.aMule# /etc/init.d/amule-daemon start
Starting amuled: amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
amuled: forking to background - see you
amule-daemon.
myserver:/home/amule/.aMule#


Looking at "top" i see first a PID "amuled", say 7934, then it disappears followed by another PID "amuled" 7936 (the fork) and a PID "amuleweb", say 7938, which after few seconds dies. No amuleweb is running anymore.

Note that amuled is running and operative, i can connect via amulecmd and all is ok. If i try to manually connect amuleweb i get this (note that i set up EC port = 2999 and webserver port = 3000):

Code: [Select]
myserver:/home/amule/.aMule# amuleweb -p 2999 -h myserver -s 3000
This is amuleweb SVN Sat May 24 07:01:45 CEST 2008
Enter password for mule connection:

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

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

Use 'Help' for command list


But nothing happens. If then i try to connect to http://myserver:3000 with the browser, the login page says: "No password specified, login will not be allowed.", amuleweb shell says:

Code: [Select]
Use 'Help' for command list

web client connection accepted
Processing request [original]:
No session opened - will request login
Session created - requesting login
Processing request [redirected]: login.php
web client connection accepted
Session ok, not logged in

It seems to me like amuleweb doesn't find anymore the configuration files, very strange 'cause i didn't change anything in the last days, i just apt-get upgraded :(

Other info you may find useful:

the logfile:
Code: [Select]
2008-05-25 10:42:16: ClientCreditsList.cpp(168): Creditfile loaded, 3731 clients are known
2008-05-25 10:42:16: IPFilter.cpp(109): Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2008-05-25 10:42:16: IPFilter.cpp(333): Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2008-05-25 10:42:16: IPFilter.cpp(333): Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2008-05-25 10:42:16: ExternalConn.cpp(160): *** TCP socket (ECServer) listening on 192.168.11.3:2999
2008-05-25 10:42:16: MuleUDPSocket.cpp(81): Created Server UDP-Socket at port 4668
2008-05-25 10:42:16: MuleUDPSocket.cpp(81): Created Client UDP-Socket at port 4675
2008-05-25 10:42:16: ServerList.cpp(83): Loading server.met file: /home/amule/.aMule/server.met
2008-05-25 10:42:17: ServerList.cpp(168): 352 servers in server.met found
2008-05-25 10:42:17: DownloadQueue.cpp(173): No part files found
2008-05-25 10:42:17: SharedFileList.cpp(352): Found 125 known shared files
2008-05-25 10:42:17: amule.cpp(801): Connecting
2008-05-25 10:42:22: RoutingZone.cpp(188): Read 185 Kad contacts
2008-05-25 10:42:23: amule.cpp(844): webserver running on pid 7938
2008-05-25 10:42:23: Connected to Kad (firewalled)
2008-05-25 10:42:23: ThreadScheduler.cpp(308): ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2008-05-25 10:42:28: Connected to Kad (ok)
2008-05-25 10:48:10: ExternalConn.cpp(218): New external connection accepted
2008-05-25 10:48:10: ExternalConn.cpp(252): Connecting client: aMuleweb SVN
2008-05-25 10:48:10: ExternalConn.cpp(307): Access granted.
2008-05-25 10:52:22: TerminationProcess.cpp(49): Command `'amuleweb' '--amule-config-file=/home/amule/.aMule/amule.conf'' with pid `7938' has finished with status code `0'.

The remote.conf file:
Code: [Select]
Locale=
[EC]
Host=192.168.11.3
Port=2999
Password=ZZZ
[Webserver]
Port=-1
UPnPWebServerEnabled=0
UPnPTCPPort=50001
Template=php-default
UseGzip=0
AllowGuest=0
AdminPassword=ZZZ
GuestPassword=
(both ZZZ passwords are the same hexed MD5 string)


A section of amule.conf:
Code: [Select]
[WebServer]
Enabled=1
Password=ZZZ
PasswordLow=
Port=3000
WebUPnPTCPPort=50001
UPnPWebServerEnabled=0
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
Template=
[ExternalConnect]
AcceptExternalConnections=1
ECAddress=192.168.0.3
ECPort=2999
ECPassword=ZZZ
UPnPECEnabled=0
ShowProgressBar=1
ShowPercent=0
IpFilterClients=1
IpFilterServers=1
UseSecIdent=1

The script /etc/init.d/amule-daemon:
Code: [Select]
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/amuled
WEB=/usr/bin/amuleweb
NAME=amule-daemon
DESC=amuled
RUN_AT_STARTUP=yes
AMULED_USER=youramuleuser


if [ -f /etc/default/$NAME ] ; then
    . /etc/default/$NAME
fi
if [ "$RUN_AT_STARTUP" != "yes" ] ; then
    echo "Amule not to be started. Edit /etc/default/amule first."
    exit 1
fi

set -e

case "$1" in
  start)
    echo -n "Starting $DESC: "
       su $AMULED_USER -c "$DAEMON -f"
       while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done      #row 1
       su $AMULED_USER -c "$WEB --quiet &"                                 #row 2
    echo "$NAME started."
    ;;
  stop)
    echo -n "Stopping $DESC: "
       pkill -u $AMULED_USER
    echo "$NAME."
    ;;
  restart|force-reload)
    echo -n "Restarting $DESC: "
       pkill -u $AMULED_USER
    sleep 10
       su $AMULED_USER -c "$DAEMON -f"
       while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done      #row 3
       su $AMULED_USER -c "$WEB --quiet &"                                 #row 4
    echo "$NAME."
    ;;
  *)
    N=/etc/init.d/$NAME
    echo "Usage: $N {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
esac

exit 0

I also tried commenting rows 1-4 but the same things happen.

Any ideas? o.O

Thank you for your patience ::)
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1546
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #1 on: May 25, 2008, 12:14:09 PM »

Does it work when you start the daemon (and with it amuleweb) by hand? The script is from the 2.1.3 packages from the official repos. It should work, but Maybe this is the reason.
Logged
Homefucking is killing prostitution

gaglia

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 63
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #2 on: May 25, 2008, 05:09:39 PM »

Nope, if i start the script manually it happens tha same thing.
Logged

RRT4

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 67
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #3 on: May 25, 2008, 07:10:48 PM »

same problem here, solved by putting in remote.conf the real webserver port instead of '-1'

Locale=
[EC]
Host=localhost
Port=4712
Password=ZZZ
[Webserver]
Port=4711

Logged

gaglia

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 63
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #4 on: May 26, 2008, 01:38:09 AM »

Tried, still nothing :(
Logged

RRT4

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 67
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #5 on: May 26, 2008, 09:29:21 AM »

why ECAddress in amule.conf and Host in EC section of remote.conf are not set to 'localhost' if amuleweb and amuled run on the same machine?
Logged

gaglia

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 63
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #6 on: May 26, 2008, 12:11:29 PM »

That's because amule runs on a server which serves all my local network, both amul-daemon and amuleweb must be reachable by that subnet (either via amule-gui or browser).
Logged

RRT4

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 67
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #7 on: May 26, 2008, 01:42:06 PM »

my setting is 'localhost' and i can reach amuleweb from whatever bowser at URL http://my_server_local_ip:4711
Logged

gaglia

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 63
Re: What happened to Amuleweb? SVN_240508 on Debian Etch
« Reply #8 on: May 26, 2008, 02:18:31 PM »

In effects it works now O_O but should it behave this way? ??? A daemon listening on "localhost" shouldn't be reachable only from that machine and not from all the private IPs of that machine? Just asking, i'm not sure of that...

And however, why the private IP doesn't work anymore?

Boh... sounds strange... thank you anyway for your help, it works now :) but maybe it needs some investigations...
Logged