aMule Forum

French => Aide d'aMule => Topic started by: squatrem on September 06, 2004, 07:16:41 AM

Title: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 07:16:41 AM
Bonjour,

Depuis deux jours que je me demene avec amuleweb, je suis obligé de faire appel a vous...
J'utilise amule 2.0.0rc5 sans probleme sous gentoo linux (kernel 2.6.7) tournant sur une platforme amd64 et wxGTK 2.4.2 (GTK 1).

Amuleweb semble se lancer correctement (j'ai suivit a la lettre le howto plusieurs fois) et me donne le message suivant :
Web Server: Started
amuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :4711

Jusqu'ici tout semble aller pour le mieux sauf que .. l'interface ne s'affiche dans aucun navigateur web (local ou depuis le reseau local)... Amuleweb ecoute bien sur le port 4711 et on peux bien s'y connecter (avec un navigateur ou en telnet) seulement il ne donne jamais de reponse....

Là, j'avoue que je bloque...

Merci d'avance pour votre aide.

Squatrem
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 06, 2004, 01:44:27 PM
squatrem,

l'aMule et l'amuleweb doivent fonctionner en même temps.  Vous avez suivi ceci:  http://www.amule.org/wiki/index.php/Webserver?  En outre, pouvez-vous essayer un tarball de cvs? http://amule.hirnriss.net/cvs/aMule-cvs-20040906.tar.bz2

Salut!
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 05:13:05 PM
Amule et amuleweb fonctionnent bien en meme temps.
La version du CVS va un peu plus loin que la rc5. Je peux voir la page d'acceuil du serveur web mais il est impossible de se loguer.
Des que je clique sur "login now" en ayant specifié un mot dfe passe ou non, le process amuleweb est killé.

Je ne peux pas non plus spécifier de mot de passe via l'interface de parametrage de amule  (ni pour le webserver ni pour les connections externes) car ils ne sont pas enregistrés dans .eMule.

Si je peux aider d'une facon ou d'une autre, n'hésitez pas a faire appel a moi.

Squatrem.
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 06, 2004, 07:39:13 PM
squatrem,

Est-ce que cela vous dérange si nous continuons la conversation en anglais?  Mon Français n'est pas très bon, et nous manquons l'aide d'un grand spécialiste en amuleweb:  stefanero.  

Il peut y a un problème avec des préférences dans de derniers cvs, je le rapporterai à Xaignar, le dev qui change ce code en ce moment.

Salut!
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 07:45:24 PM
Aucun problème. Est-ce que je dois creer un nouveau topic en Anglais ?
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 06, 2004, 08:45:06 PM
Non, ce n'est pas nécessaire. Traduisez votre deuxième post et je pense que sera parfait.

Salut!
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 09:00:51 PM
Translation of my previous post (thanks to reverso.net ;)) :

Amule and amuleweb are running simultaneously.
The version of CVS goes a little farther than rc5. I can see the homepage of the Webserver but it is impossible to log on.
If I click on " login now" with or without specifying a password, the amuleweb process is killed.

I cannot either specify a password via the prefs panel (neither for the webserver nor for the external connections) because they are not recorded in .eMule.

If I can help, don't hesitate to contact me.

Squatrem.
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 09:07:58 PM
Here is a message I found in my syslog after each crash :

amuleweb[31173]: segfault at 000000000000000d rip 0000002a963f3fd0 rsp 0000002a984893a8 error 4

If it can help...
Title: Re: Webserver ne répond pas...
Post by: stefanero on September 06, 2004, 09:29:34 PM
ok,
same problem here aswell...so dont worry will be fixed the next hours..days :)

stefanero
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 06, 2004, 09:31:50 PM
Thanks :)

If you need help for testing.. or whatever, don't hesitate !

Squatrem.
Title: Re: Webserver ne répond pas...
Post by: stefanero on September 06, 2004, 09:35:11 PM
well I have the same problem here aswell, so not hard to test...
also when you place a password in the amule-prefs for remote connection it does nto get saved here....
and that is why you cannot logon to your webserver anymore since it needs a password, blank password does not work, but still no reason to crash for that sucker ;)

see I discuss this with phoenix, and he or I will report back when its solved

greez
stefanero
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 07, 2004, 05:11:42 PM
stefanero, squatrem,

Please test tomorow cvs tarball, Xaignar has commited a fix for this problem today.

Cheers!
Title: Re: Webserver ne répond pas...
Post by: stefanero on September 07, 2004, 07:29:02 PM
I test now :P
Title: Re: Webserver ne répond pas...
Post by: stefanero on September 07, 2004, 07:38:25 PM
woirks ;)

have fun with tomorrows CVS guys :)
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 07, 2004, 10:55:39 PM
Sorry, I haven't been notified of your new messages, ...
I cannot see any difference since yesterday's CVS.

I still cannot specify a password from the prefs ui so I have tried to directly write it in .eMule using the 1.2 old style method (md5sum) but I always have the same result.. amuleweb crashes when I try to log on.

I will try to make more tests to see if I can found something interesting.
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 07, 2004, 10:58:50 PM
mmm... OK, tomorrow's version is not 20040907... I'll try it tomorrow when it is available :)
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 08, 2004, 05:17:07 PM
Hi,

I cannot complie version 20040908.. I'll try again tomorrow.

