sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Is the Couch Potato pbi built on v1 or v2?

Right now neither work lol. The guy changed the link and has 2 branches now I believe, I'm actually working on stuff tonight and should have a v0.7 out by tomorrow morning with all of the current bugs fixed, v2 integrated, and with maraschino in there.
 

thunder

Cadet
Joined
Jun 28, 2012
Messages
4
Hi Joshua,

Have you thought of putting up your sources on github? That way we could collaborate and avoid duplicating work. You'd have to split up your scripts from the binaries, though, so that might be a pain. But worth it imo :)

Anyway, I'm building PBIs now based on your 0.6 source tarball. I was really surprised that getting the actual software (sabnzbd, etc) was done in the postinstall scripts. Is that common practice?

I look forward to your 0.7 update!
 

thunder

Cadet
Joined
Jun 28, 2012
Messages
4
Also, is there a quick way to install the built pbis from the commandline inside the jail? I don't want the build-test loop to include manually copying files and using the webui to install the plugin...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Also, is there a quick way to install the built pbis from the commandline inside the jail? I don't want the build-test loop to include manually copying files and using the webui to install the plugin...

Lol, it's not common practice. And I think we should actually fix that, lol.
All the programs (except sabnzbd) can autoupdate so it won't matter if we put in an old build.

If I have a chance I'll throw it up on github (or if you want to feel free to), we just gotta figure out a way to get the binaries in there, so maybe ill add a script in there that fetches the needed dependencies, and copies them on a per program basis? Lol, it will get fairly complicated.

Or we could also just go the pbi_portmake route and actually build the dependencies, I just gotta figure out how that works. I think it may not need to build the dependencies each time, hopefully.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Also, is there a quick way to install the built pbis from the commandline inside the jail? I don't want the build-test loop to include manually copying files and using the webui to install the plugin...

yeah, I think pbi_install / pbi_remove, maybe just type pbi and then press tab and you'll see your options. Also look at the pbi docs. Only thing is the gui wont know about these pbi's and thing can be undeletable from the gui if you add them in the gui, then delete from the commandline.

I actaully scripted the whole pbi delete, create, install process into a single script earlier, lol. but felt the plugins were close enough to production for have to do hardcore testing.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
So I'm going to most likely recreate my zpool as RAIDZ2 and was wondering how I can backup my plugins so I don't lose all the settings and configs.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
There's no official way that I know of. What I recommend is shutdown your plugins. Then save all of their /data folders. I believe I have it setup so all the database / configs are in there. I can't guarantee it till I reexamine everything, if you want to be totally safe just backup everything in /usr/pbi of your jail. After your new raid+jail is setup reinstall the plugins, move the contents of /data in, then start the plugins, everything should be like it was before.

