RESOLVED: Sabnzbd file permissions

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

RESOLVED: Sabnzbd file permissions

Postby panzer » Sat Sep 13, 2014 12:03 am

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

User avatar
bigfoot65
Project Manager
Posts: 11447
Joined: Mon May 25, 2009 4:31 pm

Re: Sabnzbd file permissions

Postby bigfoot65 » Sun Sep 14, 2014 12:46 pm

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.
ßîgƒσστ65
Applications Manager

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

Re: Sabnzbd file permissions

Postby panzer » Wed Sep 17, 2014 6:38 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11447
Joined: Mon May 25, 2009 4:31 pm

Re: Sabnzbd file permissions

Postby bigfoot65 » Wed Sep 17, 2014 11:24 am

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:

Code: Select all

rpm -ql sabnzbd
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
ßîgƒσστ65
Applications Manager

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

Re: Sabnzbd file permissions

Postby panzer » Thu Sep 18, 2014 6:14 am

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:

Code: Select all

rpm -ql sabnzbd
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 ?

User avatar
bigfoot65
Project Manager
Posts: 11447
Joined: Mon May 25, 2009 4:31 pm

Re: Sabnzbd file permissions

Postby bigfoot65 » Thu Sep 18, 2014 12:47 pm

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.
ßîgƒσστ65
Applications Manager

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

Re: Sabnzbd file permissions

Postby panzer » Fri Sep 19, 2014 1:07 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11447
Joined: Mon May 25, 2009 4:31 pm

Re: Sabnzbd file permissions

Postby bigfoot65 » Fri Sep 19, 2014 1:11 pm

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
ßîgƒσστ65
Applications Manager

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

Re: Sabnzbd file permissions

Postby panzer » Sat Sep 20, 2014 2:39 am

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

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 :)

User avatar
bigfoot65
Project Manager
Posts: 11447
Joined: Mon May 25, 2009 4:31 pm

Re: Sabnzbd file permissions

Postby bigfoot65 » Sat Sep 20, 2014 7:03 am

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
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 3 guests