-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added fallback and more explicit warning message #2020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 I just have one proposal for an additional log line. But I've been thinking a bit on how to make this migration as pain free, and user error free, as possible.
It might be a good help to offer the TRANSMISSION_HOME_MIGRATE option, but are we sure we need it? And will it cause more harm than good in some cases?
As the message reads right now (and assuming I'm an inexperienced user, aka noob) I might just add TRANSMISSION_HOME_MIGRATE=true and hope that solves whatever it is has to happen. If the user has not mounted /config before doing it then the data will get lost on the next container re-create.
Could v5 of the container just be all about setting the default TRANSMISSION_HOME to /config/transmission-home/ instead and do a fallback with a warning if /data/transmission-home/ exists? Or is that a too small step? It will make sure that new setups get off on the right foot, and then we can link to a separate readme page or something saying that they need to mount /config and copy that folder from /data. This way we know that they know what they're doing.
And we get away with less lines of code for later. If we introduce the migration option we'd have to support it for a while I guess?
Yeah, I understand. I’ll remove the migrate and just add a message instead |
Co-authored-by: Kristian Haugene <[email protected]>
Have I misunderstood this? My log shows:
I have |
Wording might need to be changed..
You shouldn’t set TRANSMISSION_HOME to /config but to a subdirectory.. like
/config/transmission-home ../config is the mount point
…On Thu, Oct 21, 2021 at 23:37 ilike2burnthing ***@***.***> wrote:
Have I misunderstood this? My log shows:
TRANSMISSION_HOME is set to: /config
WARNING: TRANSMISSION_HOME mountpoint is not on default /config, this is not recommended.
I have TRANSMISSION_HOME set to /config, the log shows this but in the
next line says it's not.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2020 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7OFYT6FKYZUZCGQ2WNCFDUIAQSZANCNFSM5GIKJNKA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Odd, it was on Changed it back to |
hmm, |
You're fine, don't worry. I'm always running dev branch and use Watchtower for updates.
|
thanks for the details..
when you wrote:
- changed the TRANSMISSION_HOME variable
what did you change it too?
…On Fri, Oct 22, 2021 at 1:18 PM ilike2burnthing ***@***.***> wrote:
You're fine, don't worry. I'm always running dev branch and use Watchtower
for updates.
- I noticed a torrent was stalled at 0%
- removed and re-added it, didn't work
- added a magnet, it couldn't pull the torrent information
- I restarted the container, no luck
- checked the logs and saw those two errors, stopped the container
- changed the TRANSMISSION_HOME variable
- copied the files from /data/transmission-home to /config
- restarted the container, still had both errors, issue wasn't resolved
- stopped the container again
- deleted the /data/transmission-home folder
- restarted the container, torrent immediately worked and only had the
one error
- posted about it here.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2020 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7OFYWVUKTC2HBL2T57LDDUIDQ27ANCNFSM5GIKJNKA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
From /config/transmission-home to /config |
ah, yes, that would be a problem.. it should be /config/transmission-home at least.. just setting to /config would cause other issues.. |
I hope I clarified the changes here to make it easier to understand: |
Breaking change
Proposed change
Type of change
Additional information
fixes #
relates to #
https://...
Checklist
If user exposed functionality or configuration variables are added/changed: