FreeNAS - THE MOST COOLEST *UNIX THING EVER

Soldato
Joined
2 May 2004
Posts
19,946
Just tested and my file doesn't work :rolleyes:

I'll work on it and see if I can get anywhere :)

[Edit]
When I tried I replaced the original "sabnzbdplus-0.4.3.tbz" with my version and did a fresh SABnzbd install from that, however it didn't work :(
 
Soldato
Joined
2 May 2004
Posts
19,946
Wheyy, upgrade successful!

1. Get the Linux release of SABnzbd+ from their website
2. Replace /usr/local/bin/SABnzbd.py with the one from SABnzbd-0.4.8-src.tar.gz
3. Replace /usr/local/lib/python2.5/site-packages/sabnzbd/* with the files from the "SABnzbd-0.4.8-src.tar.gz\sabnzbd" making sure you delete the existing files first
4. Replace /usr/local/share/sabnzbdplus/interfaces/* with the files from "SABnzbd-0.4.8-src.tar.gz\interfaces" making sure you delete the existing files first

Done.
 
Soldato
Joined
2 May 2004
Posts
19,946
Might make it my little project during Easter to swap my download server over to FreeNAS from Windows. SABnzbd+, FTP and HTTP are so much faster under a Linux based OS.

SABnzbd+ all working perfectly on 0.4.8 with correct directories (/mnt/disk1/usenet/complete, /mnt/disk1/usenet/incomplete etc.).

Is there any way to make it so Transmission downloads files into a temporary folder and then moves them to a 'complete' folder when done?

Also, I'm currently setting all this up under VMWare to make sure it's suitable for my needs before I actually deploy. If I then install FreeNAS on my server will I simply be able to restore the configuration file from my VMWare machine to the main machine?

[Edit]
Having some troubles with Transmission - just doing a small test torrent in it and it keeps crashing after the torrent gets started for some reason. All settings are default apart from the download location which is /mnt/disk1/torrents/complete

Code:
kernel: pid 3015 (transmission-daemon), uid 999: exited on signal 6 (core dumped)
 
Last edited:
Soldato
OP
Joined
7 Jan 2007
Posts
10,608
Location
Sussex, UK
im abit drunky wunky now lol. will process your posts tommorrow when i return from london. ty so much for sharing with me!!!


FReeNAS is awesome!!

EDIT: for trasmission make sure your download directory as the right permsissions. Maybe the error is something to do with you launching it in root???? who is the owner of transmission????? it loooks like root if its 999.
 
Last edited:
Soldato
Joined
2 May 2004
Posts
19,946
im abit drunky wunky now lol. will process your posts tommorrow when i return from london. ty so much for sharing with me!!!


FReeNAS is awesome!!

EDIT: for trasmission make sure your download directory as the right permsissions. Maybe the error is something to do with you launching it in root???? who is the owner of transmission????? it loooks like root if its 999.

Your spelling really is crap when you're drunk :p :D

I will see if some permission changes fix Transmission :)

Let me know how you get on with SABnzbd 0.4.8 :)
 
Soldato
Joined
2 May 2004
Posts
19,946
Yep, bash script is working perfectly. I literally just stuck it in /bin/ and ran it with "/bin/sab.sh start" - going to figure out how to auto start it later :)

Also, Transmission is working perfectly after changing the permissions on the download folder, thanks very much :)

[Edit]
Autostart working.
System > Advanced > Command Scripts > + > Command: /bin/sab.sh start - Type: PostInit

It's a shame the web interface doesn't allow you to assign folders to URLs on the Web Server section (virtual directories).

Craig.
 
Last edited:
Soldato
OP
Joined
7 Jan 2007
Posts
10,608
Location
Sussex, UK
Code:
freenas:~# python /usr/local/bin/SABnzbd.py
2009-04-05 15:16:27,472::INFO::--------------------------------
2009-04-05 15:16:27,472::INFO::SABnzbd.py-0.4.8 (rev=2378)
2009-04-05 15:16:27,472::INFO::Platform = posix
2009-04-05 15:16:27,473::INFO::Python-version = 2.5.2 (r252:60911, Sep  6 2008, 19:33:22) 
[GCC 3.4.6 [FreeBSD] 20060305]
2009-04-05 15:16:27,474::INFO::[sabnzbd] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
2009-04-05 15:16:27,476::INFO::[sabnzbd] Loading data for bytes7.sab from /root/.sabnzbd/cache/bytes7.sab
2009-04-05 15:16:27,476::INFO::[sabnzbd] Loading data for queue7.sab from /root/.sabnzbd/cache/queue7.sab
2009-04-05 15:16:27,477::WARNING::[downloader] No active primary servers defined, will not download!
2009-04-05 15:16:27,477::INFO::All processes started
2009-04-05 15:16:27,479::INFO::_yenc module... NOT found!
2009-04-05 15:16:27,479::INFO::celementtree module... found!
2009-04-05 15:16:27,479::INFO::par2 binary... found (/usr/local/bin/par2)
2009-04-05 15:16:27,479::INFO::unrar binary... found (/usr/local/bin/unrar)
2009-04-05 15:16:27,480::INFO::unzip binary... found (/usr/local/bin/unzip)
2009-04-05 15:16:27,480::INFO::nice binary... found (/usr/bin/nice)
2009-04-05 15:16:27,480::INFO::ionice binary... NOT found!
2009-04-05 15:16:27,480::INFO::pyOpenSSL... found (True)
2009-04-05 15:16:27,567::INFO::Web dir is /usr/local/bin/interfaces/Default
2009-04-05 15:16:27,568::WARNING::Cannot find web template: /usr/local/bin/interfaces/Default/templates/main.tmpl, trying standard template
2009-04-05 15:16:27,568::ERROR::Cannot find standard template: /usr/local/bin/interfaces/Default
Traceback (most recent call last):
  File "/usr/local/bin/SABnzbd.py", line 647, in main
    info = socket.getaddrinfo(socket.gethostname(), None)
gaierror: (8, 'hostname nor servname provided, or not known')
2009-04-05 15:16:27,569::INFO::Lauching browser with /tmp/tmpMYHkRm.html
freenas:~#

Whats wrong? /usr/local/bin/interfaces/Default/templates/main.tmpl is there though! I can see it in ftp...
 
Last edited:
Soldato
OP
Joined
7 Jan 2007
Posts
10,608
Location
Sussex, UK
yay fixed it, just moved the interfaces folder to where it was complaining about, now it launches in 0.4.8.

:)

Now to work out how to get the autostart script to work.

EDIT: Now getting this -

Code:
freenas:/bin# /root/sab.sh start
Starting SABnzbd.
/root/sab.sh: /usr/bin/sudo: not found

This obviously is because sudo isn't installed, what does your start upscript contain craig?

are you running sabnzbd under root? or did you create a user specifically for sabnzbd, if you did what permission did you give it?

im so close :S
 
Last edited:
Soldato
Joined
2 May 2004
Posts
19,946
Sorry about not being around today.

I just installed SABnzbd+ under the root account, I didn't change permissions or change any user accounts when installing. Didn't do anything special with the script either, it just worked straight off.
 
Associate
Joined
28 Apr 2009
Posts
4
Hi Guys,

I am having major league headaches getting SABnzbd to run on my FreeNAS box. Is there any chance you could help me through it please?

the latest problem I am having is running this line
3) first ran it from command line ... /usr/local/bin/SABnzbd.py

I am getting Command not found, even though SABnzbd.py can be seen using ls -l

I think I have installed the package ok, although i did have to copy SABnzbd.py over to the usr/local/bin directory as it didn't seem to copy this bit across

I could just be tring to run it wrong, i have zero experience of all this Python FreeBSD malarky

any help would be a life saver

regards
Murt
 
Associate
Joined
28 Apr 2009
Posts
4
Awesome,

I have now got it up and running. A couple of things to note. I had to SSH in using putty to untar.

then make sure to reboot the server.

I then had to start the SABnzbd.py script from the server itself, not using the SSH from another PC.

I have no idea why this was

trial and error on a massive scale.

My NEW QUESTION

how do I 'reference' the download directory. Currently it is saving articles in root???
 
Soldato
OP
Joined
7 Jan 2007
Posts
10,608
Location
Sussex, UK
Awesome,

I have now got it up and running. A couple of things to note. I had to SSH in using putty to untar.

then make sure to reboot the server.

I then had to start the SABnzbd.py script from the server itself, not using the SSH from another PC.

I have no idea why this was

trial and error on a massive scale.

My NEW QUESTION

how do I 'reference' the download directory. Currently it is saving articles in root???

I assume by reference u mean change?

is all on the web interface.

http://192.168.0.7:8080/sabnzbd

then its something liek >config > something or other.

I'll check my server tommorrow, proper tired now :)
 
Associate
Joined
28 Apr 2009
Posts
4
It should now look something like this. Put my comments in RED

Overbyrn's instructions:-
0) Putty into server as root, make sure you set this in FreeNAS under services, SSH. tick enable, tick permit root login
1) Untar file to a temp folder on freenas. eg. tar zxvf sabnzb0.4.3.tar (Do this from Putty) yuo need to put these files somewhere with plenty of space for unzipping, I created a directory within my main CIFS/SMB share. File manager in Freenas is your friend here. double click the permissions and set them all to ticks, permission for everyone basically.
2) pkg_add -v sabnzbdplus-0.4.3.tbz (Do this from Putty)
2.5) Reboot Server
3) first ran it from command line ... /usr/local/bin/SABnzbd.py (Do this from your server box, I couldn't run it through Putty)
4) cntrl-c to exit.
5) it created a /root/.sabnzbd dir
6) edited /root/.sabnzbd/sabnzbd.ini (I did this by moving the file, to my CIFS share, editing in windows and using FREEnas file manger to put the completed file back in the /root/.sabnzbd dir
7) changed from localhost to 192.168.0.22 (I set this to my Freenas server IP, 192.168.1.40. I had set this to static to stop it moving around after a boot)
8) re-ran as in step 3)
9) went to http://192.168.0.22:8080/sabnzbd/ You may have to set the port to something else, I used 8082
10) configured to my liking
I need to do this bit next
11) created script as below to stop / start as a daemon process...

#! /bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u sabuser -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /root/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/fetch "http://192.168.0.22:8080/sabnzbd/api?mode=shutdown" > /dev/null
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0

12) noticed in console logging external binary unzip missing...

2008-09-23 20:14:32,166::ERROR::unzip binary... NOT found!

13) did pkg_add -rv unzip. this installed unzip into /usr/local/bin
14) restarted sabnzbd using script... /root/sab.sh start
15) checked "connections" tab - no sign of missing unzip.

Used this sabnzbd wiki link for reference ... http://sabnzbd.wikidot.com/start

made and uploaded a newer version of the zip containing v0.4.3 build of sabnzbplus.

Thanks go to Overbyrn & Auskento for their work
 
Soldato
Joined
10 Apr 2006
Posts
7,849
Location
North West
Just trying FreeNAS out for my first NAS and dive into Linux and struggling a bit!

It's installed all fine, full install so I can install packages. Got drives mounted and shared but installing packages just isn't happening!

I'm after sabnzbd and ps3mediaserver but at the moment neither of them work. I'm running FreeNAS 7.2 if it helps. Where's best to get the SAB and PSM files from as the instructions above for SAB give me an error on the SABnzbd.py command

I'm tempted to delete all packages and start again but ideally need a run through of working SAB and PSM on FreeNAS 7.2 if anyone can help!
 
Back
Top Bottom