aMule Forum
English => aMule Help => Topic started by: haimovichi on November 09, 2009, 10:36:58 PM
-
Hi,
I'm new to linux and just installed ubuntu server with webmin to control it.
I'm running amuled and amuleweb as services but cannot connet with address http://192.168.1.99:4711/
Tried to find an answer but I don't even know how to check the logs. ???
Please help
-
Did you check the FAQ (http://wiki.amule.org/index.php/FAQ_webserver)? There is also a howto on configuring it.
Could this be a firewall or network issue? You should always make sure that a physical connection is possible.
-
Thanks for your reply.
I think I configured it all (password, external connections, ...). Both of the services are running.
I didn't install any firewall on the server and I can connect with Webmin or openSHH.
-
Do you have the option ticked to start aMuleWeb on startup? Is that the way you start aMuleWeb?
The port (4711) you are trying to access is the number on the right side of "Web server port"?
Here (http://picturepush.com/public/2497075) is a link to a sceenshot of the preferences dialog (http://wiki.amule.org/index.php/Usage_Preferences#Remote_Controls) on my notebook.
After having set the options, simply restart aMule.
Now if you open up a browser on a different machine and enter the IP of the computer running the amule applications followed by the port highlighted in the first screenshot (e.g: 192.168.1.99:46772) you should get to see something similar to this (http://picturepush.com/public/2497099).
You could also check the aMule log and see if it tells you something about a refused external connection. My log says:
2009-11-11 17:32:50: ExternalConn.cpp(217): New external connection accepted
-
I don't have any GUI.
I use this script to start amuled and amuleweb:
#! /bin/sh
### BEGIN INIT INFO
# Provides: amule-daemon
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemonized version of aMule.
# Description: Starts the aMule daemon with the user specified in
# /etc/default/amule-daemon.
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
PROGNAME=amuled
DESC="aMule daemon"
PKGNAME="amule-daemon"
DAEMON=/usr/bin/amuled
DAEMONWEB=/usr/bin/amuleweb
SCRIPTNAME=/etc/init.d/$PKGNAME
WRAPPER=/usr/share/amule/amuled_home_wrapper.sh
WRAPPERWEB=/usr/share/amule/amuleweb_home_wrapper.sh
[ -x "$DAEMON" ] || exit 0
[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME
. /lib/init/vars.sh # has VERBOSE
. /lib/lsb/init-functions
if [ -z "$AMULED_USER" ]; then
log_warning_msg \
"Not starting $DESC, AMULED_USER not set in /etc/default/$PKGNAME."
exit 0
fi
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --exec $DAEMON --user "$AMULED_USER" --chuid "$AMULED_USER" --test >/dev/null || return 1
start-stop-daemon --start --quiet --exec $WRAPPER --user "$AMULED_USER" --chuid "$AMULED_USER" >/dev/null || return 2
start-stop-daemon --start --quiet --exec $DAEMONWEB --user "$AMULED_USER" --chuid "$AMULED_USER" --test >/dev/null || return 1
start-stop-daemon --start --quiet --exec $WRAPPERWEB --user "$AMULED_USER" --chuid "$AMULED_USER" >/dev/null || return 2
}
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
start-stop-daemon --stop --quiet --retry="TERM/30/KILL/5" --exec $DAEMON --user "$AMULED_USER" --chuid "$AMULED_USER"
start-stop-daemon --stop --quiet --retry="TERM/30/KILL/5" --exec $DAEMONWEB --user "$AMULED_USER" --chuid "$AMULED_USER"
return "$?"
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$PROGNAME"
do_start
case "$?" in
0) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
1) [ "$VERBOSE" != no ] && \
log_progress_msg "(already running)" && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$PROGNAME"
do_stop
case "$?" in
0 | 1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$PROGNAME"
do_stop
case "$?" in
0 | 1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1; exit 1 ;; # Old process is still running
*) log_end_msg 1; exit 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
log_end_msg 1
exit 1
;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 3
;;
esac
exit 0
Where can I locate the log file?
-
I found the log file.
When I try to connect http://192.168.1.99:4712/, a new "2009-11-16 01:26:45: New external connection accepted" row in the log file.
But all I can see on the browser is a blank page.
-
That's because you try to access it with the EC port and not the aMuleWeb port. Look at the screenshot I posted (http://picturepush.com/public/2497075).
Next time please pay close attention to the answers you get and the FAQ or help you read as this will save you a lot of time and trouble. ;)
-
I'm running amuled and amuleweb as services but cannot connet with address http://192.168.1.99:4711/
When I try to connect http://192.168.1.99:4712/,
Now 4711 or 4712? Also you should let amuled start amuleweb instead of manually starting it by setting Enabled=1 in the [Webserver] section of amule.conf.
-
Thank you both.
The problem was not enabeling the Webserver in amule.conf and the wrong port number. :-[
It works now. ;D