aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051129 [solved] problems with webserver - was a duplicate hash  (Read 2481 times)

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
20051129 [solved] problems with webserver - was a duplicate hash
« on: November 29, 2005, 07:54:15 PM »

Hi all,
here a problem with amuleweb

When I try to go to the page of downloads, amuleweb crashes... so I tried to log into amuleweb (with amule.conf Webserver enabled) and go into other pages, and there is no problem with them!

So I made my resolv.conf and launched amuleweb from command line and this is the result:

Code: [Select]
utente-web@black ~/.aMule $ amuleweb --config-file=/home/utente-web/.aMule/remote.conf
This is amuleweb CVS Tue Nov 29 07:01:58 CET 2005

Creazione del client in corso...
Succeeded! Connection established to aMule CVS

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

Usa 'Help' per la lista dei comandi

Server web: eseguito
aMuleweb$
WSThread: Thread started
WSThread: created socket listening on :4711
WCThread: Started a new WCThread
Processing request [original]:
No session opened - will request login
Session created - requesting login
Session is not logged and request have no password
Processing request [redirected]: login.html
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
Processing request [original]:
Session ok, not logged in
Checking password
Password ok
Processing request [redirected]: index.html
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
WCThread: Started a new WCThread
Processing request [original]: top.html
Session ok, logged in
Processing request [redirected]: top.html
WCThread: exited [WebSocket closed]
Processing request [original]: amuleweb-main-dload.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-dload.php
WCThread: Started a new WCThread
Killed

I thought this was because the main page of php-default lead directly to the download page...

Amulecmd works normally, and the show dl command gives no problem...

Any idea?
« Last Edit: December 01, 2005, 09:06:08 AM by Karhandras »
Logged

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
Re: 20051129 [solved] problems with webserver - was a duplicate hash
« Reply #1 on: December 01, 2005, 09:05:27 AM »

Ok guys, I've solved it...

I had a look at my downloads and noticed that two of them were the same and have the same hash!
So I managed to find the duplicate part file (apropos... is there a fast way to find the part file associated to a download?? It took me an hour trying them one by one...), I moved it out and now everything works perfectly.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 20051129 [solved] problems with webserver - was a duplicate hash
« Reply #2 on: December 01, 2005, 12:29:36 PM »

I'll check the checks for that.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: 20051129 [solved] problems with webserver - was a duplicate hash
« Reply #3 on: December 01, 2005, 01:08:46 PM »

Quote
Originally posted by Karhandras
is there a fast way to find the part file associated to a download?? It took me an hour trying them one by one...

If you right-click on a download, the menu will have an entry for Preview.  Even if the menu is disabled because the file can't be previewed, it will show the part file number.  Also, the File Details dialog available from that same menu will show it, too.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 20051129 [solved] problems with webserver - was a duplicate hash
« Reply #4 on: December 01, 2005, 01:14:16 PM »

Turns out there were no checks when loading partfiles. I've added checks against duplicates (now wont be added and will print/log a warning) and improved some other checks to better avoid duplicates. Thanks for the report.
Logged