This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HowTo] Install SABnzbd on N4F Embedded with ZFS

XigmaNAS Packages
Forum rules
Set-Up GuideFAQsForum Rules
pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

[HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

Hi there,

After some extensive reading and some trial and error, I've succeeded with installing SABnzbd on a NAS4Free embedded machine with a ZFS pool, and thought it would be helpful to post here on how to do it, step by step.

The SABnzbd setup was done on N4F version 9.1.0.1.431, x64-embedded, and is based on these 3 important guides I found - thanks a lot for the guys who wrote them:
Solution for mount_unionfs with ZFS:
viewtopic.php?f=72&t=210#p507
Fantechtic's tutorial for SABnzbd on embedded FreeNAS 0.7.2 (i386):
http://blog.rogee.nl/post/1299063963/tu ... 0-7-2-i386
Updated packages install for FreeBSD 9.x:
http://code.google.com/p/freenas-dashbo ... eExtraInfo

So, let's begin...
ssh into your N4F machine with root user.

UFS container for installation packages
First, we'll create a UFS formatted container inside our ZFS drive/pool for the unionFS mount, in order to store installation packages on our ZFS storage, rather than on our Flash drive (which is not possible because each time the NAS is rebooted, every new file is deleted).
Please note that each occurrence of "zfspool" is your ZFS drive/pool name. You can see it by typing the command zfs list.
Here, a 2GB volume is created, and the new mount directory /mnt/opt will point to your new UFS formatted container:

zfs create -V 2G zfspool/opt
newfs /dev/zvol/zfspool/opt
mkdir /mnt/opt
mount /dev/zvol/zfspool/opt /mnt/opt


Create some directories:
cd /mnt/opt
mkdir sabnzbd
mkdir var
mkdir usr
mkdir tmp


Using N4F Web GUI, go to System|Advanced|Command scripts and add the 2 mount command lines of PostInit type (press + button for each line):
mkdir /mnt/opt
mount /dev/zvol/zfspool/opt /mnt/opt


Now, using the Web GUI, reboot the NAS, and after it finishes restarting, re-ssh with root user and invoke:
cd /mnt/opt
ls -l

in order to make sure that the sabnzbd/var/usr/tmp directories are still there after the reboot.
If you see these directories, you've finished this stage and you can proceed to the installation.

SABnzbd new group and directories
Using N4F Web GUI, go to Access|Users and Groups|Group and create the group: “sabnzbd”.
Then assign some users to the group, which are going to access the folder.

Invoke these commands. Make sure that no errors or failures are displayed:
cd /mnt/zfspool
mkdir downloads
chgrp sabnzbd downloads
chmod 770 downloads
cd downloads
mkdir blackhole
mkdir complete
mkdir incomplete
mkdir scripts
chgrp -R sabnzbd blackhole
chgrp -R sabnzbd complete
chgrp -R sabnzbd incomplete
chgrp -R sabnzbd scripts
chmod 770 blackhole
chmod 770 complete
chmod 770 incomplete
chmod 770 scripts


Now, we'll logically combine the default /usr and /var system directories with our external directories.
Again, make sure that there are no errors or failures:
mount_unionfs -o w /mnt/opt/usr/ /usr/
umount -f /var
mount_unionfs -o w /mnt/opt/var/ /var/


FreeBSD packages installation
In order to let the SABnzbd work, we'll need some packages which are not included in the N4F embedded, such as python, unzip, unrar etc...
First, make sure you can connect to the internet and resolve DNS addresses, by pinging Google. Press Ctrl+C to stop pinging:
ping google.com
If it fails resolving the address, go to System|General in the web GUI and make sure the DNS servers are properly configured. If you're not sure what to put there, a good bet will be 8.8.8.8, which is one of the Google's DNS servers. Press Save and retry pinging.

Only when ping is successful, you can continue the installation!

Now, for some download and install fun. A lot of lines will be printed for each package installation.
Make sure that each pkg_add does not display failure error at its end.

If you have an x86-embedded installation (32 bit), invoke:
setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports ... nt/Latest/"
if you have an x64-embedded installation (64 bit), invoke:
setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports ... nt/Latest/"

Also, set this:
setenv PKG_TMPDIR /mnt/opt/tmp/

Packages installation:
pkg_add -rv python27 py27-sqlite3
pkg_add -rv unzip
pkg_add -rv py27-yenc
pkg_add -rv py27-cheetah
pkg_add -rv py27-openssl
pkg_add -rv py27-feedparser
pkg_add -rv py27-utils
pkg_add -rv unrar
pkg_add -rv par2cmdline


SABnzbd installation
Invoke:
cd /mnt/opt/tmp
fetch "http://sourceforge.net/projects/sabnzbd ... src.tar.gz"
tar -xzf SABnzbd-0.7.5-src.tar.gz
rm SABnzbd-0.7.5-src.tar.gz
mv SABnzbd-0.7.5 /usr/local/share/


Now, make a small edit to SABnzbd's script. Invoke the "nano" text editor:
nano /usr/local/share/SABnzbd-0.7.5/SABnzbd.py
and in the beginning of the file (use arrow keys), change line from !/usr/bin/python -OO to !/usr/local/bin/python -OO
Save the file by pressing CTRL+X to exit, Y to overwrite and ENTER to confirm the filename.

Go again in the web GUI to System|Advanced|Command scripts and add these 2 lines of PostInit type.
192.168.1.250 is the NAS IP address. Change it if it is a different one in your NAS.
mount_unionfs -o w /mnt/opt/usr/ /usr/
/usr/local/share/SABnzbd-0.7.5/SABnzbd.py -d -f /mnt/opt/sabnzbd/sabnzbd.ini -s 192.168.1.250:8085


Now, reboot your NAS.

SABnzbd and shutdown configuration
If everything went smoothly, you can now access the SABnzbd's web GUI by browsing to
http://192.168.1.250:8085/sabnzbd
Can you see properly SABnzbd's configuration wizard? Hooray, you've made it! :D
Now, configure your Usenet server details, download folders (use absolute location such as /mnt/zfspool/downloads/incomplete etc...).
Also, in the Folders configuration, set "Permissions for completed downloads" to 777. Save changes after you've done.

Finally, for proper shutdown of the SABnzbd service while shutting the NAS down, go to the N4F web GUI's System|Advanced|Command scripts and add this line of Shutdown type:
/usr/bin/fetch "http://192.168.1.250:8085/sabnzbd/shutd ... n=myapikey" > /dev/null
where instead of "myapikey", copy the API key from the SABnzbd's Config-General web page.

That's it.
Feel free to comment and ask questions.
I'm far from being a FreeBSD expert but I'll try to help...
:ugeek:
Last edited by pixies on 10 Feb 2013 18:45, edited 1 time in total.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

holocron
NewUser
NewUser
Posts: 1
Joined: 25 Nov 2012 15:50
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by holocron »

Hey there,

following your tutorial, but when I reboot my FN those /mnt/opt/tmp/, /mnt/opt/usr, /mnt/opt/var, /mnt/opt/sabnzbd folders do not appear. Any ideas why they don't show up?

thanks

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

If you invoke
zfs list
Do you see your new UFS volume or just your main pool?

For exmplae (see bold):
NAME USED AVAIL REFER MOUNTPOINT
zfspool 2.31T 2.88T 2.30T /mnt/zfspool
zfspool/opt 2.06G 2.88T 408M -

Also, did you add the Script PostInit lines in the Web GUI?
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

chupa
NewUser
NewUser
Posts: 10
Joined: 01 Sep 2012 17:16
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by chupa »

Thanks for this tut!

I am trying to get this to work on a nas4free x64-full install. Which steps can/should I omit to tailor this guide to installing on a full system?

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

For a full installation (not embedded), you can skip everything which is realted to the "UFS container for installation packages" part, and simply use the regular usr/bin directories for the package additions.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

chupa
NewUser
NewUser
Posts: 10
Joined: 01 Sep 2012 17:16
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by chupa »

Basically just the first section?

Code: Select all

zfs create -V 2G zfspool/opt
newfs /dev/zvol/zfspool/opt
mkdir /mnt/opt
mount /dev/zvol/zfspool/opt /mnt/opt

chupa
NewUser
NewUser
Posts: 10
Joined: 01 Sep 2012 17:16
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by chupa »

Code: Select all

Finally, for proper shutdown of the SABnzbd service while shutting the NAS down, go to the N4F web GUI's System|Advanced|Command scripts and add this line of PostInit type:
/usr/bin/fetch "http://192.168.1.250:8085/sabnzbd/shutdown?session=myapikey" > /dev/null
where instead of "myapikey", copy the API key from the SABnzbd's Config-General web page.
Should this really be PostInit type or is that a typo?

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

In the case of non-embedded installation, the whole first section is obsolete, and the package installation should be done to the regular /usr and /bin of your system. Slight changes are needed in the following sections - use /usr and /bin instead of /mnt/opt/usr and /mnt/opt/bin.

Regarding the Shutdown command, you're right, 10x. I've edited my post and corrected it.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

Svenn
NewUser
NewUser
Posts: 1
Joined: 07 Apr 2013 17:38
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by Svenn »

It worked! Thanks. Do you think you could do a guide for sickbeard too?

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

It should be fairly easy, because most of the hard work is already done and it uses the packages you already installed for SABnzbd.
Use this tutorial:
http://blog.rogee.nl/post/1344848440/tu ... 0-7-2-i386

/mnt/Zeta in that guide is the same as /mnt/zfspool in my guide.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

cancerman
Starter
Starter
Posts: 33
Joined: 23 Jun 2012 07:27
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by cancerman »

Will I need to redo any of this each time I upgrade N4F? If I can get this to work, I'll probably save $5/month on electric since my gaming rig does all of my usenet downloads at the moment.
Nas4Free 9.1.0.1.775. EP43T-UD3L, 12GB, Q6600, Supermicro USAS-L8i with IT firmware, 4x 2TB WD Green, 4x 1.5TB WD Green, 3x 1TB Samsung F4, 3x 1TB Seagate Barracuda, 2x 1TB Hitachi Deskstar, OCZ SSD for L2ARC, Mirrored Corsair SSDs for ZIL.

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

As far as I know, you won't have to do that each time you upgrade, at least not while still in 9.1.xxx.
I would recommend backing up the /mnt/opt contents in your ZFS pool, so you could just copy the files if they're lost after upgrade.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

cancerman
Starter
Starter
Posts: 33
Joined: 23 Jun 2012 07:27
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by cancerman »

OK, good to know, I'll give this a try this weekend.
Nas4Free 9.1.0.1.775. EP43T-UD3L, 12GB, Q6600, Supermicro USAS-L8i with IT firmware, 4x 2TB WD Green, 4x 1.5TB WD Green, 3x 1TB Samsung F4, 3x 1TB Seagate Barracuda, 2x 1TB Hitachi Deskstar, OCZ SSD for L2ARC, Mirrored Corsair SSDs for ZIL.

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

I get all the way through with the installation. Everything installs perfectly. Then after the final reboot and trying to browse to SABnzbd, I get the following error:

Oops! Google Chrome could not connect to 192.168.1.250:8085

Been at this point after several attempts. I even restored all my settings on N4F and named my pool "zfspool" so that I could simply copy/paste the commands as you have listed. There are a few things that I notice during the installation:

1) My Default Gateway and IPv4 DNS servers is set to 192.168.1.1 from initial installation up to the step of combining the default /usr and /var systems directories. I am able to ping google.com up until this point. After running this step, I am no longer able to ping google.com. Adding 8.8.8.8 as an IPv4 DNS servers value corrects this problem.
2) After the final reboot, upon SSH'ing into N4F, the /mnt/opt/tmp/, /mnt/opt/usr, /mnt/opt/var, /mnt/opt/sabnzbd folders are now gone.

