[BUG] deluge autoadd torrent broken with systemd service

General support for problems installing or using Deluge
Post Reply
graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

[BUG] deluge autoadd torrent broken with systemd service

Post by graysky »

I have deluged configured to "auto add .torrents from: /mnt/share/Downloads" but it does not seem to if deluged (systemd service) is already running. If I restart deluge.service however, it does pick up only 1.torrent file. If I run deluged as my user (not the deluge user) without the systemd service, it works as expected.
Last edited by graysky on Tue Nov 29, 2016 12:15 pm, edited 2 times in total.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: what would cause deluged to not notice a torrent file

Post by shamael »

Is you system configured to use UTF8 ? Check with the

Code: Select all

locale
commands.

I faced it only with .torrent having specific character in the file name, a specific error was logged in the log of Deluged.
graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

Re: what would cause deluged to not notice a torrent file

Post by graysky »

shamael wrote:Is you system configured to use UTF8 ? Check with the

Code: Select all

locale
commands.

I faced it only with .torrent having specific character in the file name, a specific error was logged in the log of Deluged.
Mine:

Code: Select all

% locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

Re: what would cause deluged to not notice a torrent file

Post by graysky »

All I am seeing in the journalctl log (running as system deamon) is the following when I move a torrent to the watched directory:

Code: Select all

Unhandled error in Deferred:
There is nothing after that.

In this case, the torrent was successfully detected and that line was written to the log. A subsequent time, I copied a torrent to the watched directory, but it was not detected and nothing was written to the log. If I stop the service, put 4 torrents in the watched directory and then start it, only the 1st one is detected, and that "Unhandled error in Deferred:" line is printed to the log but the remaining 3 torrents are not added.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: [BUG] deluge autoadd torrent broken with systemd service

Post by shamael »

Depending of your OS you can set à log for Deluge. In the line starting the dameon of in the debug mode in Windows (see the wiki)
I guess it will be more useful than journalctl at this level
graysky
Leecher
Leecher
Posts: 54
Joined: Sun Oct 05, 2008 11:28 am

Re: [BUG] deluge autoadd torrent broken with systemd service

Post by graysky »

I updated the ticket with debug logging enabled.
Post Reply