I updated flexget and deluge plugins to the latest version and everything worked fine, but yesterday we had a power outage and after booting flexget can't connect to the deluge daemon to add the downloaded torrents.
Here is part of journalctl
Code Display MoreJan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 INFO deluge_client.client personal-rss Connecting to localhost:58846 Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 CRITICAL task personal-rss BUG: Unhandled error in plugin deluge: [Errno -2] Name or service not known Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 CRITICAL manager personal-rss An unexpected crash has occurred. Writing crash report to /storage/.kodi/userdata/addon_data/service.flexget/crash_report.2021.01.07.153800804898.log. Please verify you are running the latest version of flexget by Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 DEBUG manager personal-rss Traceback: Jan 07 15:38:00 rpi sh[7739]: Traceback (most recent call last): Jan 07 15:38:00 rpi sh[7739]: File "/home/thoradia/Projects/thoradia/9.2/build.LibreELEC-RPi4.arm-9.1-devel/flexget-2.17.22/.install_pkg/usr/lib/python2.7/site-packages/FlexGet-2.17.22-py2.7.egg/flexget/task.py", line 486, in __run_plugin Jan 07 15:38:00 rpi sh[7739]: File "/home/thoradia/Projects/thoradia/9.2/build.LibreELEC-RPi4.arm-9.1-devel/flexget-2.17.22/.install_pkg/usr/lib/python2.7/site-packages/FlexGet-2.17.22-py2.7.egg/flexget/event.py", line 23, in __call__ Jan 07 15:38:00 rpi sh[7739]: File "/storage/.kodi/addons/service.flexget/lib/python2.7/site-packages/FlexGet-2.17.22-py2.7.egg/flexget/plugins/clients/deluge.py", line 325, in on_task_output Jan 07 15:38:00 rpi sh[7739]: self.client.connect() Jan 07 15:38:00 rpi sh[7739]: File "build/bdist.linux-x86_64/egg/deluge_client/client.py", line 74, in connect Jan 07 15:38:00 rpi sh[7739]: File "build/bdist.linux-x86_64/egg/deluge_client/client.py", line 88, in _connect Jan 07 15:38:00 rpi sh[7739]: File "/usr/lib/python2.7/ssl.py", line 864, in connect Jan 07 15:38:00 rpi sh[7739]: File "/usr/lib/python2.7/ssl.py", line 851, in _real_connect Jan 07 15:38:00 rpi sh[7739]: File "/usr/lib/python2.7/socket.py", line 228, in meth Jan 07 15:38:00 rpi sh[7739]: gaierror: [Errno -2] Name or service not known Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 WARNING task personal-rss Aborting task (plugin: deluge) Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 DEBUG backlog personal-rss Remembering all entries to backlog because of task abort. Jan 07 15:38:00 rpi sh[7739]: 2021-01-07 15:38 DEBUG backlog personal-rss Saving <namee of torrent> Jan 07 15:38:02 rpi sh[7739]: 2021-01-07 15:38 DEBUG download personal-rss removing temp file /tmp/tmpXStat6/6b4e89dbfa4d846777f57e362932e2f6 from <name of torrent> Jan 07 15:38:02 rpi sh[7739]: 2021-01-07 15:38 DEBUG task_queue task personal-rss aborted: TaskAbort(reason=BUG: Unhandled error in plugin deluge: [Errno -2] Name or service not known, silent=False)
Do you know what might cause it?
So the problem is with resolving 'localhost' (which is the default value for "host" settings - flexget deluge plugin).
I changed it to host: 127.0.0.1 in my config.yml and it works.