-
-
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
DSM 7 SABNZB: cant create folders complete/incomplete #4842
Comments
Sounds like either:
|
No the sc-download is for DSM 6 only, that does not work anymore for DSM 7 Check in the control panel the permissions of the share downloads to see if the "system internal user" sc-sabnzbd has read/write permission there. |
Thanks. Checked "control panel", "shared folder". Selected "downloads folder" and switched dropdown to "system internal user". To my surprise there is already only one checkmark and its for read/write access to sc-sabnzb. Python and all the other "users" have no checkmarks. If I am correct I can only do this for "downloads" not for subfolders complete/incomplete. Also tried a slightly different folder name in sabnzb configuration volume1/downloads/complete1 and /incomplete1 as these folders don't exist yet. That gives me the same error "Cannot create directory /volume1/downloads/complete1" Likely irrelevant: in control panel, shared folders, permissions I can also change to "local groups". There I do see previously mentioned sc-download. It has no read/write access to downloads so I selected that as well (however if I understand correctly that is/was only relevant for DSM 6). |
I am completely puzzled.
I checked the process and it is (as expected) running as user sc-sabnzbd The only thing I can think of is that SabNzbd is trying to change the permissions of those folder and the new (DSM 7) permission system of DSM does not allow that because it it using ACL's and not the linux permission settings. EDIT:
You should create an issue on the SabNzbd github that they should change this and not try to change the permissions of te folders incomplete. complete and watch if they already exists. |
This message is thrown by SABnzbd if it doesn't have read or write access: |
Thanks Safihre. Should I create an issue as BenjV described? Or any other suggestion on what to do to get it working for me (and others)? Bit confused now as sc-sabnzb as read/write access but still getting this error and sabnzb isn't working (see posts above). |
The problem is that the directory exists, the user "sc-sabnzbd" has read/write permissions and that Sabnzbd still try's to create the directory with the os.mkdir command. |
It is a strange problem. A workaround could be to remove SanNzd and remove the share "dowloads" and then install SabNzbd fresh. |
I have no issues with a new/fresh install. Thanks for all the work! |
It only does that when it can't access the the directory. @jaspov no, I am the author of the SABnzbd application. The issue is not the application, it has always worked this way, it's a problem in the specific SynoCommunity package that we should fix. |
Thanks Safihre, I recognize your name from the package in package center. Thanks for all the great work! As you can see I am a complete noob here, any action I should still take or should I just wait untill a package update arrives? |
This is what I have after a fresh installation. What is the output of these commands on a system with the error?
|
This is why I called it a very strange problem. I tried to duplicate the problem but failed. @jaspov @publicarray |
Yea that is likely part of the problem, however, the owner is |
I initially downloaded and installed manually from https://synocommunity.com/package/sabnzbd |
Thanks for that. I bought the NAS in 2015 so must have upgraded from 5 to 6 and now to 7. Update: just uninstalled sabnzb. Deleted "downloads" share and removed user "sc-download". Also the browse window now works fine. New update: needed to uninstall python 3.8 as well to get everything working. |
@publicarray |
I was able to fix this issue by deleting both the downloads folder on my nas and reinstalling the sabnzb app BUT sab still doesn't have access to any other existing folder but the "downloads" one and can't rename/move/create folders where I store my shows: volume1/Media/TVShows.... |
@almograve I assume you are running DSM7? If so the permission system has changed again: https://github.com/SynoCommunity/spksrc/wiki/Permission-Management#dsm-7-migration |
@publicarray did all that. Won't work. However, I've just created a test share and put some folder into it and I can navigate to it. No need for advanced permission, just give the sc-download access how explained in your guide. I then replicated the exact same settings on my Media folder but it won't work. Create a new Media2 folder, moved it all into it, deleted Media and then Renamed Media2 into Media and it's all good....very very strange |
The |
yes yes, sorry, was also selected. But it woudn't do it. |
Thanks @almograve, so you did get it working with a brand-new share? I suspect that upgrading shares from previous DSM versions doesn't always work correctly (possibly due to the different permission models over the years) and is likely a Synology issue, not much we can do, unfortunately. |
@publicarray yes, that's what I have done. A brand new share with just the rights given to the sc-sabnzbd profile and that's it. |
You might try In any case, |
This will screw up the permission structure of DSM which is build on ACL functionality. If you remove that, Dsm permissions will not function correctly anymore. |
@BenjV True, but the permissions weren't working properly previously. And since the directory in question is only used (and created) by external software, I suspect the reason re-installation is working is because it's creating this directory from scratch. I arrived at this conclusion because my Interestingly, creating a directory using
If someone has a counterexample for how this will cause a problem, please let me know. |
I don't agree that nuking ACL won't hurt anything, it will mess-up DSM. So the more likely explanation is that messing with permissions(now or in the past) without correctly using ACL has messed-up thing, because on my system, that of @publicarray and lots of other systems thing are working as expected, only in some rare cases this is not working correctly. |
Thanks so much for those who contributed to this thread. Like others, I'd checked all the permissions and still had the errors in SABnzbd. I didn't change things via SSH, but it turned out to be an easy fix. |
Setup
Package Name: 7.0 evansport
Package Version: v3.3.1-49
NAS Model:
NAS Architecture: Evansport
DSM version: v3.3.1-49
Expected behavior
Just installed new sabnzb for DSM7. Expecting it to finish installatiom
Actual behavior
I get errors that the complete/incomplete folders cant be made (they already exist from an older version of sabnzb on DSM6 which I uninstalled.
Errors:
ERROR a few seconds ago Cannot create directory /volume1/downloads/incomplete
ERROR a few seconds ago Failed making (/volume1/downloads/incomplete)Traceback (most recent call last): File "/volume1/@appstore/sabnzbd/share/SABnzbd/sabnzbd/filesystem.py", line 672, in create_all_dirs os.mkdir(path_part_combined)PermissionError: [Errno 13] Permission denied: '/volume1/downloads/incomplete'
ERROR a few seconds ago Cannot create directory /volume1/downloads/incomplete
ERROR a few seconds ago Failed making (/volume1/downloads/incomplete)
Secondly I tried to set the folders manually under the cog icon under settings/folders. The fields are already prefilled with what I think is the correct path (/volume1/downloads/complete) , however saving gives me : "Cannot create directory /volume1/downloads/complete"
Note: If I browse to set the path here I get no browse window. Just a very minimal windows with header: temporary download folder, a tickbox for "system folder" and a cancel and accept button.
Steps to reproduce
_1._installation
2. for second issue: see above, go to cog icon then folders.
3.
Package log
Setup
I am sorry, not sure how to find the log, can't find a var folder. Will try to find out how to get to this folder.
The text was updated successfully, but these errors were encountered: