sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
Wolfeman0101 did you add sabnzbd_enable="YES" in your /etc/rc.conf?
I did and it still doesn't start.

Code:
Attica# cat /etc/rc.conf
sendmail_enable="NONE"
syslogd_flags="-ss"
pbid_enable="YES"
sabnzbd_enable="YES"
sickbeard_enable="YES"
couchpotato_enable="YES"
Attica#
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Josh,
It seems there is a problem with creation of the pid file at sickbeard start :
Code:
ZeJail# service sickbeard onestart
Starting sickbeard.
ZeJail# 
ZeJail# service sickbeard status
sickbeard is not running
ZeJail# 
ZeJail# ll /usr/pbi/sickbeard-amd64/data/
total 183
drwxr-xr-x  2 sickbeard  sickbeard      3 Aug  1 23:58 Logs
drwxr-xr-x  2 sickbeard  sickbeard      2 Aug  1 23:58 cache
-rw-r--r--  1 sickbeard  sickbeard  89088 Aug  2 00:19 cache.db
-rw-r--r--  1 sickbeard  sickbeard   3855 Aug  2 00:30 config.ini
-rw-------  1 sickbeard  sickbeard    631 Aug  2 00:31 server.crt
-rw-------  1 sickbeard  sickbeard    887 Aug  2 00:31 server.key
-rw-r--r--  1 sickbeard  sickbeard  10240 Aug  2 00:31 sickbeard.db
-rw-r--r--  1 sickbeard  sickbeard   9216 Aug  1 23:58 sickbeard.db.v0


Wolfeman0101 i have no clue then
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
A couple of tips.
You should look at using "pgrep" instead of ps aux / grep.
You should do the pidfile checking/creation etc. from the rc script.

I haven't looked to see how you do it, so maybe that's how you already do it, it just sounded like possibly not.

I just announced the Serviio Plugin.

Hmm, k I thought I'd let each of the programs handle the pidfile creating because they each have an option to create one. Is there a reason not to go this route?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
djoole

1) I barely use windows and not sure how to ^M's got there but yeah I noticed them too before. I'll see if I can figure out how they got there.
2) Yeah I listed the sickbeard pidfile problem under 'KNOWN BUGS', I'll try to figure out why

Might work on this stuff this weekend, might not. Busy moving out to Sacramento sometime soon to start my job, but one of these weekends I'll definitly fix what I can. BTW I got an updated init for maraschino that implements their shutdown api.
 

TazgodX

Dabbler
Joined
Aug 1, 2012
Messages
21
Just started getting my Freenas Updated to 8, and having tons of trouble getting it to where it was, but i had a quick question.
Is it possible to set up a post processing script to move downloaded content off of the jail?
-Thanks
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Sure. You can mount a Freenas directory inside the jail. Any file moved to the mount point will be moved outside the jail.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Just started getting my Freenas Updated to 8, and having tons of trouble getting it to where it was, but i had a quick question.
Is it possible to set up a post processing script to move downloaded content off of the jail?
-Thanks

Yeah, like djoole said. It'd be a shame to delete your jail then loose you data (if you had no snapshots!). Also I recommend your downloads folder for sab, and where your media finally lives be in the same dataset. This avoids a read, write, delete cycle and instead just makes it a move within the same partition.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I just read over the last 2 pages and it looks like this needs some more work before it will be fully functional. My question is where will we be keeping these PBIs after they are made? Do we intend to create a server to host PBIs or will we be supporting some of them along with FreeNAS similarly to how Transmission and miniDLNA is?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
It's already functionnal (for sab, SB, CP and HP), you just can't start/stop services form the plugins GUI, but, who wants to stop them once they are started ;)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
It's already functionnal (for sab, SB, CP and HP), you just can't start/stop services form the plugins GUI, but, who wants to stop them once they are started ;)

Where are we keeping them? I know they aren't in the plugins directory where Transmission is kept...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Sorry for the off-topic post, but as i am in the process of reinstalling san, sick, and co (thanks Josh for making it so easy), i was going to reinstall periscope (auto subtitles downloader).
Does any of you could recommend something better than periscope?
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Sorry, this is going to seem to be a silly question but here goes:

I'm running my FreeNAS server headless - is there a way to configure this so I can access it via another machine on the network? Currently I have sab, sb and cp running on my mac (accessible by typing localhost:8081, 8082 etc on the mac) and with the ability to access sab remotely via the api. Will there be a way to access these programs on Freenas across the LAN or would I have to open ports and access it that way? Sorry, I hope that makes sense...

