[FreeNAS 9 Plugins] - SAB / SB / CP / HP / Maraschino / HTPC / Mylar / LL / Gamez

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Well my jails are no more than 2 to 4gb a pop, there's only 5 of them (only about 5 plugins worth grabbing at this time IMO) so that's no more than 20gb or so to back it all up.
Unless you're saying, that in order to backup the jail, the backup process would end up trying to snatch the contents of the mountpoint?
So when the backup hits /mnt/ within the jail PBI thing, would also unfortunately grab /mnt/array/media/downloads/*.* ?
(If that's what you're implying, makes sense and could be awkward)

Thing is, all 5 of my jails are about 2 to 10 hours work to configure them right, one of them is full of pretty valuble data (couchpotato wanted list) I'd like a way to get all 5 jails and just ... back them up entirely. So if I built a brand new FreeNAS box on completely different hardware, I could just create 5 blank jails and import the 5 old ones which I've got backed up.
Is that possible?
rsyncing the jail would grab the mounted directories. using zfs snapshot + send would not.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
probably is possible to completely save the jails, but I'd personally just install 5 new jails to the same IPs, then restore the datadirectories for the applications.

you wouldn't be redundantly backing up jail OS files. also no reconfiguring of CP/SAB would be necessary. and you wouldnt need to figure out how FN adds jails to its database.

that's just how I would do it.

Agree, that's the theory - I can't expect it to be utterly dead simple, this isn't a synology unit.
That being said, I don't know the data directories and forgive me but I don't want to .... ?
Like, I'd rather a 'definitive backup for an entire jail' command to drop in the shell (or batch job, cron right?) than have to know
ok jail #1 copy /mnt/array/jail/jail#1/usr/pbi/jailname/etc/datafiles
but on jail #2 - different program
I'd need to copy /mnt/array/jail/jail#2/usr/pbi/jailname/*.*
etc?

Sorry, no offense but stuff that :) - definitive backup of the entire jail, with a single command, despite being a bit harsh on disk space would be ideal

rsyncing the jail would grab the mounted directories. using zfs snapshot + send would not.

ZFS snapshot not easily portable to a new system though is it ?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I see your point about knowing the specific directories for each program you run, from a users perspective this is a hassle and shouldn't be needed.

the snapshot would portable, though I don't know about the entire plugin/jail. I think idealy freenas should have a jail backup and restore method that backs up the jail and associated plugins. the backup should also ideally be automatable. this sounds like a great feature request!
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I see your point about knowing the specific directories for each program you run, from a users perspective this is a hassle and shouldn't be needed.

the snapshot would portable, though I don't know about the entire plugin/jail. I think idealy freenas should have a jail backup and restore method that backs up the jail and associated plugins. the backup should also ideally be automatable. this sounds like a great feature request!

I tried asking for that, a particular moderator here disagreed pretty vehemently with me about it - but he has a tendency of doing that for most requests.
I mean ultimately a simple script (for someone with half decent knowledge) could do it, right? Like the rsync you mention, without the mount point?
Hell, I don't care if my jail needs to come offline, dismount the mount points, run the rsync backup, compress the rsync into 7z or rar, then restore mountpoints and reboot the jail once a week :/

One thing - I don't know how to ask this because I'm a newb but a jail is based on the existing umm code in the OS right? they are like a protected partition or something? So the jail, which boots a new instance of FreeBSD is infact based off the core files in the OS but can't break them somehow?
Would this complicate the process in making a backup, especially if you say, backup a jail from FreeNAS 9.2 and import it into FreeNAS 10? - is this perhaps why they aren't interested in such a feature?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I tried asking for that, a particular moderator here disagreed pretty vehemently with me about it - but he has a tendency of doing that for most requests.
I mean ultimately a simple script (for someone with half decent knowledge) could do it, right? Like the rsync you mention, without the mount point?
Hell, I don't care if my jail needs to come offline, dismount the mount points, run the rsync backup, compress the rsync into 7z or rar, then restore mountpoints and reboot the jail once a week :/

One thing - I don't know how to ask this because I'm a newb but a jail is based on the existing umm code in the OS right? they are like a protected partition or something? So the jail, which boots a new instance of FreeBSD is infact based off the core files in the OS but can't break them somehow?
Would this complicate the process in making a backup, especially if you say, backup a jail from FreeNAS 9.2 and import it into FreeNAS 10? - is this perhaps why they aren't interested in such a feature?
jails are based of files in a template which are in a dataset and can be efficiently cloned. as far as i know, nothing in a jail could screw up the FN host OS files, which are even mounted read-only.

not sure why they would deny the request. sounds reasonable to me.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
jails are based of files in a template which are in a dataset and can be efficiently cloned. as far as i know, nothing in a jail could screw up the FN host OS files, which are even mounted read-only.

not sure why they would deny the request. sounds reasonable to me.

No I don't mean importing an old jail onto a new verssion of FN would break the host OS, I mean that importing an old jail into a new OS might not work - the jail may require host OS files located in a different root path perhaps or some such?? (You tell me)

Yes, I thought it was a good request, it was shot down, this guy shoots down everything :/
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
No I don't mean importing an old jail onto a new verssion of FN would break the host OS, I mean that importing an old jail into a new OS might not work - the jail may require host OS files located in a different root path perhaps or some such?? (You tell me)

Yes, I thought it was a good request, it was shot down, this guy shoots down everything :/
I believe and 9.X based jail would run on and 9.X host. the host and the jail only share the kernel.

That's one of the standout features of FreeBSD. binary compatibility between major versions of the OS files and kernel.
 

Joshua Parker Ruehlig

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

Could you run me through the steps for updating sickrage? Should I be doing this? How often?
did you install sickrage using the steps in the second post of this thread?
if so SR should be able to autoupgrade, and by default I believe it updates itself every 12or24 hours.

I never check myself, but my instance of sickrage keeps itself up to date.
 

David Prince

Dabbler
Joined
Oct 1, 2014
Messages
21
Thanks, yes I installed as per your instructions. I set sickrage not to automatically update in general settings after installing it. I was worried it might break something. I'll set it now to do it automatically.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Just trying the 7.19 to 7.20 update, I shut down sickbeard first, left the jail running - I think it's going to break, again :/
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Nope - took a while but she's worked, awesome, fingers crossed future updates work, thanks Josh.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nope - took a while but she's worked, awesome, fingers crossed future updates work, thanks Josh.
sweet, yeah they take longer then I like =[

and its sabnzbd not sickbeard, lol
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Goddamn I'm not good with these S words :(
 

DannagE

Cadet
Joined
Sep 19, 2012
Messages
4
Wondering if anyone can help me.

Using a fresh install of Freenas 9.2.1.9 and have setup my drives, cifs sharing and added user media and group media.
Installed sabnzbd and sickbeard from the addons tab built into freenas. And set them both up with my download settings etc.
Changed ownership of my downloading folders to media:media. Everything downloads fine without issues.
When sabToSickBeard.py is asked to run at the end of the download it says Exit(-1) Cannot run script /autoProcessTV/sabToSickBeard.py

I have tried changing the line at the top of sabToSickBeard.py to #!/usr/local/bin/python and I've tried #!/usr/local/bin/python2.7 and #!/usr/bin/env python and #!/usr/bin/env python2.7
I have tried "pkg install python"

When its #!/usr/bin/env python I get this error Exit(127) env: python : No such file or directory

Just cannot get it to work at all.
Any ideas with this new install? I had it working perfectly fine on version 8 before my drive died :/
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Wondering if anyone can help me.

Using a fresh install of Freenas 9.2.1.9 and have setup my drives, cifs sharing and added user media and group media.
Installed sabnzbd and sickbeard from the addons tab built into freenas. And set them both up with my download settings etc.
Changed ownership of my downloading folders to media:media. Everything downloads fine without issues.
When sabToSickBeard.py is asked to run at the end of the download it says Exit(-1) Cannot run script /autoProcessTV/sabToSickBeard.py

I have tried changing the line at the top of sabToSickBeard.py to #!/usr/local/bin/python and I've tried #!/usr/local/bin/python2.7 and #!/usr/bin/env python and #!/usr/bin/env python2.7
I have tried "pkg install python"

When its #!/usr/bin/env python I get this error Exit(127) env: python : No such file or directory

Just cannot get it to work at all.
Any ideas with this new install? I had it working perfectly fine on version 8 before my drive died :/
are the plugins running in the same jail? in version 9 they run in separate jails and don't have access to each others files.

you could run them in the same jail if you like by downloading, then uploading the PBI files to a plugin jail. that's the method I use in my blog (Google 'jruehlig freenas')
 

DannagE

Cadet
Joined
Sep 19, 2012
Messages
4
are the plugins running in the same jail? in version 9 they run in separate jails and don't have access to each others files.

you could run them in the same jail if you like by downloading, then uploading the PBI files to a plugin jail. that's the method I use in my blog (Google 'jruehlig freenas')

Separate jails with separate IP exactly how I had it setup before when I had it working on my last install. I didn't even have to change my bookmarks for the pages.

I've been trying to get onto your website for the past couple of days but I cannot access it. It just times out and says "This webpage is not available"

I've found a suitable solution for now which is just do. I've told sickbeard to monitor the completed downloads folder and then grab them from there. And it works fine.

Thanks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Separate jails with separate IP exactly how I had it setup before when I had it working on my last install. I didn't even have to change my bookmarks for the pages.

I've been trying to get onto your website for the past couple of days but I cannot access it. It just times out and says "This webpage is not available"

I've found a suitable solution for now which is just do. I've told sickbeard to monitor the completed downloads folder and then grab them from there. And it works fine.

Thanks
might be tricky having them access each others scripts from seperate jails but im sure it's possible. nzbToMedia is what I use.
glad you got it working at least.

might be cause my site (did) only accept a single SSL cipher suite. I'm still experimenting with this, and many browsers / applications can't connect, lol.
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
Hey,

I seem to be having an issue with SickBeard in the last couple of weeks.

SickBeard hasn't been snatching the latest episodes for numerous shows. When I click on the troublesome shows in SickBeard I notice that the thetvdb.com episodes have not been update to represent the latest episodes. I checked thetvdb.com to make sure that the latest episodes have been added which they have.

I tried updating SB within the GUI. I think it updated correctly. I'm not getting a message to update.

I am running SickBeard version:
alpha (master) -- source : 31ceaf1b5cab1884a280fe3f4609bdc3b1fb3121

Any help would be great.

Cheers
 

Joshua Parker Ruehlig

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

I seem to be having an issue with SickBeard in the last couple of weeks.

SickBeard hasn't been snatching the latest episodes for numerous shows. When I click on the troublesome shows in SickBeard I notice that the thetvdb.com episodes have not been update to represent the latest episodes. I checked thetvdb.com to make sure that the latest episodes have been added which they have.

I tried updating SB within the GUI. I think it updated correctly. I'm not getting a message to update.

I am running SickBeard version:
alpha (master) -- source : 31ceaf1b5cab1884a280fe3f4609bdc3b1fb3121

Any help would be great.

Cheers
I think I noticed the same thing with the Walking Dead (on SickRage). I clicked "Force Update" on the show and I think it got the latest thing. So... your issue might be reproducable, but I'm planning on recompiling/updating all of these plugins again for FN9.3 so you might want to check back in a week.
 
Status
Not open for further replies.
Top