Sonarr version (exact version): 2.0.0.3953 Mono version (if Sonarr is not running on Windows): 4.2.1 OS: Ubuntu 14.04.1 LTS Debug logs (posted to hastebin or similar): http://pastebin.com/GvdWu5qM Description of issue (if you think you’ve found a bug please include steps to reproduce):
After having to re-install transmission-daemon after updating to 2.92, I’m having a small issue with Sonarr, giving me an error when importing/moving files. The files transfer fine, but when it tries to assume permissions(i think?) it gives me an error:
UpdateEpisodeFileService|Unable to set date of file [/home/USER/TV Shows/The Simpsons/Season 27/The Simpsons - S27E16 - The Marge-ian Chronicles.mkv [v2.0.0.3953] System.IO.IOException: Invalid parameter
I also noticed that the files that are imported are also still “owned” by debian-transmission (the user that runs Transmission), while previously downloaded files are owned by the user running the Mono/Sonarr process.
Where do I start with this? I know it’s not a show-stopping feature, but it doesn’t bother me nonetheless
If sonarr doesn’t own the file it cannot change ownership if doing hardlinking. If sonarr is running as root it would be able to do it. If sonarr is copying the file then it should be owned by sonarr.
My understanding is those options are for series folder creation like seriesname/season x/
@subzero79 It’s being moved, not hardlinked. And considering that’s succeeding, it has permissions to do so.
Could still be permission related, of course, but at first glance I doubt it.
This particular problem has happened before, back in 2014, but I can’t remember the conclusions.
Tbh, most ppl don’t have that “Change File Date” option set to anything
@Taloth I did not see the log, you’re correct the file is being moved
Even if the file is being moved the file is still owned by debian-transmission, sonarr won’t be able to chown that file. For the date maybe a post processing script can solve your issue, there is a env var with episode airdate UTC.
1 - Disable the “Change File Date” feature in Sonarr, or
2 - Have the transmission-daemon run under the same user as Sonarr, so the file ownership wouldn’t ever be an issue…
Is this about it? It’s just puzzling, as before Transmission 2.92, I had no issues running under 2 different users…
File ownership shouldn’t be an issue if the group ownership is shared and transmission uses a umask of 002 so files are created in 775 mode. Anyway you shouldn’t have problems deleting files from sonarr for example, since delete permissions are controlled by the parent folder. In this case the parent folder (season x) should be owned by sonarr.