Squatrem
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 09, 2004, 04:12:21 AM
squatrem,

Sorry, we had some cvs breakage today, i hope tomorow cvs tarball is ok.

Cheers!
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 09, 2004, 09:57:16 AM
Good "morning",

Here are the results of my tests with CVS v20040909 :

- passwords are saved in .eMule :)
- I can see the login page, but the logo only appears after the second or third refresh (I think it is abnormally slow, even from localhost)
- I have once sucessully loged on from another computer on my network, but it was very slow (2 or 3 refreshes needed to display each page, 10 seconds per refresh) and only a few icons were shown (I think that if I had refreshed the page more times they would have all been displayed). It said amule wasn't connected to any server (that was wrong) and every lists were empty (server list, download/upload lists).
- All my other attempts to log on (from localhost or from the network) were unsuccessful. Amuleweb got killed like with previous versions.

I'm sorry for passively complaining about your software... I repeat that if you need help you really can ask me, especially since I have quite a lot of spare time at the moment..

Thx for your reactivity !

Squatrem
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 09, 2004, 01:15:55 PM
squatrem,

Hey, don't be shy ;) we need testers! Please, do complain about what you think is not working fine!

So, we managed the passowd issue, now we can do some other tests.

What is your browser? I have tested here with opera (my favorite) and mozilla. Unfortunatelly, i am having problems with opera, but they seem to be configuration related, because it works fine in one machine, but not on the other. Mozilla is working so fast with amuleweb that i can hardly believe. Try different browsers and please, report your results.

Anyway, there seems to remain a problem, because amuleweb has *never* crashed here. If you were able to generate a backtrace or provide some crash messages, it would be very nice. Look here: http://www.amule.org/wiki/index.php/Backtraces and here: http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

Could it be error problems in the network? Something like excessive retransmission? Can you do a local network speed test, like transfering a big file with ftp between computers and seeing the transfer speed?

Another thing, is you system overall stable, i mean, i had previously some reports of amuleweb crashing, and it used to be due to corrupted data. Corrupted data usually means failing memory, so give it a check also.
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 09, 2004, 08:52:13 PM
OK phoenix, so I will be merciless ;)

I have tested it with Konqueror 3.3 (localhost) and MSIE 6 (lan) I will test mozilla firefox as soon as it is installed on my laptop.

The network is not overloaded at all. I have tested amuleweb from localhost with the same results.
I have tried to recompile wxGTK a couple of time but there is no difference.

Here are my options :
Code: [Select]
Configured aMule CVS for 'x86_64-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with verbose console output?    no
  Should aMule be compiled with upload speed sense?        no
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be linked against patched gsocket?          yes
  Should aMule daemon version be built? (EXPERIMENTAL)     no
  Should aMule remote gui be built? (EXPERIMENTAL)         no
  Crypto++ library/headers style?                          gentoo_debian

  **** aMule TextClient ****
  Should amulecmd (TextClient) be linked against wxbase?   yes
  Should aMule Command Line Client be built?               yes
  Should aMule GUI Client be built?                        yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                         yes
  Should aMule WebServer GUI be built?                     yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?      no
  Should aMuleLinkCreator for console (alcc) be built?     no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                no
  Should aMule GUI Statistics (wxCas) be built?            no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                        no
  Libraries aMule will use to build:
                                       wxWidgets          2.4.2
                                       GTK                1.2.10

I cannot use valgrind on amd64, and I'm no more lucky with gdb.. If I run
Code: [Select]
gdb /usr/bin/amulewebI get the following (I have created .gdbinit) :
Code: [Select]
GNU gdb 6.2
Copyright 2004 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"...(no debugging symbols found)...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.
warning: shared library handler failed to enable breakpoint
In the amuleweb window I get :
Code: [Select]
Creating client...
Now, doing connection....
Using host 'localhost' (timeout = 10 sec)...
Succeeded ! Connection established..

---------------------------------
|       aMule Web server       |
---------------------------------

Use 'Help' for command list
And nothing else... The only way to get control back is to kill -9 amuleweb.
This does not occur when launching amuleweb alone (it crashes when a web client is trying to log in).

When amuleweb crashes, the only information I get from amule is :
Code: [Select]
New external connection accepted
Accepted Connection from amuleweb
Connection closed.

This makes it very difficult to produce a backtrace.. If needed, and can give you ssh access to my pc. I have a good connection that should allow quite usable X forwarding.

Is there something I'm doing bad ? ;(

Squatrem
Title: Re: Webserver ne répond pas...
Post by: phoenix on September 09, 2004, 10:25:22 PM
squatrem,

You did not mention that you were on an AMD64, that makes a lot of difference... :)

The problem is probably on aMule/amuleweb, because we may have some problem on the size of the integers. No developer has an AMD64 (I accept donations :) )

Anyway, you have given me a lot of info, so when I get home I will check a few things and then i return to you. amuleweb is probably blocking because on some bug in communication. If you can check the code, look at ECSocket.cpp, our problem must be there.

Cheers!
Title: Re: Webserver ne répond pas...
Post by: squatrem on September 09, 2004, 10:39:37 PM
Yes, I have mentioned it in my first post, but it was in french...
I will look at the code if I can find something.

Is there a way to have read access to you CVS ?

Squatrem