Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torrents in progress (downloading) don't resume automatically on container restart #40

Closed
timkelty opened this issue Nov 17, 2015 · 7 comments
Labels
bug wontfix/not container problem Either a non-issue or related to 3PP

Comments

@timkelty
Copy link

  • If a torrent is in progress...
  • I stop/start my container
  • if I go to the web UI now, the in progress torrent is paused, and any progress it had is lost.

Any ideas?

@timkelty
Copy link
Author

I discovered if I "Verify Local Data", then "Resume", everything works as expected. But I believe this is supposed to happen automatically?

Is it perhaps a timing issue with when Transmission starts and when the mount points are available?

@haugene
Copy link
Owner

haugene commented Nov 18, 2015

It's good at least that it works with "Verify Local Data". But I agree, Transmission should remember it's state from before the shutdown.

The docker engine will make mount points available before starting the openvpn process, so this is not a timing issue.

I'm thinking this has to do with how Transmission is stopped when you do "docker stop ". The openvpn cofigs instructs openvpn to kill transmission when the interface goes down, this is to prevent traffic when no openvpn connection is active. When transmission is killed it might lose state that is in-memory. To fix this we should probably look into a more graceful way of shutting down Transmission, but kill the process if it doesn't stop gracefully.

@timkelty
Copy link
Author

Obviously not a huge deal, and certainly wouldn't want to compromise the killing of transmission when the interface goes down.

Thanks for the explanation!

@haugene haugene changed the title Torrents don't resume when container restarts Torrents in progress (downloading) don't resume automatically on container restart Nov 18, 2015
@haugene
Copy link
Owner

haugene commented Nov 18, 2015

No problem. I'll keep it in mind, and maybe I'll stumble upon a better solution some day ;)
I'm closing this issue as a "won't fix" for now, and rephrased it a little to pinpoint what's the possible improvement here.

@haugene haugene closed this as completed Nov 18, 2015
@haugene haugene added enhancement wontfix/not container problem Either a non-issue or related to 3PP bug and removed enhancement labels Nov 18, 2015
@fletom
Copy link

fletom commented Aug 26, 2017

This seems like a huge issue to me, since it's necessary to configure automatic restarts when the VPN disconnects. So effectively a disconnect will actually not be recovered from properly, since all your torrents will be paused. This never happens when e.g. the desktop version of Transmission gets restarted.

The "verify local data" feature will also only recover download progress, you then need to individually click the resume button for every torrent you have to recover fully.

Can we reopen this discussion and look at possible fixes?

Is it possible that we're missing another cache/config/tmp directory that Transmission uses for this kind of state that we can just mount as a volume to preserve between restarts?

@fletom
Copy link

fletom commented Aug 26, 2017

It seems like this issue is also a duplicate of #23, which was supposed to have been fixed by @dougnukem's commits. Are others still seeing this issue, or is it possible that it's an issue with my own configuration?

@simonsjw
Copy link

simonsjw commented Aug 23, 2018

I see the same thing.
Happy to provide additional information/settings.
Just noticed this comment is a year old so I guess the odds are it's an issue with my system (qnap NAS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug wontfix/not container problem Either a non-issue or related to 3PP
Projects
None yet
Development

No branches or pull requests

4 participants