aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: amuleweb unreliable  (Read 6535 times)

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
amuleweb unreliable
« on: September 27, 2004, 02:14:36 PM »

Hope you folks can help.

It takes me 3 attempts to log in to the web interface - sometimes the browser displavs logo.jpg, sometimes just the "image not found".

When it eventually lets me in to the webinterface, most times (but not all) it fails to display the images along the top (image not found), and if I click on anything, I get returned to the initial log in screen, but it won't let me log in again after that until I restart amuleweb. Often amuleweb segfaults.

I'm running Gentoo Linux, but did not use the ebuild, but rather followed the step by step install instructions, using...

wgGTK-2.4.2
wxBase-2.4.2
crypto-5.2.1
aMule-cvs

Code: [Select]
bash-2.05b$ ldd /usr/bin/amuleweb
        libpthread.so.0 => /lib/libpthread.so.0 (0x0000002a95658000)
        libwx_base-2.4.so => /usr/lib/libwx_base-2.4.so (0x0000002a9575e000)
        libz.so.1 => /lib/libz.so.1 (0x0000003838500000)
        libstdc++.so.5 => /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x0000003838f00000)
        libm.so.6 => /lib/libm.so.6 (0x0000002a9598d000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x0000003839100000)
        libc.so.6 => /lib/libc.so.6 (0x0000002a95a90000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
        libdl.so.2 => /lib/libdl.so.2 (0x0000002a95c9a000)

I originally tried a stable aMule but got the same problems, so I tried the CVS build. This problem also occurs on my Intel linux box, so it's not the fact that I run amd64 either

I have ~/.aMule/aMule.tmpl and ~/.aMule/webserver/ all set up correctly. This problem occurs with IE6, Mozilla firefox, Konqueror....

Any ideas? I quite like aMule but I need the remote admin capability, without having to resort to Xvnc
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb unreliable
« Reply #1 on: September 27, 2004, 06:13:36 PM »

Strange. Why don't you try a recent CVS version with wxWidgets 2.5.2 (NOT 2.5.1 as amuleweb does not work due to a bug on that version)?
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: amuleweb unreliable
« Reply #2 on: September 27, 2004, 07:14:09 PM »

boutros,

I assume, by your avatar, that you are on AMD64, right? :)

I don't think that amuleweb/amulecmd has a lot of testing on this arch, so, there might be bugs there.

We need a developer with AMD64 asap.

Cheers!
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #3 on: September 28, 2004, 02:53:36 AM »

@Kry: Thanks, it's a good suggestion, but I get compilation errors trying to build amule-cvs against wxGTK-2.5.2. I searched against the errors and some else also has the problem

http://www.amule.org/amule/thread.php?threadid=2730&sid=&hilight=%60SetPrintMode+undeclared

I completely cleaned all previous wxGTK and wxBase files out before the build
I then tried disabling wxcas and rebuilding, but there were further errors relating to the wx headers in /usr/include/wx

Were these compilation problems ever figured out?
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #4 on: September 28, 2004, 03:09:01 AM »

Quote
Originally posted by phoenix
I assume, by your avatar, that you are on AMD64, right? :)

I don't think that amuleweb/amulecmd has a lot of testing on this arch, so, there might be bugs there.

@phoenix: That's right AMD64! the webserver misbehaves in exactly the same way on the Intel P4 box too.
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: amuleweb unreliable
« Reply #5 on: September 28, 2004, 12:19:51 PM »

boutros,

Humm, thats odd, I have no problems here. If I were you, I would compile and install wxWidgets by hand, some of the rpms/debs around are screwed, and I don't think we have an AMD64 binary package on our home page.

Try to make things work on P4, then do the same procedure on AMD64. Webserver runs fine here. To compile wxWidgets-2.4.2 do that:
1) untar the wxGTK-2.4.2 sources and cd to the root of the distribution
2) $ ./configure --disable-debug --enable-optimise --with-opengl --enable-soname --prefix=--prefix=/usr/local/wxGTK-2.4.2 && make
3) untar the wxBase-2.4.2 sources and cd to the root of the distribution
4) $ ./configure --disable-debug --enable-optimise --with-opengl --enable-soname --disable-gui --disable-std_iostreams --prefix=--prefix=/usr/local/wxBase-2.4.2 && make
5) $ su
6) cd to each distribution root and $ make install
7) configure and make aMule with
$ ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --with-wx-config=/usr/local/wxGTK-2.4.2/bin/wx-config --with-wxbase-config=/usr/local/wxBase-2.4.2/bin/wx-config && make
7) to run aMule:
$ LD_LIBRARY_PATH=/usr/local/wxGTK-2.4.2/lib/ /path/to/amule/amule &
8) to run amuleweb:
$ LD_LIBRARY_PATH=/usr/local/wxBase-2.4.2/lib/ /path/to/amuleweb/amuleweb &

