aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: aMule web fails loading sometimes...  (Read 21824 times)

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
aMule web fails loading sometimes...
« on: July 29, 2009, 03:42:39 AM »

Hello, i'm using the emule-daemon and i'm accesing to the machine from outside using the web server (ip address:4711) but the problem is that when loading the web page almost everytime it keeps loading forever, some other times it loads and it shows all the contents but the spinning animation keeps moving and it seems like there is still something remaining to load in the page. Also, some pages does not completely load and i must retry until it's shown...

it's a bug? i'm doing something wrong?

thanks in advance, regards.
« Last Edit: July 29, 2009, 10:59:55 PM by fidoboy »
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: aMule web fails loading sometines...
« Reply #1 on: July 29, 2009, 12:24:49 PM »

Have you tried accessing it from the same computer?
Does the same thing occur if you do so?
Logged

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometines...
« Reply #2 on: July 29, 2009, 12:38:11 PM »

I can't make that test because that computer does not have a desktop to use the graphical interface, but i've done the tests from two different computers (Mac OSX and Windows Vista) and also using different internet browsers (Firefox 3.5, Safari 4 and Chrome)

regards,
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: aMule web fails loading sometines...
« Reply #3 on: July 29, 2009, 01:20:32 PM »

Establish a telnet to the server (on port: 4711) and enter the following things:
Code: [Select]
GET  /index.php HTTP/1.0
Accept: text/html

And press [Enter] twice.
Not sure whether the default page is "index.php" though.
Logged

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometines...
« Reply #4 on: July 29, 2009, 05:48:16 PM »

I must say that this happens using tchoum skin for webserver. I've tried using telnet, but i can't connect. In windows vista, there is no telnet command and using OSX it tries to connect to my external IP when i use telnet 192.168.1.3:4711

any ideas?

regards,
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule web fails loading sometines...
« Reply #5 on: July 29, 2009, 10:46:08 PM »

In windows vista, there is no telnet command
Yes, there is. Just ran it.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometimes...
« Reply #6 on: July 29, 2009, 11:34:56 PM »

Ok, i've ran it and there is no response, all i get is a black screen.  :-\
Logged

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometines...
« Reply #7 on: August 01, 2009, 03:50:36 AM »

Establish a telnet to the server (on port: 4711) and enter the following things:
Code: [Select]
GET  /index.php HTTP/1.0
Accept: text/html

And press [Enter] twice.
Not sure whether the default page is "index.php" though.

OK, finally i got it working. Here it's the output of that commands:

HTTP/1.1 200 OK
Server: aMule
Pragma: no-cache
Expires: 0
Cache-Control: no-cache, no-store, must-revalidate
Set-Cookie: amuleweb_session_id=1681692777
Connection: close
Content-Type: text/html
Content-Length: 868
Content-Encoding: gzip

and after that i got a lot of garbage...

i hope that it helps...

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule web fails loading sometimes...
« Reply #8 on: August 01, 2009, 08:09:41 AM »

The garbage is gzip compressed text.

To be honest, I'm a bit worried that amuleweb a) uses HTTP 1.1 in a response to an HTTP 1.0 request and b) uses gzip even though the client didn't say that it supports gzip.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule web fails loading sometimes...
« Reply #9 on: August 01, 2009, 09:22:51 AM »

amuleweb does a lot of things it shouldn't. This is going to change soon. Probably on Monday.
Logged
concordia cum veritate

lfroen

  • Guest
Re: aMule web fails loading sometimes...
« Reply #10 on: August 01, 2009, 10:53:55 AM »

Quote
amuleweb does a lot of things it shouldn't
I really like to hear the list, 'cause amuleweb doesn't do a lot of things

Quote
This is going to change soon.
Discussing changes before is simpler that code-and-fix later. IMHO.

Quote
a) uses HTTP 1.1 in a response to an HTTP 1.0 request and b) uses gzip even though the client didn't say that it supports gzip.
Do you know at least 1 modern browser (no, Lynx doesn't count) that a) only support http 1.0 b) doesn't support gzip.
Truth to be told - I have no idea how 1.1 is different from 1.0 and whether amuleweb uses those features at all. Same for gzip. I don't remember single person complained that his/her browser can't display amuleweb output (that would be symptom for lack of gzip support).
Given that - both your "a)" and "b)" are useless discussion. Don't fix what isn't broken, please. There are broken things in amule. They are not here.
Logged

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometimes...
« Reply #11 on: August 01, 2009, 12:00:56 PM »

"There are broken things in amule. They are not here."

Yes, i also think that this problem is not related with gzip or the protocol version. But i'm sure that there is a problem. I've tried opening the web in many different browsers and also different machines and it happens the same. The page uses frames and many times some of them are not loaded, or when the autorefresh is launched, some frames contents disappears...

regards,
Logged

lfroen

  • Guest
Re: aMule web fails loading sometimes...
« Reply #12 on: August 01, 2009, 01:05:09 PM »

"here" means very specific code.
amuleweb is not very big application. There's 4 parts in it:
1. socket code handling in/out http
2. php interpreter
3. connection to amule code
4. web page itself.

Problem you describe may have source either in (1) or in (4). Or in both. If you're willing to debug - use wireshark (or other sniffer of choice) and dump traffic to/from amuleweb.
Logged

fidoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule web fails loading sometimes...
« Reply #13 on: August 01, 2009, 01:31:14 PM »

I'm sorry but debugging it is beyond my intentions now (i've limited time for this) I just want to help reporting the bug and doing tests to find the problem source. I've never used wireshark so i could need a lot of time to mastering it...

regards... ;)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule web fails loading sometimes...
« Reply #14 on: August 01, 2009, 02:52:46 PM »

Probably on Monday.
Hehe, our new running gag.  ;D
(I doubt "running gag" is actually English  now that I see it... It means perpetual joke.)

I really like to hear the list, 'cause amuleweb doesn't do a lot of things
- is a bitch to set up (you need two directories "default" and "php-default" with identical content, you have to enter settings in the remote.conf by hand). Of course, as a dev you have it set up and never notice.
- on Linux it always crashes for me (with LibPNG, having about 100 downloads). That was one reason I ported it to Windows, so I can start debugging it.
- there are some doubtful pieces of code in it, like CImageLib::AddImage, RemoveImage, GetImage
Quote
There are broken things in amule.
Just name them. (I don't doubt it, but that's not helpful.)

uses gzip even though the client didn't say that it supports gzip.
@fidoboy: You can always turn gzip compression off in the config for such cases.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon
Pages: [1] 2