Gotta love RAIDZ2, I just set mine up and am loving it, I love that scrubs basically always come up successful because you essentially have 3 ways to recreate the files.
Sorry, I got busy helping my girlfirend with some stuff (setup a proxy so she can use free google voice while she's in japan) and couldn't finish up 0.7, should be done tonight / tomorrow. I'll make sure all configs/logs/databases are in the /data folder.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry, things might be pushed back a few days... I 'soft bricked' my mom's phone while installing a ROM on it. hopefully I can get it working again for her today, get some sleep, and get on this tonight.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I keep getting errors in SABnzbd
Code:
Cannot change permissions of /usr/pbi/sabnzbd-amd64/data/Downloads/Folders

I have a mount created
source: /mnt/Vol1/Downloads
destination: /usr/pbi/sabnzbd-amd64/data/Downloads
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
I keep getting errors in SABnzbd
Code:
Cannot change permissions of /usr/pbi/sabnzbd-amd64/data/Downloads/Folders
How about showing what the permissions are on that directory. Particularly what the permissions look like from inside the jail and what SABnzbd user's UID/GID is.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
How about showing what the permissions are on that directory. Particularly what the permissions look like from inside the jail and what SABnzbd user's UID/GID is.

sabnzbd:*:1003:1003::0:0:User &:/home/sabnzbd:/bin/sh

Code:
Jail# ls -lh
total 79
drwxrwxrwx    4 1001     1001        4B Jul 10 13:10 BT
drwxrwxrwx   66 1001     1001       69B Jul 10 09:51 Downloads
drwx------    2 sabnzbd  sabnzbd     2B Jul  1 23:31 Incomplete
drwxrwxrwx  134 1001     1001      146B Jul  9 21:39 Movies
drwxrwxrwx   52 1001     1001       52B Jul  2 00:25 Music
drwx------    2 sabnzbd  sabnzbd     2B Jul  2 02:09 Scripts
drwxrwxrwx    3 root     wheel      13B Jul 10 13:07 admin
-rw-------    1 sabnzbd  sabnzbd   3.3K Jul 10 13:07 config.ini
drwxr-xr-x    2 sabnzbd  sabnzbd     9B Jul 10 00:04 logs


Code:
[Bryan@freenas] /mnt/Vol1# ls -lh
total 107
drwxr-xr-x   12 Bryan  Users    22B Jul  8 17:22 ./
drwxr-xr-x    4 root   1003    512B Jul 10 12:51 ../
-rw-r--r--    1 Bryan  Users   755B Jun 26 00:01 .cshrc
drwxr-xr-x    2 www    www       2B Jun 28 18:10 .freenas/
-rw-------    1 Bryan  Users   1.2K Jul 10 13:08 .history
-rw-r--r--    1 Bryan  Users   251B Jun 26 00:01 .login
-rw-r--r--    1 Bryan  Users   162B Jun 26 00:01 .login_conf
-rw-------    1 Bryan  Users   378B Jun 26 00:01 .mail_aliases
-rw-r--r--    1 Bryan  Users   335B Jun 26 00:01 .mailrc
-rw-r--r--    1 Bryan  Users   779B Jun 26 00:01 .profile
drwxrwxrwx    3 Bryan  Users     3B Jun 28 17:20 .recycle/
-rw-------    1 Bryan  Users   280B Jun 26 00:01 .rhosts
-rw-r--r--    1 Bryan  Users   980B Jun 26 00:01 .shrc
drwx------    2 Bryan  Users     4B Jul  2 06:46 .ssh/
drwxrwxrwx    4 Bryan  Users     4B Jul 10 13:10 BT/
drwxrwxrwx   66 Bryan  Users    70B Jul 10 14:20 Downloads/
drwxr-xr-x    3 root   wheel     3B Jun 28 08:00 Jail/
drwxrwxrwx  134 Bryan  Users   146B Jul  9 21:39 Movies/
drwxrwxrwx   52 Bryan  Users    52B Jul  2 00:25 Music/
drwxr-xr-x    4 root   wheel     9B Jul  3 21:25 Plugins/
-rw-rw-rw-+   1 Bryan  Users   1.6K Jul  3 16:30 Recycling Bin.lnk
drwxrwxrwx   10 Bryan  Users    18B Jul  8 17:22 Temp/
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
And the permissions of /usr/pbi/sabnzbd-amd64/data/Downloads/Folders in particular? Also double check that is the correct path from inside the jail.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Can someone update me on the status of these PBI plug-ins on FreeNAS 8.x??

I am currently looking into upgrading my FreeNAS from FN7 (legacy, no longer supported) to FN 8. One of my biggest concerns is losing the functionality that I have working so well on my FN7 box (SABnzbd+, SickBeard, and Couch Potato).
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
0.6 works after some tweaking. i'd recommend to read the entire thread. Couchpotato isn't working currently, but Josh is working on it (when he finds the time of course). i can't say how reliable the plugins work since i'm still waiting for Couchpotato (with 0.7), but from my experience with FreeNAS and these programs i'd say that once they are running they'll keep running.

You can of course also try installing without the plugins. This is how my current setup has been running for months. But i'd recommend to wait just a bit more until 0.7 is ready. Using the plugins really makes the installation easy. My current setup took me a few weeks - though i was new to FreeNAS altogether.
Anyway, if you decide to try it without the plugins, then these are probably the links you should check out:

http://www.joshuaruehlig.com/movie-tv-downloading (we should title Josh as Head of Downloadtools or something fancier :D)

http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=15&t=10608
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
I notice that RC1 is out as of Friday. Does this mess with the work you guys have been doing, or make your lives easier?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Hi!
I've just upgraded from 8.0.1-Release to 8.2.0-RC1 without a glitch :)
The jail is ready, and while i was looking for PBI's for Sab/Sick/Couch/HP i found this great topic.
Great that Josh is on it.
As i'll be away for the next 2 weeks I figure i'll wait for the 0.7 then I'll be happy to make intensive tests on your plugins!

In the meantime i also have to find PBI's for fail2ban and squeezebox server... if any of you have leads on this..
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
k, a bit of progress on the pidfile situation

Looking at transmission..
It seems control.py checks the status from /var/run/transmission_fcgi_server.pid
Thing is, I don't get how this works, where transmission is on or off, tranmission_fcgi_server is on (I believe this is what controls transmission). So I don't get how freenas suddenly knows transmission itself is on or off. Transmission creates it's own seperate pidfile and process.

Where transmission is on or off, I always get a number (pid of transmission_fcgi_server) when I cat /var/run/transmission_fcgi_server.pid

Gotta read control.py a little more indepth, it's just perplexing to me
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
k, a bit of progress on the pidfile situation

Looking at transmission..
It seems control.py checks the status from /var/run/transmission_fcgi_server.pid
Thing is, I don't get how this works, where transmission is on or off, tranmission_fcgi_server is on (I believe this is what controls transmission). So I don't get how freenas suddenly knows transmission itself is on or off. Transmission creates it's own seperate pidfile and process.

Where transmission is on or off, I always get a number (pid of transmission_fcgi_server) when I cat /var/run/transmission_fcgi_server.pid

Gotta read control.py a little more indepth, it's just perplexing to me

The transmission freenas plugin starts a FastCGI server, which is a Python/Django webapp that implements an API.
This FastCGI server responds to a few url requests (the API), one of them is:
/plugins/transmission/_s/status

Which then returns a JSON with the status of the plugin (STOPPED, RUNNING, STARTING, etc)
 
Status
Not open for further replies.
Top