I am putting in the PostInt commands in the sequence you have suggested. Any ideas what is wrong?

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

The problem seems to be something with your UFS container.

It happened to me about 2 times that when the NAS was cold-rebooted after a freeze or power outage the UFS container was gone and I had to re-install (or simply re-copy it from a backup I did in my zfs pool, see my post from April 15th, 2013), but never happened after rebooting regularly through the web GUI.

Does anybody have an idea what else can cause a UFS container to disappear after regular reboot?
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

If it makes any difference, I am 3x2TB drives. They are set to single parity and they are set to 4096 sectors.

Also, I am a newbie. I suppose I should make the back-up of my zfs pool just prior to the final reboot, correct? Now if only someone could provide those commands for me. Thanks.

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

I did it through the web GUI file manager - I just ticked the tmp/usr/var/sabnzbd folders and copied them to a folder in the zfs pool using the Copy option at the top of the window.
It printed an error that not all files copied (probably some temporary locked files), but when I copied the files back from the zfs pool after the UFS container vanished, all worked flawlessly without having to re-run the pkgadd commands, just rebooted regularly and all went back to work.
Please note that before copying back you have to rerun the "zfs create" and the 3 commands afterwards in order to re-create the UFS container.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

pixies wrote:I did it through the web GUI file manager - I just ticked the tmp/usr/var/sabnzbd folders and copied them to a folder in the zfs pool using the Copy option at the top of the window.
It printed an error that not all files copied (probably some temporary locked files), but when I copied the files back from the zfs pool after the UFS container vanished, all worked flawlessly without having to re-run the pkgadd commands, just rebooted regularly and all went back to work.
Please note that before copying back you have to rerun the "zfs create" and the 3 commands afterwards in order to re-create the UFS container.
Many thanks pixies, I am now configuring SABnzbd!

