Move Completed not working

General support for problems installing or using Deluge
Post Reply
jeremymelbourne
Member
Member
Posts: 12
Joined: Mon Dec 31, 2012 1:21 am

Move Completed not working

Post by jeremymelbourne »

Hi,

I've rebuilt my server and am having trouble with "Move Compelted". I'm using Flexget + Deluge Daemon
  • Flexget appears to be doing it's thing correctly (see first log extract)
  • Connecting the Deluge GUI to the Daemon and selecting the "options" tab, I can see the correct "Move compelted" path is set (and the button checked).
  • The account running the Daemon is in a group with write access to the Move Completed Destination, and I can browse to that location as that account and CRUD files/directories
Any assistance greatly appreciated!

Regards
Jeremy

Flexget (in debug mode)

Code: Select all

2013-05-22 21:06 DEBUG    deluge        EZTV            Attempting to open /home/deluge/.flexget/temp/tmpTs5fxe/0f0c6a51b7db4c47fe5953181c8ad374.
2013-05-22 21:06 VERBOSE  details       EZTV            Summary - Accepted: 1 (Rejected: 4 Undecided: 25 Failed: 0)
2013-05-22 21:06 DEBUG    modif_torrent EZTV            THE SHOW 1x01 [HDTV - 2HD] seems to be a torrent
2013-05-22 21:06 DEBUG    torrent_size  EZTV            THE SHOW 1x01 [HDTV - 2HD] size: 627.845176697 MB
2013-05-22 21:06 INFO     deluge        EZTV            Connecting to daemon at localhost:58846..
2013-05-22 21:06 INFO     deluge        EZTV            Connected to daemon at 127.0.0.1:58846..
2013-05-22 21:06 DEBUG    deluge        EZTV            deluge version 1.3.6
2013-05-22 21:06 VERBOSE  deluge        EZTV            Adding THE SHOW 1x01 [HDTV - 2HD] to deluge.
2013-05-22 21:06 INFO     deluge        EZTV            THE SHOW 1x01 [HDTV - 2HD] successfully added to deluge.
2013-05-22 21:06 DEBUG    deluge        EZTV            THE SHOW 1x01 [HDTV - 2HD] move on complete set to /media/media1/tv/THE SHOW/Season 4/
2013-05-22 21:06 DEBUG    deluge        EZTV            Not moving storage for THE SHOW 1x01 [HDTV - 2HD], as this will prevent movedone.
2013-05-22 21:06 DEBUG    deluge        EZTV            File THE.SHOW.S01E01.HDTV.x264-2HD.mp4 in THE SHOW 1x01 [HDTV - 2HD] renamed to THE SHOW - S04E19.mp4
2013-05-22 21:06 INFO     deluge        EZTV            Connection lost to daemon at localhost:58846 reason: Connection was closed cleanly.
2013-05-22 21:06 DEBUG    seen          EZTV            Learned 'E9BB00D9ADD5C9542CBD738413A13B6A5CA56C0B' (field: torrent_info_hash)
2013-05-22 21:06 DEBUG    series        EZTV            on_task_exit
2013-05-22 21:06 DEBUG    series        EZTV            marking <Release(id=1567,quality=hdtv,downloaded=False,proper_count=0,title=THE SHOW 1x01 [HDTV - 2HD])> as downloaded
Deluge

Code: Select all

deluge@media:~$ deluged --v
deluged: 1.3.6
libtorrent: 0.15.10.0

Code: Select all

