aMule Forum
English => aMule Help => Topic started by: boutros 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
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
-
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)?
-
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!
-
@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?
-
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.
-
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!
-
@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
*** 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.
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....
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.....
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?
-
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! ;(
-
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
-
@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.
-
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]
-
:rolleyes: haha, I set all 3 up. Maybe it's me!
When I configure wxBase-2.4.2, at the end it says this
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
-
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
-
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....
-
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
-
Could you create a backtrace from it?
-
johnh@shuttle johnh $ gdb /usr/bin/amuleweb
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/amuleweb
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
[Thread debugging using libthread_db enabled]
[New Thread 182903977312 (LWP 4042)]
Enter password for mule connection (return if no pass defined):
Creating client...
Now, doing connection....
Using host 'localhost' port:4712
Trying to connect (timeout = 10 sec)...
Succeeded! Connection established.
---------------------------------
| aMule Web Server |
---------------------------------
Use 'Help' for command list
[New Thread 1082128736 (LWP 4048)]
Web Server: Started
aMuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :4711
[New Thread 1090517344 (LWP 4057)]
*** 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
Cannot find user-level thread for LWP 4042: generic error
(gdb) bt
Cannot fetch general-purpose registers for thread 1082128736: generic error
Cannot fetch general-purpose registers for thread 1082128736: generic error
(gdb) bt full
Cannot fetch general-purpose registers for thread 1082128736: generic error
-
I still get the odd missing image, and occasional log-out, but in general the webinterface now works quite well in rc6! Well done
-
boutros,
Is there any problem you can feel with amule itself?
The thing is, aMule sockets are event driven, while amuleweb sockets are not. I fear this is a wx sockets issue.
In your "normal" (non-amd-64) machines, do you get this too?
Cheers!
-
@Phoenix: Actually if I use IE6 instead of firefox, I get absolutely no problems whatsoever, which is completely different from what I was getting with rc5. With rc5 I had problems no matter what browser.
Yeah rc6 is rock stable. Lovely client... lovely.
--
boutros [fileheaven][CHN][KOR][FIN][MVGroup] http://www.aMule.org running aMule 2.0.0rc6 (uptime 13h11m)
On Razorback 2 [195.245.244.243:4661] with High ID
Down: 68.3 Up: 12.0 (2163 clients waiting)
Down (Session/Total) 2650.21MB/14.49GB
Up (Session/Total) 555.38MB/3.60GB
-
in IE6 works?!?! 8o
oh my god.....
gut good news anyway....