Don't know why the UFS container disappeared after the final reboot; I entered your commands literally. But backing up the UFS container just prior to rebooting, then restoring them after running the initial 'zfs' commands did the trick. I hope the configuration for SABnzbd isn't as harsh.

Anyhoo, I'd recommend editing the tutorial and inserting a cautionary step to back up the /mnt/opt sub-directories to /mnt/zfspool/<create backup directory> just after adding the 3rd and 4th PostInt commands. It would totally save someone from losing 7 hours over two days like I just did :).

Thanks again.

DrizzUK
NewUser
NewUser
Posts: 5
Joined: 05 Sep 2013 20:15
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by DrizzUK »

I thought this was going too well :D

The instructions are awesome :ugeek: but I can't connect to SAB via the IP.

The /opt is monted:
NAME
USED AVAIL REFER MOUNTPOINT
pool1 593G 1.20T 160K /mnt/pool1
pool1/Pictures 144K 1.20T 144K /mnt/pool1/Pictures
pool1/Videos 593G 1.20T 593G /mnt/pool1/Videos
pool2 14.7G 899G 232K /mnt/pool2
pool2/Documents 144K 899G 144K /mnt/pool2/Documents
pool2/Music 12.6G 899G 12.6G /mnt/pool2/Music
pool2/TV 144K 899G 144K /mnt/pool2/TV
pool2/opt 2.06G 901G 199M -
I think it could be the IP I have. My server is 192.168.1.3 so I added 192.168.1.3:8085 to the command script:
/usr/local/share/SABnzbd-0.7.16/SABnzbd.py -d -f /mnt/opt/sabnzbd/sabnzbd.ini -s 192.168.1.3:8085
But it doesn't load.
http://192.168.1.3:8085/sabnzbd

