Page 1 of 2
RESOLVED: Sabnzbd file permissions
Posted: Sat Sep 13, 2014 12:03 am
by panzer
Hi
Sabnzbd seems to be installed with the one click app through amahi, my problem lies with the file directories and permissions.
The NZB file is snatched through sickbeard and then sent to SAB there is a status of "waiting" and no downloading.
The file structures are created in the directory yet nothing is downloading.
What is the default directory for download folders.
How do i go about changing the default directory to another including the file permissions.
Many thanks
Re: Sabnzbd file permissions
Posted: Sun Sep 14, 2014 12:46 pm
by bigfoot65
Each app has it's own settings for downloads. Recommend you check out the wiki guidance for using these apps together.
https://wiki.amahi.org/index.php/Sick_Beard
The default Download location for SABnzbd is the share "Newsgroups" which can be changed via SABnzbd web interface I believe.
Re: Sabnzbd file permissions
Posted: Wed Sep 17, 2014 6:38 am
by panzer
Each app has it's own settings for downloads. Recommend you check out the wiki guidance for using these apps together.
https://wiki.amahi.org/index.php/Sick_Beard
The default Download location for SABnzbd is the share "Newsgroups" which can be changed via SABnzbd web interface I believe.
Thanks for clarifying that, the issue with file permissions is still apparent for this location on the drive causing the file to be created in the directory but not download any data.
I have changed the owenership of the folder to " apache:users" and also "root:root" without any success to the downloading data situation.. i am stumped with the reasons for this.
on a seperate note unsure if this has any relevance to the primary issue, the one click install application it now installs to a directory called sabnzbdplus3. It will call this as a default directory even though i had removed every part of sabnzbd from the system (not sure why this happens) however the implications due to the folder being named "sabnzbdplus3" is the systemd config file had to be amended to reflect the current installation directory (reason being systemd was unable to start the service sabnzbdplus because it was looking for a directory that did not exist i believe this still has issues as the service in systemd sometimes stops randomly)
I have paid for this app to work yet i am having an amazing amount of difficulty trying to mess about with config files to get it working..
any help would be appreciated.
Re: Sabnzbd file permissions
Posted: Wed Sep 17, 2014 11:24 am
by bigfoot65
Ok, having a numbered directory is an issue. Also the permissions for the newsgroup folder should be 1stadminuser:users (1stadmin is the user you created on initial Amahi install) and read/writable by all (chmod 775).
Recommend you uninstall SABnzbd Plus. Then check /var/hda/web-apps for additional copies of the SABnzbd folder. There should not be any.
Check the Installed Apps tab to see if there are any other versions installed. There should not be.
You will likely have to do some clean up. Check /etc/httpd/conf.d directory for ####-sabnzbd.conf files. There should not be any after the initial uninstall.
Next I would recommend you do:
The results should be not found. The only official SABnzbd Plus app for Amahi 6 and 7 is the one listed below:
https://www.amahi.org/apps/sabnzbd-plus
Re: Sabnzbd file permissions
Posted: Thu Sep 18, 2014 6:14 am
by panzer
Ok, having a numbered directory is an issue. Also the permissions for the newsgroup folder should be 1stadminuser:users (1stadmin is the user you created on initial Amahi install) and read/writable by all (chmod 775).
Recommend you uninstall SABnzbd Plus. Then check /var/hda/web-apps for additional copies of the SABnzbd folder. There should not be any.
Check the Installed Apps tab to see if there are any other versions installed. There should not be.
You will likely have to do some clean up. Check /etc/httpd/conf.d directory for ####-sabnzbd.conf files. There should not be any after the initial uninstall.
Next I would recommend you do:
The results should be not found. The only official SABnzbd Plus app for Amahi 6 and 7 is the one listed below:
https://www.amahi.org/apps/sabnzbd-plus
Thanks for this, i have followed your instructions and there are no instances of sabnzbd installed config files or directories.
I click on the install application from the menu and it created sabnzbdplus3 once again.
Is there something i can modify to stop this from happening ?
Re: Sabnzbd file permissions
Posted: Thu Sep 18, 2014 12:47 pm
by bigfoot65
Something must have been left behind in the database. Recommend you follow the uninstall instructions again. Then once you are sure there are no stray files left, check hda_production database, apps and webapps tables.
If you see any rows with SABnzbd, please post the info here. We would like to diagnose this issue and determine the root cause.
Re: Sabnzbd file permissions
Posted: Fri Sep 19, 2014 1:07 am
by panzer
Something must have been left behind in the database. Recommend you follow the uninstall instructions again. Then once you are sure there are no stray files left, check hda_production database, apps and webapps tables.
If you see any rows with SABnzbd, please post the info here. We would like to diagnose this issue and determine the root cause.
I can see the directory with the folder hda_production, how do i open files within to see the log information.
they are *.opt and *frm files.
var/lib/mysql/hda_production
If you could please print the directory as to the exact location of these files and how to view the contents i will paste them onto this thread.
Many thanks.
Re: Sabnzbd file permissions
Posted: Fri Sep 19, 2014 1:11 pm
by bigfoot65
This is not a file system thing, but a database one. You will need to use an app such as Adminer or phpMyAdmin to see the database and tables.
https://www.amahi.org/apps/adminer
or
https://www.amahi.org/apps/phpmyadmin
Re: Sabnzbd file permissions
Posted: Sat Sep 20, 2014 2:39 am
by panzer
Thanks for the reply, i have removed the bad entries from the php tables it now installs to sabnzbd without any following numbers.
The issue still remains with the waiting status, i have checked the directories " complete" & " incomplete" and the permissions are fine.
The creation of new folders under the " incomplete" directory have the permissions " apache" is this normal ?
Thanks again slowly getting there

Re: Sabnzbd file permissions
Posted: Sat Sep 20, 2014 7:03 am
by bigfoot65
Did the app create these new folders? Might try doing the following and see if it helps:
Code: Select all
chown -R 1stadminuer:users /var/hda/files/newsgroups
Replace 1stadminuser with the appropriate user name that is used for all other shares. You might also need to restart SABnzbd Plus.
UPDATE: This might help as well.
viewtopic.php?f=23&t=1740