aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051120 - troubles with amuleweb  (Read 4971 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
20051120 - troubles with amuleweb
« 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*
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: 20051120 - troubles with amuleweb
« Reply #1 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.
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

lfroen

  • Guest
Re: 20051120 - troubles with amuleweb
« Reply #2 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
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: 20051120 - troubles with amuleweb
« Reply #3 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 ?
« Last Edit: November 20, 2005, 01:05:58 PM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: 20051120 - troubles with amuleweb
« Reply #4 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 ;)
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."

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20051120 - troubles with amuleweb
« Reply #5 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.
Logged
concordia cum veritate

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: 20051120 - troubles with amuleweb
« Reply #6 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
« Last Edit: November 21, 2005, 07:44:43 AM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: 20051120 - troubles with amuleweb
« Reply #7 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 ?
« Last Edit: November 22, 2005, 12:00:06 AM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: 20051120 - troubles with amuleweb
« Reply #8 on: November 21, 2005, 10:22:18 PM »

hte 2nd thing is due to cookies...I guess
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."