error - daemon crashing - console weird..

General support for problems installing or using Deluge
Post Reply
Symbiot
Member
Member
Posts: 21
Joined: Thu Oct 31, 2013 4:11 pm

error - daemon crashing - console weird..

Post by Symbiot »

Hi

Deluge has started acting a bit weird.. well.. very..
The Daemon will stop responding, crash or act up.. nothing seems to show in the log.. and I've set log level to debug..
when I run 'deluge-console' it loads find.. when I try 'info' it gives me:

Code: Select all

'ConsoleUI' object has no attribute 'torrents'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 343,
in do_command
    ret = self._commands[cmd].handle(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/info.py", l
ine 134, in handle
    torrent_ids.extend(self.console.match_torrent(""))
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 460,
in match_torrent
    for tid, name in self.torrents:
AttributeError: 'ConsoleUI' object has no attribute 'torrents'
when checking webIF I get a complete crash of the page with this info:

Code: Select all

web.Server Traceback (most recent call last):
<type 'exceptions.KeyError'>: 'autoadd/autoadd.js'

/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 132 in process
130    try:
131      resrc = self.site.getResourceFor(self)
132      self.render(resrc)
133    except:
/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 167 in render
165    """
166    try:
167      body = resrc.render(self)
168    except UnsupportedMethod, e:
/usr/lib/python2.7/dist-packages/deluge/ui/web/server.py, line 570 in render
568      mode = None
569
570    scripts = component.get("Scripts").get_scripts(mode)
571    scripts.insert(0, "gettext.js")
/usr/lib/python2.7/dist-packages/deluge/ui/web/server.py, line 375 in get_scripts
373
374    for path in _order:
375      filepath = _scripts[path]
376
<type 'exceptions.KeyError'>: 'autoadd/autoadd.js'
My gtk on windows can't see the daemon as online, even though the daemon.log shows it to be running.. (entries keep appearing in log)

The latest "events" in the web.log file is:

Code: Select all

[DEBUG   ] 07:29:24 json_api:255 json-request: {"method":"web.get_events","params":[],"id":173}
[DEBUG   ] 07:29:29 json_api:255 json-request: {"method":"web.get_events","params":[],"id":174}
[DEBUG   ] 07:29:34 json_api:255 json-request: {"method":"web.get_events","params":[],"id":175}
[DEBUG   ] 07:29:39 json_api:255 json-request: {"method":"web.get_events","params":[],"id":176}
[DEBUG   ] 10:29:46 json_api:255 json-request: {"method":"web.get_events","params":[],"id":178}
[DEBUG   ] 10:29:47 server:269 Requested path: 'login.png'
[DEBUG   ] 10:29:47 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/login.png'
[DEBUG   ] 10:29:47 json_api:255 json-request: {"method":"web.get_events","params":[],"id":179}
[DEBUG   ] 10:29:47 json_api:255 json-request: {"method":"web.get_events","params":[],"id":180}

Any one able to help? I'd truly appreciate it!
Symbiot
Member
Member
Posts: 21
Joined: Thu Oct 31, 2013 4:11 pm

Re: error - daemon crashing - console weird..

Post by Symbiot »

ok, so a pkill of all things deluge got it going again.. the weIF that is..
daemon still didn't start.. but after starting it via webif a few times it started.. only to crash again..

daemon log shows the following:

Code: Select all

[DEBUG   ] 22:57:08 alertmanager:123 tracker_announce_alert: Sherlock.3x01.The_Empty_Hearse.720p_HDTV_x264-FoV [PublicHD] (udp://tracker.1337x.org:80/announce) se$
[DEBUG   ] 22:57:08 alertmanager:123 tracker_error_alert: Sherlock.3x01.The_Empty_Hearse.720p_HDTV_x264-FoV [PublicHD] (udp://tracker.1337x.org:80/announce) (-1) $
[DEBUG   ] 22:57:08 torrentmanager:696 Saving torrent state file.
[WARNING ] 22:57:08 torrentmanager:704 Unable to save state file: [Errno 24] Too many open files: '/root/.config/deluge/state/torrents.state.new'
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 alertmanager:123 tracker_announce_alert: Trainspotting.1996.HYBRID.720p.BluRay.DTS.x264-CtrlHD [PublicHD] (udp://tracker.publichd.eu/announce)$
[DEBUG   ] 22:58:21 alertmanager:123 tracker_announce_alert: Trainspotting.1996.HYBRID.720p.BluRay.DTS.x264-CtrlHD [PublicHD] (udp://tracker.1337x.org:80/announce$
[DEBUG   ] 22:58:21 alertmanager:123 tracker_error_alert: Trainspotting.1996.HYBRID.720p.BluRay.DTS.x264-CtrlHD [PublicHD] (udp://tracker.publichd.eu/announce) (-$
[DEBUG   ] 22:58:21 alertmanager:123 tracker_error_alert: Trainspotting.1996.HYBRID.720p.BluRay.DTS.x264-CtrlHD [PublicHD] (udp://tracker.1337x.org:80/announce) ($
[DEBUG   ] 22:58:21 alertmanager:123 tracker_announce_alert: Sherlock.3x01.The_Empty_Hearse.720p_HDTV_x264-FoV [PublicHD] (udp://tracker.publichd.eu/announce) sen$
[DEBUG   ] 22:58:21 alertmanager:123 tracker_error_alert: Sherlock.3x01.The_Empty_Hearse.720p_HDTV_x264-FoV [PublicHD] (udp://tracker.publichd.eu/announce) (-1) H$
[DEBUG   ] 22:58:21 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 22:58:21 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 22:58:21 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
[DEBUG   ] 22:58:21 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 22:58:21 torrentmanager:996 on_alert_tracker_error
In which I don't see anything that helps me.. but perhaps it makes sense to someone else?
apart from the 'too many open files'
but I only have a few torrents in deluge..
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: error - daemon crashing - console weird..

Post by Cas »

You haven’t provided any version information about your setup nor the OS used. Is deluged actually crashing or just locking up? How many torrents do you have?
pyrex
New User
New User
Posts: 3
Joined: Fri Jan 16, 2015 9:36 pm

Re: error - daemon crashing - console weird..

Post by pyrex »

I have the same issue with deluge crashing with the autoadd.js error.

It seems to crash after loading the .torrent from the watch folder. Generally just the thin-client or web-client crashes and I have to reconnect, the deluge server goes down about 3x a day. I've removed any possible conflicts with file moves or labelling and this has not helped. I also tried reducing the amount of torrents seeded to 600 from 1200 and this also did not work.

The client and server are both 1.3.11 with the server running on linux. I access deluge either through the thin client or the web-ui.

Anyone have a fix?

Image
Post Reply