Cheers!
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #6 on: September 28, 2004, 02:31:23 PM »

@phoenix: thanks for your suggestions. I was building from source anyway, not from rpm's.

The configure options in your examples differ greatly from the one's in the Wiki so 'll give those a go

[UPDATE] It's just the same..... Broken links and constantly being logged out of the webinterface..... it's curious in the amuleweb console output I see
Code: [Select]
*** imgrequest: /home/johnh/.aMule/webserver//home/johnh/.aMule/webserver/
*** imgrequest: file /home/johnh/.aMule/webserver//home/johnh/.aMule/webserver/ does not exists
Error: can't read from file descriptor 7 (error 21: is a directory)
It looks as though the pathname of an image it's looking for is generated by concatenating OSdirectory and filename, and for some reason, the fully constructed pathname gets to be {OSdirectory}/{OSdirectory}.... bug?

but my .eMule file looks good. I tried removing .eMule and .aMule/ and recreating them.

Code: [Select]
johnh@shuttle johnh $ cat -vte ~/.eMule | grep -i osdirectory
OSDirectory=/home/johnh/.aMule/$
The $ sign at the end notates end-of-line, i.e there are no non-printing control characters between the end of the path name and the end of the line.

File permissions....
Code: [Select]
johnh@shuttle johnh $ ls -l .aMule/
total 2572
drwxrwxrw-  2 johnh users    4096 Sep 26 04:52 Incoming
drwxrwxrw-  2 johnh users    4096 Sep 26 04:52 Temp
-rw-rw-rw-  1 johnh users   36055 Sep 26 04:56 aMule.tmpl
-rw-rw-rw-  1 johnh users     111 Sep 28 13:16 amulesig.dat
-rw-rw-rw-  1 johnh users   89493 Sep 28 13:08 clients.met
-rw-rw-rw-  1 johnh users   88898 Sep 28 12:55 clients.met.BAK
-rw-rw-rw-  1 johnh users     365 Sep 26 04:52 cryptkey.dat
-rw-rw-rw-  1 johnh users       5 Sep 28 12:26 emfriends.met
-rw-rw-rw-  1 johnh users   41416 Sep 28 12:26 known.met
-rw-rw-rw-  1 johnh users 2280358 Sep 28 10:13 known2.met
-rw-rw-rw-  1 johnh users       4 Sep 28 12:55 lastversion
-rw-r--r--  1 johnh users    1295 Sep 28 13:14 logfile
srwx------  1 johnh users       0 Sep 28 12:55 muleconn
-rw-rw-rw-  1 johnh users      48 Sep 28 13:16 onlinesig.dat
-rw-rw-rw-  1 johnh users      61 Sep 28 12:26 preferences.dat
-rw-r-----  1 johnh users   14398 Sep 28 12:55 server.met
-rw-r-----  1 johnh users   13845 Sep 28 12:55 server_met.old
-rw-r--r--  1 johnh users      83 Sep 28 12:26 shareddir.dat
drwxrwxrwx  2 johnh users    4096 Sep 28 13:09 webserver
johnh@shuttle johnh $ ls -l .aMule/webserver/
total 216
-rw-rw-rw-  1 johnh users    91 Sep 26 04:56 GraphCon.gif
-rw-rw-rw-  1 johnh users    91 Sep 26 04:56 GraphDL.gif
-rw-rw-rw-  1 johnh users    91 Sep 26 04:56 GraphUL.gif
-rw-rw-rw-  1 johnh users 12523 Sep 26 04:56 Makefile
-rw-rw-rw-  1 johnh users   895 Sep 26 04:56 Makefile.am
-rw-rw-rw-  1 johnh users 12649 Sep 26 04:56 Makefile.in
-rw-rw-rw-  1 johnh users   625 Sep 26 04:56 add_server.gif
-rw-rw-rw-  1 johnh users   204 Sep 26 04:56 arrow_down.gif
-rw-rw-rw-  1 johnh users    85 Sep 26 04:56 arrow_right.gif
-rw-rw-rw-  1 johnh users   204 Sep 26 04:56 arrow_up.gif
-rw-rw-rw-  1 johnh users    97 Sep 26 04:56 black.gif
-rw-rw-rw-  1 johnh users    97 Sep 26 04:56 blue.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue1.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue2.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue3.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue4.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue5.gif
-rw-rw-rw-  1 johnh users    84 Sep 26 04:56 blue6.gif
-rw-rw-rw-  1 johnh users  1441 Sep 26 04:56 cp_download.gif
-rw-rw-rw-  1 johnh users  1671 Sep 26 04:56 cp_kad.gif
-rw-rw-rw-  1 johnh users  1435 Sep 26 04:56 cp_search.gif
-rw-rw-rw-  1 johnh users  1562 Sep 26 04:56 cp_servers.gif
-rw-rw-rw-  1 johnh users  1055 Sep 26 04:56 cp_settings.gif
-rw-rw-rw-  1 johnh users  1511 Sep 26 04:56 cp_shared.gif
-rw-rw-rw-  1 johnh users  1494 Sep 26 04:56 cp_stats.gif
-rw-rw-rw-  1 johnh users  1592 Sep 26 04:56 emule.gif
-rw-rw-rw-  1 johnh users    97 Sep 26 04:56 green.gif
-rw-rw-rw-  1 johnh users    81 Sep 26 04:56 greenpercent.gif
-rw-rw-rw-  1 johnh users   890 Sep 26 04:56 l_cancel.gif
-rw-rw-rw-  1 johnh users   345 Sep 26 04:56 l_connect.gif
-rw-rw-rw-  1 johnh users   917 Sep 26 04:56 l_down.gif
-rw-rw-rw-  1 johnh users   893 Sep 26 04:56 l_ed2klink.gif
-rw-rw-rw-  1 johnh users   370 Sep 26 04:56 l_info.gif
-rw-rw-rw-  1 johnh users   873 Sep 26 04:56 l_pause.gif
-rw-rw-rw-  1 johnh users   918 Sep 26 04:56 l_resume.gif
-rw-rw-rw-  1 johnh users   915 Sep 26 04:56 l_up.gif
-rw-rw-rw-  1 johnh users  1042 Sep 26 04:56 log.gif
-rw-rw-rw-  1 johnh users 13285 Sep 26 04:56 logo.jpg
-rw-rw-rw-  1 johnh users   166 Sep 26 04:56 main_bg.gif
-rw-rw-rw-  1 johnh users   166 Sep 26 04:56 main_top_bg.gif
-rw-rw-rw-  1 johnh users    82 Sep 26 04:56 red.gif
-rw-rw-rw-  1 johnh users   507 Sep 26 04:56 top_bar_bg.gif
-rw-rw-rw-  1 johnh users   496 Sep 26 04:56 top_bar_bg2.gif
-rw-rw-rw-  1 johnh users    85 Sep 26 04:56 transparent.gif
-rw-rw-rw-  1 johnh users    97 Sep 26 04:56 yellow.gif
johnh@shuttle johnh $
I'm surprised to seach the forums and not find anyone else with this problem. I've had this problem on 3 different linux boxes now. I've tried disabling gzip compression..... i've tried using 2.5.2 of wxWidgets, against which Amule won't compile.... I've checked that I have only one copy of wxWidgets installed.... I have dfferent passwords set up for admin and guest.....
Code: [Select]
ECUseTCPPort=1
ECPort=4712
ECPassword=
[WebServer]
Enabled=1
Port=4080
PageRefreshTime=120
UseGzip=0
UseLowRightsUser=1
Password=****deleted****
PasswordLow=****deleted****
What else can I try?
« Last Edit: September 28, 2004, 02:33:47 PM by boutros »
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #7 on: September 29, 2004, 11:45:16 PM »

