aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb will not work  (Read 2937 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
amuleweb will not work
« on: May 16, 2007, 01:57:13 AM »

Hi!

I use amule SVN versions. Currently using SVN from May 15th. I compile all the tools amule[|d|web|gui|cmd] and such. However, since a long time (more than a month) I cannot get amuleweb working. Everything compiles fine, and installs fine. I do have gd and png libraries and devel files installed. When I start amuleweb:

Code: [Select]
amuleweb --amule-config-file=/home/gpulido/.aMule/amule.conf
it will happily start, all it says in the console is:
Code: [Select]
Template  not found, reverting to default

Using localeDir = '/usr/local/share/locale'.

and it will stay there. Amule logs the successful connection of amuleweb. But if I try to connect to it, it will simply throw a web page with this:

Code: [Select]
<html><title> Error - requested page not found </title></html>
same thing for firefox, mozilla and lynx. The console where I launched amuleweb reports nothing more than the initial mesages. Amuleweb will not crash, nor do anything strange, simply it does not work, and I'm pretty confused, i have no idea how to debug this. No matther which file I request, the error keeps the same. If it helps, this is the configure line I used (maybe I did something wrong):

Code: [Select]
./configure --enable-webserver --enable-amule-daemon --enable-amulecmd --enable-amule-gui --enable-cas --enable-wxcas --enable-alc --enable-alcc --disable-embedded-crypto --with-crypto-prefix=/temp/cryptopp54/ --with-libiconv-prefix=/opt/csw/ --with-gdlib-prefix=/opt/csw/ --with-libpng-prefix=/opt/csw/ --enable-geoip --with-geoip-static --with-geoip-headers=/usr/local/include/ --enable-optimize --disable-debug
This is a solaris 10 PC, using gcc 3.4.5.

Thanks for any help.

Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amuleweb will not work
« Reply #1 on: May 16, 2007, 05:57:15 AM »

Hi skolnick,

It works fine for me here, but to start amuleweb I just do

Code: [Select]
$ amuleweb
Using localeDir = '/usr/local/share/locale'.
This is amuleweb CVS rev. 7277

Creating client...
Succeeded! Connection established to aMule CVS

--------------------------------------
|          aMule Web Server          |
--------------------------------------

Use 'Help' for command list

Web Server: Started

WSThread: Thread started
WSThread: created socket listening on :4711
aMuleweb$ WCThread: Started a new WCThread
Processing request [original]:
No session opened - will request login
Session created - requesting login
...

The template files are under ~/.aMule:

$ ls ~/.aMule/webserver/
ajax-webserver  chicane  default  php-default

If amuleweb does not find templates, I believe it will not display anything.

Cheers!
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb will not work
« Reply #2 on: May 16, 2007, 06:58:39 AM »

Well, something is definitely wrong here. It's either my PC, my OS, or solaris all by itself. I would like to know if this happens on another solaris machines, but AFAIK, nobody else uses aMule on it (I remember xushi used it on SPARC, and wuischke got his OpenSolaris DVD, but don't know if they are able to test this and help me :)). If anybody can help me with this, just tell me what should I do.

BTW: I just told amuleweb to create its conf file from the amule.conf file, and when I started it, it segfaulted. I got a core file, and tried to analyze it, this is what I got:

Code: [Select]
[gpulido@deathstar .aMule]$ pstack core
core 'core' of 18458:   amuleweb
-----------------  lwp# 1 / thread# 1  --------------------
 d25362a0 sh_get_env_value (8047ab0, 80478a0, 812fd50, d254b75c, 8047868, 8089a41)
 d2516742 readline (8153290, 8125740, 84e82ac, d21fa51c, 84e82ac, d267ed3c) + 81
 08089a41 _ZN23CaMuleExternalConnector10GetCommandERK8wxStringPcj (812fd50, 8047ab0, 80478a0) + 49
 0808bfb4 _ZN23CaMuleExternalConnector9TextShellERK8wxString (812fd50, 8047ab0, 80eb128, 8047a50, d21
f9000, 8142b30) + 30
 0808e38b _ZN23CaMuleExternalConnector13ConnectAndRunERK8wxStringS2_ (812fd50, 8047ab0, 8047ac0, d26d
03c0, 8142a6c, d27cb924) + 847
 08081a67 _ZN12CamulewebApp5OnRunEv (812fd50, 812a808, 1390, 1, 0, d26d03c0) + 33
 d25dd21a _Z7wxEntryRiPPw (d26be828, 812a808, 8047b48, d25dd2e6, 8047b80, d27fb7d8) + 4e
 d25dd2fb _Z7wxEntryRiPPc (8047b80, 8047ba8, d21d3105, d21526b1, 29, d21ffd58) + 33
 080819cc main     (1, 8047ba8, 8047bb0) + 18
 0806af31 _start   (1, 8047c9c, 0, 8047ca5, 8047cc8, 8047ccf) + 5d