*UPDATE*
It's still not working, if I navigate to: /mnt/opt/sabnzbd/ there is no sabnzbd.ini file in that folder.

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

Sounds to me like some admission/permission problems.

Did you check with the "top" command ("su" first...) that the sabnzbd process is running? Check for a "python" process.
Alternatively, you can use:
ps -ef | grep python

If it isn't running, try to simply copy & paste the running command to the SSH command prompt and see if any errors are displayed.
This will shed some light on why it can't run.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

DrizzUK
NewUser
NewUser
Posts: 5
Joined: 05 Sep 2013 20:15
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by DrizzUK »

Did you check with the "top" command ("su" first...) that the sabnzbd process is running? Check for a "python" process.
Alternatively, you can use:
ps -ef | grep python
Not sure on what to do with your first suggestion. I did run ps -ef | grep python but that didn't return anything. So I copy/pasted
/usr/local/share/SABnzbd-0.7.16/SABnzbd.py -d -f /mnt/opt/sabnzbd/sabnzbd.ini -s 192.168.1.3:8085
and got this back:
Sorry, requires Python module sqlite3
Try: apt-get install python-pysqlite2

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

This means that probably the sqlite module was not installed correctly - it's the first in the "pkg_add" command list.
I would try to run the "pkg_add" commands again and make sure there are no significant errors in their output.
Please make sure that "ping google.com" responds okay before you start running the pkg_add commands.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

DrizzUK
NewUser
NewUser
Posts: 5
Joined: 05 Sep 2013 20:15
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by DrizzUK »

Thanks for the help.