Well, I don't quite know why, but the latest amule-cvs is compiling against wxGTK-2.5.2 on the AMD64 platform. (exciting!)

Using the follwing configure flags

wxGTK-2.5.2 : ./configure --prefix=/usr/local/wxGTK-2.5.2 --enable-http --enable-sockets --disable-unicode --disable-gtk2 --with-gtk --with-libpng --with-libjpeg --with-zlib

amule-cvs: ./configure --prefix=/usr --enable-webserver --enable-amulecmd --with-wx-config=/usr/local/wxGTK-2.5.2/bin/wx-config

OMG the compile just finished....!!

Will it work....?? Setting LD_LIBRARY_PATH to /usr/local/wxGTK-2.5.2/lib

No... the webinterface logs me out with every click and has missing links (images) all over the place. Once logged out, I can't log in again.

Help!  ;(
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb unreliable
« Reply #8 on: September 30, 2004, 07:44:09 AM »

hey...
did you look at the wiki.amule.org page...and check out how to setup webserver?

are all the images missing or just a couple?

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #9 on: September 30, 2004, 01:48:03 PM »

@Stefanero: Yes, I first built Amule by following the wiki.

There's something on my 3 systems it doesn't like. All of them Gentoo. They are a PIII, a P4 and an AMD64 system.

It's completely random whether an image is sent to the browser, or a missing link.

The logging out problem, it's like it forgets the session information or something.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb unreliable
« Reply #10 on: September 30, 2004, 03:48:00 PM »

Quote
There's something on my 3 systems it doesn't like. All of them Gentoo. They are a PIII, a P4 and an AMD64 system.

[Unneeded gentoo rant]
Try to find something common on the boxes...
[/Unneeded gentoo rant]
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #11 on: September 30, 2004, 04:29:59 PM »

:rolleyes: haha, I set all 3 up. Maybe it's me!

When I configure wxBase-2.4.2, at the end it says this

Code: [Select]
Which libraries should wxWindows use?
                                       jpeg               none
                                       png                none
                                       regex              sys
                                       tiff               none
                                       zlib               sys

Should it not pick up my libpng and libjpeg? It does for wxGTK. Maybe it's that?
Thanks for all your help and replies BTW
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb unreliable
« Reply #12 on: September 30, 2004, 04:43:28 PM »

I would suggest 2.5.2 at least anyway...but try with 2.4.2 if you want...
if you should try 2..5.2 oyu do not need wxBase anymore btw

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #13 on: September 30, 2004, 05:54:21 PM »

ok.. from clean, and I mean really clean including a reboot and a clean out of all wx stuff. Since the webserver on the stable aMule isn't working for me, and I'm using the later wxWidgets, I'm going to go with Amule CVS. All manual compiled, no ebuilds or rpms used.

find / -name "*wx*" -print | more
Nothing (except the ebuild files in /usr/portage which I'm not going to use)

wget http://puzzle.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.5.2.tar.gz
tar xvfz wxGTK-2.5.2.tar.gz
cd wxGTK-2.5.2
./configure --prefix=/usr --disable-gtk2 --with-gtk --disable-unicode
make
(as root) make install; ldconfig

tar xvfj aMule-cvs-20040930.tar.bz2
cd amule-cvs/
./configure --prefix=/usr --enable-webserver --disable-gtk2 --with-gtk --disable-unicode
make
(as root) make install

(it mentioned Kademlia in the compile output !! Tasty!)

and there's a new Gentoo kernel out. So I'm installing that and rebooting. There goes my uptime (sob!)  :D
cp arch/x86_64/boot/bzImage /boot

ok rebooted, let's try it.....

(sigh) the only images that have been displayed are logo.jpg, on the login screen, and once logged in, all the images are missing except cp_download.gif. Clicking on that logs me out, never to let me log in again....
Logged

boutros

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: amuleweb unreliable
« Reply #14 on: September 30, 2004, 06:07:51 PM »

and if I browse from a remote machine, I get this

Web Server: Started
aMuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :4080
*** parsing url  :: field ses
*** URL parsed. returning
*** parsing url  :: field w
*** URL parsed. returning
*** parsing url  :: field ses
*** URL parsed. returning
inc. fname=/logo.jpg
**** imgrequest: /home/johnh/.aMule/webserver/logo.jpg
Connection closed.

Segmentation fault
Logged
Pages: [1] 2