Thanks
Chris
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the only way to access sab, sb and cp on freenas is on another machine. FreeNAS doesn't have any interface on it directly and pretty much everything except for shell access needs to be done from another computer (like your mac). On the same lan without any firewalls you can access the programs directly at 'jailip: port'. If you want to access the programs not from your lan, (like from a 3g connection or from your work) you need to setup a port forward.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I use dyndns to set my IP to a host. I forward the ports but I use different ports than the defaults.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey djoole,

The '^M' are are in the original source. It doesn't show up on a dos based system but does on a unix based system. So it is not my doing and is part of the program. It's caused by encoding, that's how dos knows to start a new line. You can see the opposite problem by trying to open a script created on a unix system in Window's Notepad (no new lines)

I recommend you delete the '^M' when you create you autoProcessTV/autoProcessTV.cfg from the given autoProcessTV/autoProcessTV.cgf.sample

I tested this by running
Code:
fetch https://github.com/midgetspy/Sick-Beard/tarball/master
tar -xzf master
cat midgetspy-Sick-Beard-b7cf06e/autoProcessTV/autoProcessTV.cfg.sample
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Also, I have nginx proxying sabnzbd, sickbeard, couchpotato, and maraschino. If anyone wants to do something similar this post may be helpful.

In jail
Code:
pkg_add -r nginx
echo 'nginx_enable=YES' >> /etc/rc.conf


my /usr/local/etc/nginx/nginx.conf
Code:

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

        include usenet.conf;
}


my /usr/local/etc/nginx/usenet.conf
Code:

    server {
        listen       80;

        #I needed this for my varnish web loadbalancer to have a test url, this isn't normally needed
        location /index.html {
            root   /usr/local/www/nginx;
        }
        #I redirect my main domain to maraschino
        location / {
                rewrite ^ /maraschino permanent;
        }

        location /maraschino {
                proxy_pass http://127.0.0.1:7000;
                include proxy.conf;
        }
        location /sabnzbd {
                proxy_pass http://127.0.0.1:8080;
                include proxy.conf;
        }
        location /sickbeard {
                proxy_pass http://127.0.0.1:8081;
                include proxy.conf;
        }
        location /couchpotato {
                proxy_pass http://127.0.0.1:5050;
                include proxy.conf;
        }
}


my /usr/local/etc/nginx/proxy.conf
Code:
    proxy_redirect    off;
    proxy_set_header  Host             $http_host;
    proxy_set_header  X-Real-IP        $remote_addr;
    proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;


Sabnzbd already has both '/' and '/sabnzbd' as it's webroot. For Sickbeard I added '/sickbeard' as the webroot in the config.ini. In Couchpotato v2 I added 'couchpotato' as the webroot under General > Advanced (with 'Show advanced settings' checked). In maraschino I added 'maraschino' as the webroot (I needed this because the sickbeard module for maraschino uses the webdirectory sickbeard and was casuing errors. I don't currently have headphones setup on my production system.

To start nginx
Code:
service nginx start


I can see everything locally from jailip/program_name
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
Another great post, Josh. That is exactly what i was missing, as i didn't like the fact that some of these programs don't support SSL. Will be trying this later.

Since my question got buried by other topics: would it be difficult for you to repackage the sickbeard plugin as the myanime branch? More on this here: http://sickbeard.com/forums/viewtopic.php?f=4&t=1452

i've been working with sabnzbd's RSS feeds so far, which is also nice in terms of automation.


P.S.: totally off topic, but i'm so excited: my FreeNAS host system finally arrived :D Too bad i ordered the wrong RAM. Now i have to wait a few more days. Then again, hard disks are too expensive, so i can't use it for real anyway hehe
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
It might just be easier for you to replace your current SickBeard folder with the anime branch source.

Code:
service sickbeard stop
cd /usr/pbi/sickbeard-`uname -m`
rm -r Sickbeard
fetch https://github.com/lad1337/Sick-Beard/tarball/anime
tar xvfz anime
mv lad1337-Sick-Beard-* SickBeard
chown -R sickbeard:sickbeard SickBeard
service sickbeard start


This will blow away your autoProcessTV/autoProcessTV.cfg and may need to be run everytime you update the plugin (not the program though)
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
Thanks a lot. Will try that later, too. Thanks to snapshots i can try out whatever i want :)
 
Status
Not open for further replies.
Top