Opened 3 years ago

Closed 3 years ago

#2744 closed bug (Fixed)

fastresume not working on OSX Deluge.app

Reported by: beast Owned by:
Priority: minor Milestone: 1.3.12
Component: Packaging Version: 1.3.11
Keywords: osx, fastresume, service_identity Cc:

Description

I have an issue when closing and reloading deluged on OSX, when using the pre-compiled Deluge.app distro, which causes all torrents to be reloaded in Paused state. Also, for torrents that I have used flexget and changed the file names, these are forgotten and the original file names are remember. This means when resuming the torrent, the files start re-downloading again.

I have compared my OSX setup to my Ubuntu setup and it appears the torrents.fastresume file is not being created.

I have the following entry in the deluged.log:

[DEBUG   ] 15:32:49 torrentmanager:747 Opening torrents fastresume file for load.
[WARNING ] 15:32:49 torrentmanager:753 Unable to load fastresume file: [Errno 2] No such file or directory: '/Users/xxxx/.config/deluge/state/torrents.fastresume'

torrents.state is present in the folder along with the torrent files.

When I run deluged from the command line I get the error below which calls out save_resume_data_alert numerous times. I am not sure if this is therefore related:

/Applications/Deluge.app/Contents/Resources/lib/python/twisted/internet/_sslverify.py:184: UserWarning: You do not have the service_identity module installed. Please install it from <https://pypi.python.org/pypi/service_identity>. Without the service_identity module and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimentary TLS client hostnameverification.  Many valid certificate/hostname mappings may be rejected.
Unhandled Error
Traceback (most recent call last):
  File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.10-py2.7.egg/deluge/main.py", line 230, in start_daemon
    Daemon(options, args)
  File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.10-py2.7.egg/deluge/core/daemon.py", line 171, in __init__
    reactor.run()
  File "twisted/internet/base.pyc", line 1192, in run
    
  File "twisted/internet/base.pyc", line 1201, in mainLoop
    
--- <exception caught here> ---
  File "twisted/internet/base.pyc", line 824, in runUntilCurrent
    
  File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.10-py2.7.egg/deluge/core/torrentmanager.py", line 1088, in on_alert_save_resume_data
    self.resume_data[torrent_id] = lt.bencode(alert.resume_data)
Boost.Python.ArgumentError: Python argument types in
    None.None(save_resume_data_alert)
did not match C++ signature:
    None(libtorrent::save_resume_data_alert {lvalue})
Unhandled Error
Traceback (most recent call last):
  File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.10-py2.7.egg/deluge/main.py", line 230, in start_daemon
    Daemon(options, args)
  File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.10-py2.7.egg/deluge/core/daemon.py", line 171, in __init__
    reactor.run()
  File "twisted/internet/base.pyc", line 1192, in run
    
  File "twisted/internet/base.pyc", line 1201, in mainLoop

I have also tried stopping the daemon from the gtk to check if it was something to do with graceful exiting and this did not help.

As you can imagine not being able to restart deluged is a tad hindering. I hope someone can help :)

Change History (2)

comment:1 Changed 3 years ago by Cas

  • Milestone changed from 1.3.12 to 1.3.x

comment:2 Changed 3 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.12
  • Resolution set to Fixed
  • Status changed from new to closed

This is a rather unusual issue. Have you verified that the config directory is writeable by Deluge? I have applied a fix to state saving to 1.3.12 so when I finally package it for OSX you could see if that works. Reopen the ticket if it's still an issue.

Note: See TracTickets for help on using tickets.