-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
DietPi-Software | Sonarr import to FS without UNIX-permission fails, regardless of mount options #3179
Comments
@shlatchz Looks like a permissions issue. Please assure that the Deluge downloads are created with group "dietpi" group and 002 umask, so the "sonarr" user (which is "dietpi" group member) has write permissions to import them. Deluge created file permissions and Sonarr group can be derived via:
|
@MichaIng files have root:root as owner and group |
@shlatchz But just to rule service issues our, could you paste output of the two commands above? |
As for what you said, it doesn't explain why it worked perfectly before the update.
|
I changed fstab to
and I still get access denied even though the files have dietpi:dietpi owner and group
|
@MichaIng any ideas? |
@shlatchz Just as last try with exFAT:
If that still fails, the issue must be failing chmod/chown support by exFAT. Still strange that it worked well before, probably some kernel and/or exFAT package upgrade broke it e.g. with stricter rules or such 🤔. |
caused errors
so I skipped it |
@shlatchz
Ah I am pretty sure this is due to changed user home dir, hence new configs are created and web interface RPC server credentials do not match anymore. So for this the HOME env var would need to be overridden by systemd unit to Regardless, if it works now, no need to experiment, using root is anyway worst case workaround. I'm trying to replicate. Everything went well on ext4 file system. exFAT btw produces a lot of additional CPU usage... really no good choice on Linux if possible to avoid... However Deluge download works well, import to Sonarr on first attempt indeed has not been done, although I am not 100% sure if it was due to removal and re-search of the same file, which is then ignored or such? Will retry tomorrow after fresh VM restart. |
Okay did another test today with a new file to download. Everything went very well with Deluge downloading to external exFAT partition and Sonarr grabbing it, moving to internal ext4 partition. Now I want to try exFAT to exFAT. EDITVerified:
🈯️ Mounted drive with sonarr:dietpi (777) => Import succeeds
Reported: Sonarr/Sonarr#3364 |
Seems to be a mono v6 specific issue indeed: mono/mono#16573 |
Stick with mono 5.20 and steer clear from mono 6.x |
@Taloth And aside from that, FAT fs issues are really not something we should base our priorities on. This is still a Linux distro with native support for file systems that support UNIX permissions and do not have this issue. Linux => Windows data transfer should not be done by plugging the drive around, but via network drives instead 😉. |
The problem is that since mono 6.0 they ported over code from dotnet core. And broke Copy/Move operations for any situation where file permissions cannot be changed. Not just exfat, anything. It also applies to overwriting files of which you're not the owner, but in the right group (However apps are less likely to do copy-overwrite, so it's less of an issue) There's little the user can do to work around it other than for now sticking with 5.20. Unless the specific fuse filesystem has an option to swallow chmod without errors. I hope that explains why this is happening. |
@Taloth I think we'll add the info as "known issue" here and to our online docs for Mono-runtime software and possible solutions. Best solution is to avoid FAT/exFAT file systems. They are anyway poorly supported by Linux, not only due to missing UNIX permissions but as well high CPU usage when doing R/W access by the background fuse process on exFAT. On NTFS, adding "permissions" mount option (default with If there is a strict need to use exFAT or FAT32 or any other non-UNIX-permissions file system: On Buster, mono 5.18 can be pulled from Debian repo: https://packages.debian.org/buster/mono-complete
On Stretch this results in a very old version. Since there is only an official mono v4 repo but none for mono v5, the packages must be downloaded manually, AFAIK? This is a bid annoying due to the large amount of dependencies which must all be pulled and installed manually as well 🤔. Or is there an easy way to downgrade mono with official repo applied? The list files only contain the most current version: https://download.mono-project.com/repo/debian/dists/stretch/main/binary-amd64/Packages |
Yes, I think it's a good idea to simply qualify it as a known issue and provide instructions for affected users on how to downgrade, rather than doing that for everyone.
Quite doable, but I wouldn't qualify it as easy since the existing version must be uninstalled first. Mono has repository 'snapshots' of many of the versions, you can find them here for debian stretch https://download.mono-project.com/repo/debian/dists/stretch/snapshots/ Please note that we might add some workaround to Sonarr v3 (not v2) that detects affected mono versions and falls back to a (slower) custom copy/move process rather than relying on mono to do it. |
Good to know!
As long as v5 does not get stability/security updates, this looks like the best solution/workaround, at least for Stretch.
Sounds reasonable. Currently we ship Sonarr v2 with DietPi but will switch to Sonarr v3 once released as stable. I'll keep an eye on this issue to remove downgrade/workaround hints from our docs, once a workaround or fix has been applied. For completeness as note to myself:
|
There is a PR open which should solve the issue: mono/mono#17870 |
@MichaIng the mono fix was canceled because they wanted to port over the dotnet core fix, the dotnet core fix was postponed to net 5, so dotnet core 3 never got a fix so mono didn't port it over. PS: A similar fix was made to Radarr. |
@Taloth |
Ah, didn't think about v3 vs v2 for this issue. v2 doesn't have the fix. I should talk to markus about doing an official rc1 for v3. |
@Taloth |
There's no priority whatsoever, the mono version you're using now is stable and works fine with Sonarr. So pick your priorities, I just wanted you to know about the workaround. |
Samba/SMB/CIFS mounts are affected as well: #3529 |
Guys, does anybody know if the issue still persist with mono 6.10? |
I put it onto the list for testing later. |
This has been solved with the migration to Sonarr v3 (and Radarr v3) which have a workaround implemented until that issue is solved .NET core wise. |
Creating a bug report/issue
Required Information
Additional Information (if applicable)
Bug Report ID: 3b0cd5c5-8000-40c6-ac83-14972cc6877b
Steps to reproduce
Download anything using Deluge + Jackett
Actual behaviour
When Sonarr tries to fetch the downloaded data, I receive:
Extra details
The text was updated successfully, but these errors were encountered: