aMule Forum
English => aMule Help => Topic started by: ilrobbby on October 20, 2014, 12:35:29 AM
-
Hello there!
I've compiled amule "aMuleD 2.3.1 compiled with wxGTK2 v2.8.12 (Debugging)", on RHEL 6_5----2.6.32-431.el6.i686(Santiago);
I've configured amule options/preferences with the gui, and sure, I've setup ports and enable RC and web services;
Closed the gui, write and run the daemon with service/initd script:
daemon --user=$USER amuled -f -c /opt/aMule/.amule/
in the log I can see that lines:
"ERROR: ERROR You requested to run web server on startup, but the amuleweb binary cannot be run. Please install the package containing aMule web server, or compile aMule using --enable-webserver and run make install".
I've compiled amule with this options:
--prefix=/opt/aMule --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-wxcas --enable-alcc --enable-debug --enable-upnp
My amule.conf and my initd script are in attachement.
If I try to edit initd script like this:
daemon --user=$USER amuled -f -c /opt/aMule/.amule/ -w /opt/aMule/bin/amuleweb
I get this error:
"ERROR: ERROR You requested to run web server on startup, but the amuleweb binary cannot be run. Please install the package containing aMule web server, or compile aMule using --enable-webserver and run make install".
If I try to run:
/opt/aMule/bin/amuleweb -q &
Process starts and run, but I can't connect to http server page...
If I run without sent it to bg, daemon ask me RC password, but when I write it, no output and no process....
[root@vShare ~]# sudo -u vShare /opt/aMule/bin/amuleweb -v -f /opt/aMule/.amule/remote.conf -p 24700 -s 24600 -A ********
or
[root@vShare ~]# sudo -u vShare /opt/aMule/bin/amuleweb -v -f /opt/aMule/.amule/remote.conf* -p 24700 -s 24600 -A ******** -q &
*remote.conf it's a copy of amule.conf
Output is the same :
looking for template: /opt/aMule/.amule/webserver/default
checking for directory '/root/.aMule/webserver'... no
checking for directory '/opt/aMule/share/amule/webserver'... yes
checking for directory '/opt/aMule/share/amule/webserver/opt/aMule/.amule/webserver/default'... no
checking for directory '/opt/aMule/share/amule/webserver'... yes
checking for directory '/opt/aMule/share/amule/webserver/opt/aMule/.amule/webserver/default'... no
Template /opt/aMule/.amule/webserver/default not found, reverting to default
looking for template: default
checking for directory '/root/.aMule/webserver'... no
checking for directory '/opt/aMule/share/amule/webserver'... yes
checking for directory '/opt/aMule/share/amule/webserver/default'... yes
checking for file '/opt/aMule/share/amule/webserver/default/login.php'... yes
This is amuleweb 2.3.1
Enter password for mule connection:
Creating client...
Connection Failed. Unable to connect to localhost:24700
but netstat say another thing:
tcp 0 0 172.16.4.4:24700 0.0.0.0:* LISTEN
(telnet from another pc on the same subnet and on tcp 26700, works, http on 24600 no, and no socket listens on 24600)
Same thing if I run amuleweb -w as described on wiki...
If I try to run amulegui (that has RC and WEBserver enabled, see image in attachment) with -o oprion (print log messages to stdout), I get this messages:
!2014-10-20 00:21:55: amule.cpp(654): web server is running on pid 20966
2014-10-20 00:21:55: TerminationProcess.cpp(48): Program `'/opt/aMule/bin/amuleweb' '--amule-config-file=/home/vShare/.aMule/amule.conf'' with pid `20966' it's terminate with state `0'.
I really don't have any more idea!
Please help me!
-
Closed the gui, write and run the daemon with service/initd script:
daemon --user=$USER amuled -f -c /opt/aMule/.amule/
in the log I can see that lines:
"ERROR: ERROR You requested to run web server on startup, but the amuleweb binary cannot be run. Please install the package containing aMule web server, or compile aMule using --enable-webserver and run make install".
Make sure the user running the daemon has amuleweb in its PATH. The daemon has to be able to start amuleweb without giving the full path to the executable. Like
# sudo -u vShare amuleweb
should start amuleweb. If instead it gives a "File not found" (or "command not found", or something similar) error, then you need to fix your PATH.
[root@vShare ~]# sudo -u vShare /opt/aMule/bin/amuleweb -v -f /opt/aMule/.amule/remote.conf* -p 24700 -s 24600 -A ******** -q &
*remote.conf it's a copy of amule.conf
remote.conf has a completely different layout than amule.conf, just copying one to the other doesn't work. If you want to create remote.conf based on the settings you set in the gui, you should use
$ amuleweb --create-config-from=/path/to/amule.conf
If you want to place the resulting config file somewhere other than the default location, you should also specify the config file to write:
$ amuleweb --create-config-from=/path/to/amule.conf -f /path/to/remote.conf
-
Hi GonoszTopi!
Thanks for your reply!
I've tried to copy amuleweb binary to the homedir of vshare (/home/vShare/.amule/) and I've create a remote.conf from amule.conf but, unfortunately not works yet...
If I run binary, with o without the "-f" switch, error is:
[vShare@vShare ~]# amuleweb -f /home/vShare/.aMule/remote.conf
This is amuleweb 2.3.1
Creating client...
Connection Failed. Unable to connect to localhost:24700
[vshare@vShare ~]# netstat -anv | grep 24700
tcp 0 0 172.16.4.4:24700 0.0.0.0:* LISTEN
netstat: no support for `AF INET (sctp)' on this system.
netstat: no support for `AF INET (sctp)' on this system.
netstat: no support for `AF IPX' on this system.
netstat: no support for `AF AX25' on this system.
netstat: no support for `AF X25' on this system.
netstat: no support for `AF NETROM' on this system.
if I run it with root and initd script, error is the same of before:
"ERROR: ERROR You requested to run web server on startup, but the amuleweb binary cannot be run. Please install the package containing aMule web server, or compile aMule using --enable-webserver and run make install".
remote.conf:
Locale=
[EC]
Host=localhost
Port=24700
Password=***************
[Webserver]
Port=24600
UPnPWebServerEnabled=0
UPnPTCPPort=50001
Template=default
UseGzip=1
AllowGuest=0
AdminPassword=****************
GuestPassword=
:'(
Have you any other tips for me?
-
Hi GonoszTopi!
I've found a workaround!
Disable webserver on the gui, and start amuleweb binary in this mode:
sudo -u vShare /opt/aMule/bin/amuleweb -f /opt/aMule/.amule/remote.conf -q &
For start amuleweb at boot, i've wrote another init.d script and now it works!
[root@vShare ~]# service aMuleweb start
Starting amuleweb daemon: *
[root@vShare ~]# service aMuleweb status
amuleweb (pid 1049) running
*the "Ok" messages for service start is not showed, but if I echo $?, the previous start command exited correctly with a 0 and process running fine....
But, there is something strange... if I run a ps, I see strange processes:
[root@vShare ~]# ps -elf | grep -i amu
1 S vShare 1027 1 0 80 0 - 15185 - 19:30 ? 00:00:26 amuled -f -c /opt/aMule/.amule/
[b]5 S root 1498 1 0 80 0 - 1339 - 20:16 pts/3 00:00:00 /bin/bash /etc/init.d/aMuleweb start
4 S root 1500 1498 0 80 0 - 1391 - 20:16 pts/3 00:00:00 runuser -s /bin/bash vShare -c ulimit -S -c 0 >/dev/null 2>&1 ; /opt/aMule/bin/amuleweb -q
4 S vShare 1501 1500 0 80 0 - 1266 - 20:16 ? 00:00:00 bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /opt/aMule/bin/amuleweb -q[/b]
0 S vShare 1502 1501 1 80 0 - 3293 - 20:16 ? 00:00:00 /opt/aMule/bin/amuleweb -q
I've tried to understand the bash switch and runuser command, but I don't understand why and who invokes those...
You can understand what happening?
Bye, bye, Robby!
-
Hi
This is strange. I have a repository for RHEL6/CentOS6 here: http://gapf.ninth.su/ and it has current versions of amule (look for package amule-svn). Can you please try it and see if the problem persists? it works for me fine.
Thanks!