Page 1 of 1

Web won't load correctly, problem in torrents.state

Posted: Sun Dec 04, 2011 10:20 pm
by jwhite530
After over a year of no serious issues with Deluge I can no longer do anything with it. I was adding torrents as usual and the Web interface stopped responding and came back with "The connection to the webserver has been lost!" I refreshed and it showed the interface but no stats on the bottom right and no torrents then it came back with the same error. Cleared cache and cookies, same thing, switch to Opera, same thing, switch to Firefox, won't load anything at all and shows no error (but Firefox could just be stupid).

I switched the console interface and I could see things were still downloading just fine. I restarted deluged and deluge-web but the Web interface did the same thing with the same error. Back in the console interface I removed the last two torrent I added, the Web interface still does the same thing. I paused all torrents then started some again. Some began to download then stopped with 'error'. Not good. I now can't download anything.

I cleared my logs and tried to access the Web interface again. Nothing in the logs. I restarted deluged and deluge-web, nothing in the web log at all, no errors in the deluged log. I switched to debug logging and removed a torrent it was complaining about, still the same error in the Web interface.

If I remove /etc/deluge/state/torrents.state then the Web interface works but of course I lose all my torrents.

I've given up, I don't know what to do now.

deluged: 1.3.2
Ubuntu 10.04 x64

Re: Web won't load correctly, problem in torrents.state

Posted: Mon Dec 05, 2011 3:14 am
by jwhite530
i was able to get torrents to start without failing by doing a recheck on all of them. I still can't get the Web interface to work.

Re: Web won't load correctly, problem in torrents.state

Posted: Tue Dec 06, 2011 12:01 am
by Cas
You can enable webui dev mode as follows and use a javascript debugger to look for any useful information:

Code: Select all

http://localhost:8112?dev=true
Try deleting web.conf or alternatively try a fresh config with your existing state file to see if that loads.

However it really doesn't make sense why the state file should affect webui so not sure what else to suggest.