I tried again and it says (I've not pasted all the output)
tar command returns 0 status
Done.
pkg_add: package 'python27-2.7.5_1' or its older version already installed
scheme: [http]
user: []
password: []
host: [ftp.freebsd.org]
port: [0]
document: [/pub/FreeBSD/ports/amd64/packages-9-current/Latest/py27-sqlite3.tbz]
---> ftp.freebsd.org:80
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:80
requesting http://ftp.freebsd.org/pub/FreeBSD/port ... qlite3.tbz
>>> GET /pub/FreeBSD/ports/amd64/packages-9-current/Latest/py27-sqlite3.tbz HTTP/1.1
>>> Host: ftp.freebsd.org
>>> User-Agent: pkg_add libfetch/2.0
>>> Connection: close
>>>
<<< HTTP/1.1 200 OK
<<< Content-Type: application/x-bzip-compressed-tar
<<< Accept-Ranges: bytes
<<< ETag: "1688491878"
<<< Last-Modified: Mon, 22 Jul 2013 07:42:08 GMT
<<< Content-Length: 33179
last modified: [2013-07-22 07:42:08]
<<< Connection: close
content length: [33179]
<<< Date: Sat, 07 Sep 2013 09:19:47 GMT
<<< Server: lighttpd/1.4.32
<<<
offset 0, length -1, size -1, clength 33179
Fetching http://ftp.freebsd.org/pub/FreeBSD/port ... e3.tbz...x +CONTENTS
x +COMMENT
x +DESC
x +MTREE_DIRS
x lib/python2.7/lib-dynload/_sqlite3.so
tar command returns 0 status
Done.
pkg_add: package 'py27-sqlite3-2.7.5_3' or its older version already installed
pkg_add: 2 package addition(s) failed
So it's saying it's already installed.
I'm starting to think that starting over might be a good idea!

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

Have you installed other add-ons?
Maybe there is some collision between the installed packages on the system.
Also, sorry for the stupid question, but is your N4F embedded (i.e. booting and running from a USB drive)?
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

DrizzUK
NewUser
NewUser
Posts: 5
Joined: 05 Sep 2013 20:15
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by DrizzUK »

It's a new install and yes it was* embedded. However as it was a fresh install I decided to start over and do a full install to a HDD.

I'm now about to try with these instructions viewtopic.php?f=55&t=3929

fingers crossed.

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

With HDD installation it should be much simpler, because you don't need to mess with the UFS container stuff.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

Hi pixies,

My server crashed. I imported and synchonized my previous pool. I thought that reinstalling SABnzbd wouldn't be so difficult the second time, but boy am I wrong.

Here is where I think the problem is:

nas4free: ~ # /usr/local/share/SABnzbd-0.7.16/SABnzbd.py /mnt/opt/sabnzbd/sabnzbd.ini -s 192.168.1.250:8085
/usr/local/share/SABnzbd-0.7.16/SABnzbd.py: Permission denied.

For whatever reason, this PostInit command is not working. The only difference in this install and your instructions is that I fetched the latest version of SABnzbd and edited the corresponding SABnzbd.py file. I also did do the install with your instructions exactly and the result is the same. Any ideas?

pixies
Starter
Starter
Posts: 25
Joined: 27 Oct 2012 18:03
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by pixies »

I wonder why you get "Permission denied" error. Did you switch to super user (su) before trying to manually run the SABnzbd?
Also, it could be that somehow the newer version requires different installation proceudres.
Intel ATOM D525 CPU
Gigabyte GA-D525TUD MB w/4GB RAM
Chenbro ES34169 case
4x2TB Samsung EcoGreen F4 HD204UI
ZFS RAID-Z pool
2GB SanDisk Blade stick w/NAS4Free 9.1.0.1

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

I get the same error with the previous version. I only fetched to the newer version hoping that it would resolve the problem but it doesn't. I logged in as root.

jimcraig152
NewUser
NewUser
Posts: 8
Joined: 07 May 2013 14:57
Status: Offline

Re: [HowTo] Install SABnzbd on N4F Embedded with ZFS

Post by jimcraig152 »

Hi pixies,

I used the instructions that DrizzUK posted here: viewtopic.php?f=55&t=3929 and magically, they worked. (Although I was not able to add this 'pkg_add -rvf pkgconf' but it doesn't seem like my system requires it for SABnzbd to run).

Pouring over the differences between your guide and that guide, the only major difference seems to be that the first two PostInit scripts aren't included in the other guide. Seems to make sense since no matter how many times I go over your steps, the /mnt/opt directory doesn't show up after the final reboot. I have to manually copy them once the system comes back online after the last reboot. Strange. Anyhow, I'm happy to have SABnzbd back online.

Thanks!

Post Reply

Return to “Packages”