aMule Forum

English => aMule crashes => Topic started by: OldFrog on November 20, 2005, 10:26:29 AM

Title: 20051120 - troubles with amuleweb
Post by: OldFrog on November 20, 2005, 10:26:29 AM
Don't know if it's  a recent one, as I didn't use my PC for a week :

when launched eiher from command line or from amule, amuleweb crashes with :

Using host 'localhost' port: 8008
Essai de connexion (timeout = 10 s)...
Une erreur de socket s'est produite pendant l'authentification: abandon.
(a socket error happened during athentication. quitting)


amule log reports : Incorrect EC version ID, there might be binary incompatibility. Use core and remote from same snapshot.

I checked my amuleweb binary is from today as amule.

Quote
rwxr-xr-x  1 root root      369896 nov 20 09:06 wxcas*
-rwxr-xr-x  1 root root       16252 nov 20 09:06 ed2k*
-rwxr-xr-x  1 root root       13996 nov 20 09:06 cas*
-rwxr-xr-x  1 root root      463128 nov 20 09:06 amuleweb*
-rwxr-xr-x  1 root root     2139340 nov 20 09:06 amulegui*
-rwxr-xr-x  1 root root     1896932 nov 20 09:06 amuled*
-rwxr-xr-x  1 root root      240804 nov 20 09:06 amulecmd*
-rwxr-xr-x  1 root root     3240396 nov 20 09:06 amule*
Title: Re: 20051120 - troubles with amuleweb
Post by: OldFrog on November 20, 2005, 11:03:53 AM
Never mind /me stupid needs new glasses (There was a former amuleweb in /usr/local/bin from a little try of mine to modify the code one week ago).


NBesides that, anyway, I noticed some issues (maybe)

* don't see the fake check menu any more (I know one of the servers was closed on oct 31st, but thought there still was other ones).
* on the download page, clicking on a column title doesn't sort rows any more (Did it when using the preceding template). Anyway, array are supposed to be simple to sort in php, aren't they ?
* when launching amuleweb with :
amuleweb --amule-config-file=/home/louis/.aMule/amule.conf -t chicane
I still get the default style


Not a big deal anyway. Go on with such a good work, guys.
Title: Re: 20051120 - troubles with amuleweb
Post by: lfroen on November 20, 2005, 11:35:47 AM
Quote
on the download page, clicking on a column title doesn't sort rows any more

I will check that. Must be template problem
Title: Re: 20051120 - troubles with amuleweb
Post by: OldFrog on November 20, 2005, 11:51:45 AM
I gave a deeper look inside the sources of ExternalConnector.cpp and WebInterface.cpp.


Default config-file is remote.conf. If you got an old one (before changing templates to php), just erase it or do the following :

* update amule.conf through the GUI's preferances pannel, tab "remote control", to setup amule.conf with needed parameters (port, password, template).

Then run amule-web with the following :

amuleweb --create-config-from=~/.aMule/amule.conf

This will generate a brand new remote.conf appropriate to your current settings.

To change the template, just update the section [Webserver] Template inside remote.conf with the name of the desured directory in /usr/share/amule/webserver.

Then simply run amuleweb to enable your parameters.

Suggestion : could we have a "Template" textbox or combo box in the GUI panel, instead of updating it manually in the conf file ?


And of course, thanks for this great piece of work.


      [EDIT] miscellaneous corrections, thanks stefanero, and thanks to GonoszTopi for  added complements.
Maybe these little things should be added to the wiki, as this one is a bit shorty on the use of amuleweb ?
Title: Re: 20051120 - troubles with amuleweb
Post by: stefanero on November 20, 2005, 12:00:30 PM
Quote
Originally posted by OldFrog

amuleweb --create-config-from=~/.aMule.conf

This will generate a brand new remote.conf appropriate to your current settings.

should be

amuleweb --create-config-from=~/.aMule/amule.conf

but rest is fine ;)
Title: Re: 20051120 - troubles with amuleweb
Post by: GonoszTopi on November 20, 2005, 12:18:58 PM
"amuleweb --create-config-from=amule.conf" is just enough.

Quote
* when launching amuleweb with :
amuleweb --amule-config-file=/home/louis/.aMule/amule.conf -t chicane
I still get the default style

--amule-config-file is not intended for human usage. If you read the manual of amuleweb, youl'll see that all other command-line parameters are ignored, that's why you still get the default template.
Title: Re: 20051120 - troubles with amuleweb
Post by: OldFrog on November 21, 2005, 07:43:41 AM
Quote
Originally posted by lfroen
Quote
on the download page, clicking on a column title doesn't sort rows any more

I will check that. Must be template problem

It works now. Thanks
Title: Re: 20051120 - troubles with amuleweb
Post by: OldFrog on November 21, 2005, 10:15:12 PM
A little con cern anyway.

- When the transfer page is rereshed, the rows are displayed in reverse order.

- when I connect to another site then back to amuleweb through my browser, I don't need to sign in again any more. Is not that a bit unsecure ?
Title: Re: 20051120 - troubles with amuleweb
Post by: stefanero on November 21, 2005, 10:22:18 PM
hte 2nd thing is due to cookies...I guess