Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#192 closed bug (WorksForMe)

deluged 0.6 crashes with python error

Reported by: durand1@gmail.com Owned by: andar
Priority: major Milestone:
Component: Core Version: svn
Keywords: gentoo, python Cc:

Description

Deluged doesn't seem to like starting at times. If I first turn the computer on, it seems to load the daemon ok. But if I shut the daemon down and then start it again, I get this python error:

[DEBUG   ] torrent:542 Attempting to save torrent file: heroes.torrent
[DEBUG   ] pluginmanager:147 run_post_session_load
Traceback (most recent call last):
  File "/usr/bin/deluged", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/deluge/main.py", line 101, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.4/site-packages/deluge/core/daemon.py", line 44, in __init__
    self.core = Core(options.port).run()
  File "/usr/lib/python2.4/site-packages/deluge/core/core.py", line 252, in run
    component.start()
  File "/usr/lib/python2.4/site-packages/deluge/component.py", line 194, in start
    _ComponentRegistry.start()
  File "/usr/lib/python2.4/site-packages/deluge/component.py", line 114, in start
    self.start_component(component)
  File "/usr/lib/python2.4/site-packages/deluge/component.py", line 121, in start_component
    self.start_component(depend)
  File "/usr/lib/python2.4/site-packages/deluge/component.py", line 126, in start_component
    self.components[name].start()
  File "/usr/lib/python2.4/site-packages/deluge/core/torrentmanager.py", line 150, in start
    self.load_state()
  File "/usr/lib/python2.4/site-packages/deluge/core/torrentmanager.py", line 532, in load_state
    self.torrents[torrent_id].handle.resume()
KeyError: 'dcd81b918cfc6ddfd150025b7271f3c8bb4446b4'

This is when clicking on start daemon in the webui but the same happens with the gtkui. I've got deluge 0.6 running fine on my ubuntu hardy computer but not on my gentoo computer. Is it because I'm using python-2.4 on gentoo?

Change History (6)

comment:1 Changed 16 years ago by durand1@gmail.com

Updated to python2.5 and I get the same error....I don't seem to have this problem with ubuntu but then again, I didn't compile it myself on ubuntu.

comment:2 Changed 16 years ago by anonymous

  • Keywords 2.4 removed

comment:3 Changed 16 years ago by andar

Try deleting your torrents.state file and see if it helps.

It's located ~/.config/deluge/torrents.state

comment:4 Changed 16 years ago by durand

Thanks, that did the trick! ...though i got a feeling that it will come back.

comment:5 Changed 16 years ago by andar

  • Resolution set to worksforme
  • Status changed from new to closed

comment:6 Changed 16 years ago by anonymous

  • Milestone 0.6.0 deleted

Milestone 0.6.0 deleted

Note: See TracTickets for help on using tickets.