aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Trouble with amuleweb since a few days  (Read 2674 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Trouble with amuleweb since a few days
« on: August 23, 2005, 12:53:06 AM »

I had amuleweb working flawlessly for a long while, and since back home a few days ago, itt doesn't start with aMule (I enabled it) telling it could not find aMule.
Now I tried it from command line

amuleweb --port=8700 --password=dubois --config-file=/home/louis/.aMule/amule.conf

and I get this error :

FATAL ERROR: Cannot find template: default

Yet I got the directory /usr/share/amule/default/ and the file aMule.tmpl in it.

Any idea, someone ?
« Last Edit: August 23, 2005, 12:59:44 AM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Trouble with amuleweb since a few days
« Reply #1 on: August 23, 2005, 01:19:30 AM »

You need the directory /usr/share/amule/webserver/default and aMule.tmpl in it.

You can start amuleweb with the -v (--verbose) switch to see where it tries to find the template.
Logged
concordia cum veritate

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble with amuleweb since a few days
« Reply #2 on: August 23, 2005, 07:20:51 AM »

Thanks for the tip. I installed it in /usr/bin, yet it looks for webserver in /usr/local/share (I wrote a wrong path before).

It seems there is a hard coded absolute path in the webserver. May I suggest it be changed to a relative path, like "../share/webserver" ?

For now I just copy the necessary files in /usr/local/share
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

lfroen

  • Guest
Re: Trouble with amuleweb since a few days
« Reply #3 on: August 23, 2005, 09:13:18 AM »

Quote
It seems there is a hard coded absolute path in the webserver. May I suggest it be changed to a relative path, like "../share/webserver" ?

No. ".." is bad solution in most cases. You can use $HOME/.aMule/webserver/  if you need user-specific template.
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble with amuleweb since a few days
« Reply #4 on: August 23, 2005, 07:17:41 PM »

The question is not having a specific template. The question is when I install in /usr/bin, I'd like to have the default data in /usr/share, not in /usr/local/share.
It did work before Aug 1st (Been on vacation since).
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Trouble with amuleweb since a few days
« Reply #5 on: August 23, 2005, 07:28:25 PM »

OldFrog, if you configure with --prefix=/usr, that's what will happen.  Data will be installed in /usr/share, not /usr/local/share.  That's what --prefix does: pick between "/usr", "/usr/local", "$HOME/mycustominstallplace", etc.
Logged