aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Webinterface crashes after login  (Read 2717 times)

linuxfever

  • Disabled account (bugmenot)
  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Webinterface crashes after login
« on: January 24, 2008, 10:35:59 AM »

Hello,

I installed and configured amule. When I point my browser to http://myIP:4711 then I see the login screen of the aMule Webinterface. But when I type in the password, the browser displays "Connection refused". Sometimes some images were loaded before the webserver crashes. After the crash, "ps" on the console shows me that amuleweb isn't running anymore. I have to restart amuled to load the webserver again. amulecmd works well. Anybody knows this issue? What can I do?

sorry about my english ;)

Thanks!
Logged

lfroen

  • Guest
Re: Webinterface crashes after login
« Reply #1 on: January 24, 2008, 12:48:38 PM »

I need more information to address your problem. What version is that? Did you compiled it yourself? Can you produce core dump of webserver?
Logged

linuxfever

  • Disabled account (bugmenot)
  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Webinterface crashes after login
« Reply #2 on: January 24, 2008, 01:21:34 PM »

Version of aMule, amuleweb and amulecmd is 2.1.3.
I haven't compiled it by myself. I'm running Linux on my NSLU2 (SlugOS), so I installed aMule with the ipk-package from the nslu2-linux.org optware-feed. I followed this tutorial for installation: http://www.nslu2-linux.org/wiki/Optware/Amule

aMule itself runs well, but amuleweb crashes everytime I log into the webinterface
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Webinterface crashes after login
« Reply #3 on: January 24, 2008, 02:05:54 PM »

I don't know nslu2, is it possible to open a terminal and run amuleweb manually, so that you can see its output?
Logged

linuxfever

  • Disabled account (bugmenot)
  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Webinterface crashes after login
« Reply #4 on: January 24, 2008, 02:25:12 PM »

I started amuleweb manually. this is the output from start til the crash on Login:

Code: [Select]
This is amuleweb 2.1.3

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

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

Use 'Help' for command list

Web Server: Started

WSThread: Thread started
aMuleweb$ WSThread: created socket listening on :8080
Processing request [original]:
No session opened - will request login
Session created - requesting login
Session is not logged and request have no password
Processing request [redirected]: login.php
Session ok, not logged in
Processing request [original]:
Session ok, not logged in
Checking password
Password ok
Processing request [redirected]: index.php
Illegal instruction
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Webinterface crashes after login
« Reply #5 on: January 25, 2008, 04:31:37 AM »

Ok, we are almost there. Are you able to run amuleweb inside gdb on this hardware? Or maybe generate a core file to analyze it with gdb? We need to find out where it has crashed. For now I know it was after src/webserver/src/WebServer.cpp:1885.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Webinterface crashes after login
« Reply #6 on: January 25, 2008, 08:31:31 AM »

From my (retired) experience, this totally seems like a aligment issue.
Logged

linuxfever

  • Disabled account (bugmenot)
  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Webinterface crashes after login
« Reply #7 on: January 25, 2008, 09:10:00 AM »

Hi,

sorry but I don't know what gdb is.

Has it something to do with a graphical interface? Then No, there is no X-server running o the machine
Or is it about development/compiling? Unfortunately I have no experience i such things.

I had no idea, that this is so complicated, I thought it is simply a wrong setting in my amule.conf
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Webinterface crashes after login
« Reply #8 on: January 26, 2008, 10:12:37 AM »

linuxfever,

gdb is the debugger, no relation to X whatsoever. You see, we must find out the exact line of the crash, and using a debugger can help a lot. Maybe take a look here:
http://www.amule.org/wiki/index.php/Backtraces
http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

Also, there are lots of information here:
http://www.amule.org/wiki/index.php/Main_Page

Cheers!
Logged

lfroen

  • Guest
Re: Webinterface crashes after login
« Reply #9 on: January 29, 2008, 08:04:24 PM »

Version of aMule, amuleweb and amulecmd is 2.1.3.
I haven't compiled it by myself. I'm running Linux on my NSLU2 (SlugOS), so I installed aMule with the ipk-package from the nslu2-linux.org optware-feed. I followed this tutorial for installation: http://www.nslu2-linux.org/wiki/Optware/Amule
AFAIK - this version is broken. My opinion - buggy compiler, which creates floating point opcodes for CPU without FP unit. amuleweb failing on invalid opcode where floating point division is performed.
Logged