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:
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):
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:
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:
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:
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:
[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:
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