aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [SOLVED] Can't connect to amuleweb  (Read 7491 times)

haimovichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
[SOLVED] Can't connect to amuleweb
« 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

« Last Edit: November 18, 2009, 07:25:39 PM by haimovichi »
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Can't connect to amuleweb
« Reply #1 on: November 10, 2009, 09:34:52 PM »

Did you check the FAQ? 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.
Logged

haimovichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to amuleweb
« Reply #2 on: November 11, 2009, 07:16:14 AM »

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.
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Can't connect to amuleweb
« Reply #3 on: November 11, 2009, 06:07:37 PM »

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 is a link to a sceenshot of the preferences dialog 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.

You could also check the aMule log and see if it tells you something about a refused external connection. My log says:
Quote
2009-11-11 17:32:50: ExternalConn.cpp(217): New external connection accepted
Logged

haimovichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to amuleweb
« Reply #4 on: November 16, 2009, 12:02:37 AM »

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?
Logged

haimovichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to amuleweb
« Reply #5 on: November 16, 2009, 12:29:28 AM »

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.
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Can't connect to amuleweb
« Reply #6 on: November 16, 2009, 10:11:31 PM »

That's because you try to access it with the EC port and not the aMuleWeb port. Look at the screenshot I posted.
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. ;)
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Can't connect to amuleweb
« Reply #7 on: November 16, 2009, 10:32:20 PM »

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.
Logged
concordia cum veritate

haimovichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
[SOLVED] Can't connect to amuleweb
« Reply #8 on: November 18, 2009, 07:24:40 PM »

Thank you both.

The problem was not enabeling the Webserver in amule.conf and the wrong port number.   :-[

It works now.  ;D
Logged