-----------------  lwp# 2 / thread# 2  --------------------
 d2154c9c strlen   (80e693b, d1ebbdf4, 8125770, 0) + c
 d21acf74 printf   (80e6939, 0, 853211c, 812fd50, 0, d2563dc8) + a8
 08089106 _ZN23CaMuleExternalConnector4ShowERK8wxString (812fd50, d1ebbf20, 0, ffffffff, d21c88a5, 0)
 + 3a
 08087d00 _ZN9CWSThread5EntryEv (84e8218, 84e8218, d1ebbfb8, d1ebbf90, d26397bc, d1ebbf90) + 30
 d26398e1 _ZN16wxThreadInternal12PthreadStartEP8wxThread (84e8218, 0, d1f32400, d21f9000, d21ce6db, d
21f9000) + 125
 d263993f wxPthreadStart (84e8218) + 1b
 d21cfd62 _thr_setup (d1f32400) + 4e
 d21d0050 _lwp_start (d1f32400, 0, 0, d1ebbff8, d21d0050, d1f32400)
[gpulido@deathstar .aMule]$

I know this is almost useless...but maybe some of you an get a hint or something from it.

Thanks!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuleweb will not work
« Reply #3 on: May 16, 2007, 07:17:50 AM »

I plan on installing Nexenta Alpha 7 today (new partitioning software, hooray) after I was frustrated with yesterday's install of Solaris Express which wanted me to sign up in order to get updates, but failed on signing me up...
Logged

lfroen

  • Guest
Re: amuleweb will not work
« Reply #4 on: May 16, 2007, 08:29:04 AM »

...
it will happily start, all it says in the console is:
Code: [Select]
Template  not found, reverting to default

Using localeDir = '/usr/local/share/locale'.

and it will stay there. Amule logs the successful connection of amuleweb. But if I try to connect to it, it will simply throw a web page with this:

Code: [Select]
<html><title> Error - requested page not found </title></html>
same thing for firefox, mozilla and lynx. The console where I launched amuleweb reports nothing more than the initial mesages. Amuleweb will not crash, nor do anything strange, simply it does not work, and I'm pretty confused, i have no idea how to debug this. No matther which file I request, the error keeps the same. If it helps, this is the configure line I used (maybe I did something wrong):


This means (as error message suggest) that template referenced in config file can not be found, AND default template is seems to be missing too. That's why you get error page in browser (you will get it in any browser).
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb will not work
« Reply #5 on: May 17, 2007, 06:34:51 AM »

lfroen:
It seems strange to me that the template is missing, since I used "make install" to install aMule. I also see all the correct files in the /usr/local/share/webserver/[php-default|chicane] folders. I even symlinked this "webserver" folder to ~/.aMule/webserver, but the problem remains the same. I just reinstalled a newer solaris version and will recompile there to see if it works. I'll post my results when I get them.

wuischke:
Solaris Express has no updates, you simply install it and do not enable updates at all. When a newer version comes out, you just install it over your current one following the upgrade process. SUN does not release updates for its beta operating systems ;). BTW: I just finished installing Solaris Express B61, I'll test if this issue happens also here (since I previously used Solaris 10).

Regards.
Logged

lfroen

  • Guest
Re: amuleweb will not work
« Reply #6 on: May 17, 2007, 08:13:42 AM »

Quote
It seems strange to me that the template is missing, since I used "make install" to install aMule.
Strange indeed, but I must admit that I didn't tested webserver for a some time.

However, finding template is quite basic operation which can be debugged even without debugger. Upon startup amuleweb searching in wannabe template directories for index.html or index.php. If neither found - template directory is discarded. You can use strace (or it's equivalent on Solaris) to see which files are being looked up.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb will not work
« Reply #7 on: May 18, 2007, 03:21:16 AM »

Nevermind this bug report, it seems the compiler I used was doing something wrong with amuleweb, or some setting on my system was incorrect. It is working now. However, amuleGUI is not working, it will show the login box, I click OK, and amule reports:
Code: [Select]
2007-05-17 20:18:18: ExternalConn.cpp(162): New external connection acceptedHowever, it will never tell that amuleGUI was the remote client connecting. AmuleGUI hangs with a "going into main loop" or something like that, but the GUI is never shown. This happened also before, when amulweb didn't work.

Regards.
Logged