[INFO    ] 21:06:03 rpcserver:203 Deluge Client connection made from: 127.0.0.1:41794
[DEBUG   ] 21:06:03 torrentmanager:329 torrentmanager.add
[DEBUG   ] 21:06:03 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 21:06:03 torrentmanager:437 options: {'add_paused': False, 'max_download_speed': -1, 'auto_managed': True, 'remove_at_ratio': False, 'move_completed_path': u'', 'download_location': u'/media/media1/scratch-on-tv/incomplete', 'mapped_files': {}, 'compact_allocation': False, 'stop_at_ratio': False, 'max_upload_speed': -1, 'prioritize_first_last_pieces': False, 'max_upload_slots': -1, 'file_priorities': [], 'stop_ratio': 2.0, 'move_completed': False, 'max_connections': -1}
[DEBUG   ] 21:06:03 torrentmanager:471 handle id: e9bb00d9add5c9542cbd738413a13b6a5ca56c0b
[DEBUG   ] 21:06:03 torrent:105 Creating torrent object e9bb00d9add5c9542cbd738413a13b6a5ca56c0b
[DEBUG   ] 21:06:03 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 21:06:03 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 21:06:03 torrent:296 file_priorities len != num_files
[DEBUG   ] 21:06:03 torrent:381 set_state_based_on_ltstate: Downloading
[DEBUG   ] 21:06:03 torrent:382 session.is_paused: False
[DEBUG   ] 21:06:03 torrent:212 Torrent object created.
[DEBUG   ] 21:06:03 alertmanager:123 state_changed_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: state changed to: downloading
[DEBUG   ] 21:06:03 alertmanager:123 torrent_checked_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 checked
[DEBUG   ] 21:06:03 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:06:03 rpcserver:466 intevents: {}
[INFO    ] 21:06:03 torrentmanager:520 Torrent THE.SHOW.S01E01.HDTV.x264-2HD.mp4 added by user: deluge
[DEBUG   ] 21:06:03 torrentmanager:1028 on_alert_state_changed
[DEBUG   ] 21:06:03 torrent:381 set_state_based_on_ltstate: Downloading
[DEBUG   ] 21:06:03 torrent:382 session.is_paused: False
[DEBUG   ] 21:06:03 rpcserver:466 intevents: {}
[DEBUG   ] 21:06:03 torrentmanager:942 on_alert_torrent_checked
[DEBUG   ] 21:06:03 torrent:381 set_state_based_on_ltstate: Downloading
[DEBUG   ] 21:06:03 torrent:382 session.is_paused: False
[DEBUG   ] 21:06:03 alertmanager:123 torrent_resumed_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resumed
[DEBUG   ] 21:06:03 alertmanager:123 tracker_announce_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) sending announce (started)
[DEBUG   ] 21:06:03 torrentmanager:1014 on_alert_torrent_resumed
[DEBUG   ] 21:06:03 torrent:381 set_state_based_on_ltstate: Downloading
[DEBUG   ] 21:06:03 torrent:382 session.is_paused: False
[DEBUG   ] 21:06:03 rpcserver:466 intevents: {}
[DEBUG   ] 21:06:03 torrentmanager:976 on_alert_tracker_announce
[INFO    ] 21:06:03 rpcserver:223 Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
[DEBUG   ] 21:06:03 alertmanager:123 file_renamed_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: file 0 renamed to THE SHOW - S01E01.mp4
[DEBUG   ] 21:06:03 torrentmanager:1077 on_alert_file_renamed
[DEBUG   ] 21:06:03 torrentmanager:1078 index: 0 name: THE SHOW - S01E01.mp4
[DEBUG   ] 21:06:03 rpcserver:466 intevents: {}
[DEBUG   ] 21:06:03 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:06:03 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:06:03 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:06:03 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:06:04 alertmanager:123 tracker_reply_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) received peers: 200
[DEBUG   ] 21:06:04 torrentmanager:959 on_alert_tracker_reply: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) received peers: 200
[DEBUG   ] 21:06:07 alertmanager:123 external_ip_alert: external IP received: 118.209.202.156
[DEBUG   ] 21:07:29 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:07:29 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:07:29 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:07:29 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:07:39 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:09:32 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:33 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:34 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:35 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:36 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:37 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:38 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:39 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:52 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:53 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:54 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:55 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:56 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:57 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:58 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:09:59 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:10:00 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[DEBUG   ] 21:10:01 alertmanager:123 performance_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: performance warning: max outstanding piece requests reached
[INFO    ] 21:10:33 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54858
[INFO    ] 21:10:33 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54859
[INFO    ] 21:10:33 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54861
[INFO    ] 21:10:33 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:10:33 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:10:36 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:10:36 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54862
[DEBUG   ] 21:10:39 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:10:39 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:10:39 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:10:39 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[INFO    ] 21:10:40 rpcserver:223 Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
[DEBUG   ] 21:10:59 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:13:02 alertmanager:123 external_ip_alert: external IP received: 68.199.7.119
[DEBUG   ] 21:13:03 alertmanager:123 external_ip_alert: external IP received: 118.209.202.156
[DEBUG   ] 21:13:08 alertmanager:123 portmap_log_alert: UPnP: HTTP method m-search from 192.168.1.200:59898
[DEBUG   ] 21:13:49 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:13:49 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:13:49 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:13:49 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:14:19 torrentmanager:696 Saving torrent state file.
[INFO    ] 21:16:08 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54885
[INFO    ] 21:16:08 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54886
[INFO    ] 21:16:08 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54888
[INFO    ] 21:16:08 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:16:08 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:16:10 rpcserver:223 Deluge client disconnected: Connection was closed cleanly.
[INFO    ] 21:16:10 rpcserver:203 Deluge Client connection made from: 192.168.1.200:54889
[DEBUG   ] 21:16:59 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:16:59 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:16:59 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:16:59 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:17:39 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:20:09 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:20:09 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:20:09 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:20:09 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:20:59 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:23:19 alertmanager:123 save_resume_data_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 resume data generated
[DEBUG   ] 21:23:19 torrentmanager:1048 on_alert_save_resume_data
[DEBUG   ] 21:23:19 torrentmanager:736 Opening torrents fastresume file for load.
[DEBUG   ] 21:23:19 torrentmanager:776 Saving fastresume file: /home/deluge/.config/deluge/state/torrents.fastresume
[DEBUG   ] 21:24:19 torrentmanager:696 Saving torrent state file.
[DEBUG   ] 21:24:28 alertmanager:123 torrent_finished_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 torrent finished downloading
[DEBUG   ] 21:24:28 alertmanager:123 state_changed_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: state changed to: finished
[DEBUG   ] 21:24:28 alertmanager:123 state_changed_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4: state changed to: seeding
[DEBUG   ] 21:24:28 alertmanager:123 tracker_announce_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) sending announce (completed)
[DEBUG   ] 21:24:28 torrentmanager:878 on_alert_torrent_finished
[DEBUG   ] 21:24:28 torrentmanager:884 e9bb00d9add5c9542cbd738413a13b6a5ca56c0b is finished..
[DEBUG   ] 21:24:28 torrentmanager:1028 on_alert_state_changed
[DEBUG   ] 21:24:28 torrent:381 set_state_based_on_ltstate: Seeding
[DEBUG   ] 21:24:28 torrent:382 session.is_paused: False
[DEBUG   ] 21:24:28 rpcserver:466 intevents: {8: ['NewVersionAvailableEvent', 'PluginEnabledEvent', 'TorrentResumedEvent', 'TorrentAddedEvent', 'TorrentRemovedEvent', 'PluginDisabledEvent', 'SessionResumedEvent', 'SessionPausedEvent', 'TorrentQueueChangedEvent', 'TorrentFolderRenamedEvent', 'TorrentStateChangedEvent', 'TorrentFinishedEvent', 'ConfigValueChangedEvent', 'TorrentFileRenamedEvent']}
[DEBUG   ] 21:24:28 rpcserver:470 Emit Event: TorrentStateChangedEvent ['e9bb00d9add5c9542cbd738413a13b6a5ca56c0b', 'Seeding']
[DEBUG   ] 21:24:28 torrentmanager:1028 on_alert_state_changed
[DEBUG   ] 21:24:28 torrent:381 set_state_based_on_ltstate: Seeding
[DEBUG   ] 21:24:28 torrent:382 session.is_paused: False
[DEBUG   ] 21:24:28 torrentmanager:976 on_alert_tracker_announce
[DEBUG   ] 21:24:30 alertmanager:123 tracker_reply_alert: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) received peers: 200
[DEBUG   ] 21:24:30 torrentmanager:959 on_alert_tracker_reply: THE.SHOW.S01E01.HDTV.x264-2HD.mp4 (udp://tracker.openbittorrent.com:80) received peers: 200
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Move Completed not working

Post by Cas »

It doesn't really make sense based on the information however a better picture could be formed if there a bit more logging detail in on_alert_torrent_finished function of torrentmanager.py.

If you could add this line after line 884 in torrentmanager.py:

Code: Select all

log.debug("mv_c: %s, mv_p: %s, dn_l: %s", torrent.options["move_completed"], torrent.options["move_completed_path"], torrent.options["download_location"])
jeremymelbourne
Member
Member
Posts: 12
Joined: Mon Dec 31, 2012 1:21 am

Re: Move Completed not working

Post by jeremymelbourne »

Thanks Cas,

Here are the results

Code: Select all

deluge@media:~$ cat /var/log/deluge/daemon.log | grep 13:48:
[DEBUG   ] 13:48:40 alertmanager:123 torrent_finished_alert: SHOW.S01E02.HDTV.x264-RiVER.mp4 torrent finished downloading
[DEBUG   ] 13:48:40 alertmanager:123 state_changed_alert: SHOW.S01E02.HDTV.x264-RiVER.mp4: state changed to: finished
[DEBUG   ] 13:48:40 alertmanager:123 state_changed_alert: SHOW.S01E02.HDTV.x264-RiVER.mp4: state changed to: seeding
[DEBUG   ] 13:48:40 alertmanager:123 tracker_announce_alert: SHOW.S01E02.HDTV.x264-RiVER.mp4 (udp://tracker.openbittorrent.com:80) sending announce (completed)
[DEBUG   ] 13:48:40 torrentmanager:878 on_alert_torrent_finished
[DEBUG   ] 13:48:40 torrentmanager:884 1e158ed20ebfa5d7daa9c72b89016dc46fd65214 is finished..
[DEBUG   ] 13:48:40 torrentmanager:885 mv_c: True, mv_p: /media/media1/tv/SHOW/Season 1/, dn_l: /media/media1/scratch-on-tv/incomplete

Code: Select all

deluge@media:~$ cat /var/log/deluge/daemon.log | grep 13:57:
[DEBUG   ] 13:57:11 alertmanager:123 peer_blocked_alert: blocked peer: 125.77.144.57
[DEBUG   ] 13:57:13 alertmanager:123 peer_blocked_alert: blocked peer: 196.210.117.3
[DEBUG   ] 13:57:17 alertmanager:123 torrent_finished_alert: SHOW.S01E01.HDTV.x264-TLA.mp4 torrent finished downloading
[DEBUG   ] 13:57:17 alertmanager:123 state_changed_alert: SHOW.S01E01.HDTV.x264-TLA.mp4: state changed to: finished
[DEBUG   ] 13:57:17 alertmanager:123 state_changed_alert: SHOW.S01E01.HDTV.x264-TLA.mp4: state changed to: seeding
[DEBUG   ] 13:57:17 alertmanager:123 tracker_announce_alert: SHOW.S01E01.HDTV.x264-TLA.mp4 (http://58.97.8.131:8085/announce?from=CSS) sending announce (completed)
[DEBUG   ] 13:57:17 torrentmanager:878 on_alert_torrent_finished
[DEBUG   ] 13:57:17 torrentmanager:884 780ad1531636cf1eaff51daba600ec81dc2b3558 is finished..
[DEBUG   ] 13:57:17 torrentmanager:885 mv_c: True, mv_p: /media/media1/tv/SHOW/Season 1/, dn_l: /media/media1/scratch-on-tv/incomplete
Confirming deluge user is running the daemon

Code: Select all

deluge@media:~$ ps aux | grep deluged
deluge    8913  3.0  1.1 415368 47136 ?        Ssl  13:08   9:39 /usr/bin/python /usr/bin/deluged -d -l /var/log/deluge/daemon.log -L debug
deluge   11023  0.0  0.0  13588   912 pts/4    S+   18:22   0:00 grep --color=auto deluged
Testing Write access of deluge user

Code: Select all

deluge@media:~$ mkdir -p /media/media1/tv/SOMESHOW/Season\ 1/
deluge@media:~$ ls -al /media/media1/tv/ | grep SOMESHOW
drwxr-xr-x 1 deluge writers     3 May 23 18:23 SOMESHOW
deluge@media:~$ touch /media/media1/tv/SOMESHOW/Season\ 1/SOMEEP.mkv
deluge@media:~$ ls -al /media/media1/tv/SOMESHOW/Season\ 1/
total 0
drwxr-xr-x 1 deluge writers 3 May 23 18:24 .
drwxr-xr-x 1 deluge writers 3 May 23 18:23 ..
-rw-r--r-- 1 deluge writers 0 May 23 18:24 SOMEEP.mkv
deluge@media:~$ rm -rf /media/media1/tv/SOMESHOW/
deluge@media:~$ ls -al /media/media1/tv/ | grep SOMESHOW
deluge@media:~$
jeremymelbourne
Member
Member
Posts: 12
Joined: Mon Dec 31, 2012 1:21 am

Re: Move Completed not working

Post by jeremymelbourne »

I'm not an expert, but I had a look at the source, and given the above results, I'd think everything should work.

Is there any additional logging, maybe on the move_storage method in torrent.py you might recommend? This is quite odd isn't it?
jeremymelbourne
Member
Member
Posts: 12
Joined: Mon Dec 31, 2012 1:21 am

Re: Move Completed not working

Post by jeremymelbourne »

Whilst I was writing the above post, just for giggles, I changed my download path to a different (inbuilt) drive and the move completed path to the same drive (formatted ext4). The old download path was on a HFS+ drive (as I was running OSX on my mac mini - prior to this new Ubuntu install).

It worked!

Could the filesystem be the cause? Or the drive itself?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Move Completed not working

Post by Cas »

To be honest I am not sure because it's a low level operation made by libtorrent but at least it is working for you now. :)
jeremymelbourne
Member
Member
Posts: 12
Joined: Mon Dec 31, 2012 1:21 am

Re: Move Completed not working

Post by jeremymelbourne »

OK, so moving the download path to /home/deluge/downloads/ and the move complete path to be /home/deluge/tv/SHOW NAME/SEASON X/ was really no good for me, so I kept at this problem.

Taking a stab in the dark, I guessed it could potentially be caused by some permissions issue so I
- Reformatted the external drives to EXT4, just in case [didn't resolve the issue]
- Ran deluged interactively, rather than via the upstart script [resolved the issue]
- Ran deluged via the init.d script rather than the upstart script [resolved the issue]

So my question, if using the "Out of the Box" init.d script worked, and the "Out of the Box" upstart script didn't, what could be the root cause?

Probably worth nothing that root/deluge/core/torrent.py line 841 (move storage method) didn't log any of the error messages in the method to the debug log.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Move Completed not working

Post by Cas »

Ah you did not mention that it was the home path was for the 'deluge' user.

It is clearly a permission issue for the user 'deluge' and that storage path, if they are external drives then you should verify the mount permissions.

What is puzzling it that there is no error reported by libtorrent.
Post Reply