Deluged demon has stopped working

General support for problems installing or using Deluge
oilytin
New User
New User
Posts: 2
Joined: Sun Dec 20, 2020 6:46 pm

Deluged demon has stopped working

Postby oilytin » Sun Dec 20, 2020 7:03 pm

Hi,
I have been using deluge for a number of years most recently on a pi4 running rasbian buster.
It installed fine and had been running well for about 4 months, but came to it tonight to find it wouldn't start.
I had installed following the intructions here https://deluge.readthedocs.io/en/latest ... rvice.html
The only thing i can recall doing recently is changing to a static IP address for the Pi (i have since changed back to dchp but the problem is still there)
running journalctl -u deluged gives the following output.

Code: Select all

Dec 20 18:18:02 raspberrypi systemd[1]: Started Deluge Bittorrent Client Daemon.
Dec 20 18:18:05 raspberrypi deluged[554]: [ERROR   ] 18:18:05 main:248 bad marshal data (string ref out of range)
Dec 20 18:18:05 raspberrypi deluged[554]: Traceback (most recent call last):
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 240, in start_d
Dec 20 18:18:05 raspberrypi deluged[554]:     from deluge.core.daemon import Daemon
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 41, in <
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet import reactor
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/reactor.py", line 38
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet import default
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/default.py", line 56
Dec 20 18:18:05 raspberrypi deluged[554]:     install = _getInstallFunction(platform)
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/default.py", line 44
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet.epollreactor import install
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", li
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet import posixbase
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet import error, udp, tcp
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 31, in
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet._newtls import (
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/_newtls.py", line 21
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtoco
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 63, i
Dec 20 18:18:05 raspberrypi deluged[554]:     from twisted.internet._sslverify import _setAcceptableProtocols
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/_sslverify.py", line
Dec 20 18:18:05 raspberrypi deluged[554]:     verifyHostname, VerificationError = _selectVerifyImplementation()
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/twisted/internet/_sslverify.py", line
Dec 20 18:18:05 raspberrypi deluged[554]:     from service_identity import VerificationError
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/service_identity/__init__.py", line 7
Dec 20 18:18:05 raspberrypi deluged[554]:     from . import pyopenssl
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/service_identity/pyopenssl.py", line
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.codec.der.decoder import decode
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/der/decoder.py", line 7,
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.codec.cer import decoder
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/cer/decoder.py", line 8,
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.codec.ber import decoder
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 9,
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.codec.ber import eoo
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/eoo.py", line 7, in
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.type import base
Dec 20 18:18:05 raspberrypi deluged[554]:   File "/usr/lib/python2.7/dist-packages/pyasn1/type/base.py", line 13, in <mo
Dec 20 18:18:05 raspberrypi deluged[554]:     from pyasn1.type import tagmap
Dec 20 18:18:05 raspberrypi deluged[554]: ValueError: bad marshal data (string ref out of range)
Dec 20 18:18:05 raspberrypi systemd[1]: deluged.service: Main process exited, code=exited, status=1/FAILURE
Dec 20 18:18:05 raspberrypi systemd[1]: deluged.service: Failed with result 'exit-code'.
Dec 20 18:18:05 raspberrypi systemd[1]: deluged.service: Service RestartSec=100ms expired, scheduling restart.
Dec 20 18:18:05 raspberrypi systemd[1]: deluged.service: Scheduled restart job, restart counter is at 1.
Dec 20 18:18:05 raspberrypi systemd[1]: Stopped Deluge Bittorrent Client Daemon.
Dec 20 18:18:05 raspberrypi systemd[1]: Started Deluge Bittorrent Client Daemon.


looks like a python problem but i have no idea how to proceed.
Thanks
Anthony

mhertz
Compulsive Poster
Compulsive Poster
Posts: 996
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged demon has stopped working

Postby mhertz » Sun Dec 20, 2020 7:53 pm

I guess you have deluge2, since you followed the doc for deluge2 for service setup(i.e. the '-d' daemon switch needed in deluge2), though you're using py2.7 and not 3.x. That is supported, but is a limited fallback, not really recommended by lead-dev, but anyways...

I very quickly did a google search of the error, and one of the first hits got a couple people getting same error for various python apps e.g. flexget, also for py2.7, and they stated on that page(stack-overflow) that this error usually comes when a .pyc file(compiled python bytecode file) has become corrupted, so deleting it will fix this, if that was the issue. One stated to delete the pyc files in the listed folders of the error-log, ussually in my experience it's the very last line that's the issue, so do you have a .pyc file named: '/usr/lib/python2.7/dist-packages/pyasn1/type/tagmap.pyc'? If so, try delete it and try again. This wasen't the file in the error-log btw, but the last listed file in the error-log tried to import that module which generated the error, hence I suggested checking for that module's import file - otherwise you can if wanted try delete rest pyc files, if any there, from rest listed folders in the error message.

I don't know if this is the issue, as stated, and was just from very quick look-up, mind you, so take with grain of salt, and just as said was quick immidiate first suggestion/guess.

oilytin
New User
New User
Posts: 2
Joined: Sun Dec 20, 2020 6:46 pm

Re: Deluged demon has stopped working

Postby oilytin » Sun Dec 20, 2020 9:32 pm

Thanks mhertz,
Good guess!!! Deleting the file you mentioned has sorted the problem :D
Probably should have mentioned in the original post i am running deluged: 1.3.15 and is running as well as it ever did, even with the -d switch!
Again, thanks for your help!
Anthony

mhertz
Compulsive Poster
Compulsive Poster
Posts: 996
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluged demon has stopped working

Postby mhertz » Sun Dec 20, 2020 9:38 pm

Great, you're most welcome and thanks for reporting back for the benefit of others possibly experiencing same issue in the feature! :)


Return to “Support”

Who is online

Users browsing this forum: No registered users and 13 guests