Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.02k stars 409 forks source link

Torrents starting in "pausing" state [Sonarr] #1250

Closed jdlovins closed 3 years ago

jdlovins commented 8 years ago

About 5% of the time when torrents get added through sonarr they start in a "pausing" state. Deleting the torrent and re-adding it via sonarr will "fix" the issue but it seems a little odd. It definitely has permissions to the media folder as its 777. the media folder is a zfs partition so space is definitely there. I've started logging with rtorrent to see if anything pops up the next time this happens but otherwise any ideas as to why this happens?

Thanks!

Novik commented 8 years ago

Sorry, but I don't know anything about 'sonarr'. May be, you should ask question to it's author? What relation ruTorrent has to this?

jdlovins commented 8 years ago

Basically sonarr is a program that grabs TV shows from websites and sends the .torrent file to rutorrent . For some reason about 5% of the torrents added through sonarr get put in a "pausing" state and I cant figure out why.

A possible solution i guess was proposed here; http://forums.rutorrent.org/index.php?topic=289.msg7218#msg7218

What did you mean by "Remove substring "default" from this line."

system.method.set_key=event.download.inserted_new,create_struct,"d.open= ; f.multicall=default,\"execute={sh,/home/rtorrent/creator.sh,$f.get_frozen_path=}\""

Novik commented 8 years ago

What did you mean by "Remove substring "default" from this line."

You see word 'default' in the line above? Remove it.

system.method.set_key=event.download.inserted_new,create_struct,"d.open= ; f.multicall=\"execute={sh,/home/rtorrent/creator.sh,$f.get_frozen_path=}\""

jdlovins commented 8 years ago

Well, It happened again and i was logging. I'm not sure if this will help you at all or anything.

1461123918 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Added tracker group:0 url:'http://trackerurl/announce'.
1461123918 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Added tracker group:0 url:'http://trackerurl/announce'.
1461123918 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Closing download directly.
1461123918 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Inserting download.
1461123948 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Sending 'scrape' to group:0 url:'http://trackerurl/announce'.
1461123948 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Failed to scrape tracker url:'http://trackerurl/announce' msg:'Couldn't connect to server'.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Opening download.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Opening torrent: flags:ffffffff.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->file_list: Opening.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->chunk_list: Resizing: from:0 to:3514.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Resuming download: flags:0.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Opening download.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Checking hash: allocated:0 try_quick:1.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->hash_torrent: Start: position:0 size:3514 try_quick:1.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->hash_torrent: Completed (normal): position:3514 try_quick:1.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->hash_torrent: Confirm checked.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Hash done.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Resuming download: flags:0.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Starting torrent: flags:0.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->file_list: Opening.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_controller: Called enable with 2 trackers.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Setting new baseline on start: uploaded:0 completed:0.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_controller: Sending started event.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Sending 'started' to group:0 url:'http://trackerurl/announce'.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Failed to connect to tracker url:'http://trackerurl/announce' msg:'Couldn't connect to server'.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Sending 'started' to group:0 url:'http://trackerurl/announce'.
1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Received 50 peers from tracker url:'http://trackerurl/announce'.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Received finished.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Hash queue.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Pausing download: flags:1.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Stopping torrent: flags:1.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_controller: Called disable with 2 trackers.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Closing torrent: flags:0.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->hash_torrent: Clear.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->file_list: Closing.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->chunk_list: Clearing.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Opening download.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Opening torrent: flags:ffffffff.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->file_list: Opening.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->chunk_list: Resizing: from:0 to:3514.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Checking hash: allocated:0 try_quick:0.
1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->hash_torrent: Start: position:0 size:3514 try_quick:0.

It cant scrape the first tracker, but it can the second one, but just goes ahead and pauses.

loueradun commented 8 years ago

@jdlovins Did you ever find a solution to this? It seems to happen sporadically with torrents added from public trackers (never with my private trackers). I see the torrent start in ruTorrent, it downloads the metadata, then it goes to the "Stopped" state. Re-adding it from Sonarr or starting the torrent in ruTorrent will cause it to start without any issue.

If I take the same torrent file and manually add it to ruTorrent, it starts just fine. There is nothing really unique about how the public torrent is added from Sonarr versus the private torrents that work.

jdlovins commented 8 years ago

@loueradun sadly I couldn't figure out a solution and I only used private trackers as well. I just switched to deluge as it works 100%, even if i have to use deluge. It seemed to have something to do with the trackers?

1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_controller: Sending started event. 1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Sending 'started' to group:0 url:'http://trackerurl/announce'. 1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Failed to connect to tracker url:'http://trackerurl/announce' msg:'Couldn't connect to server'. 1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Sending 'started' to group:0 url:'http://trackerurl/announce'. 1461126845 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_list: Received 50 peers from tracker url:'http://trackerurl/announce'. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Received finished. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Hash queue. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download_list: Pausing download: flags:1. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Stopping torrent: flags:1. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->tracker_controller: Called disable with 2 trackers. 1461126987 I 7E671785392D9EAC97089D9B35788FBA4EA8D955->download: Closing torrent: flags:0.

loueradun commented 8 years ago

That is unfortunate. I use the autodl-irssi plugin in rutorrent that runs a script to push IRC announces straight to Sonarr (so Sonarr can filter the announces and grab the torrents it deems are wanted), so using deluge would just add another moving part to my setup.

If I do a trace log in Sonarr I see that it immediately does a request for the status of torrents after adding the torrent, so perhaps it has to do with that (that would explain why it sometimes works, and sometimes doesn't as the timings could be slightly varied).

I have not tried the fix that was mentioned earlier in the issue because the issue doesn't seem related to torrents in subfolders vs those that aren't.

Animosity022 commented 7 years ago

I got around that by just using a blackhole over the direct client config. I would get that as well and just gave up as it was just too annoying to bother with.

My config is using a blackhole and autotools to move it to the watched folder in Sonarr.

Been working for months without a problem.

lordvalium commented 4 years ago

That is unfortunate. I use the autodl-irssi plugin in rutorrent that runs a script to push IRC announces straight to Sonarr (so Sonarr can filter the announces and grab the torrents it deems are wanted), so using deluge would just add another moving part to my setup.

If I do a trace log in Sonarr I see that it immediately does a request for the status of torrents after adding the torrent, so perhaps it has to do with that (that would explain why it sometimes works, and sometimes doesn't as the timings could be slightly varied).

I have not tried the fix that was mentioned earlier in the issue because the issue doesn't seem related to torrents in subfolders vs those that aren't.

@loueradun i can observe the same. On torrents with subfolders it causes the problem on my 0.9.8 / 0.13.8

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

a-raccoon commented 7 months ago

Shame that this bug has never been fixed. There's nothing more infuriating than all the torrents going into "pausing" state out of the blue, and no combination of Start, or Stop then Start, or Force Recheck, will bring them out of "Pausing." Only solution is to delete and start over.