[Release thread] Sickbeard plugin

Status
Not open for further replies.

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
The PBI is still available at:


EDIT: Since there are some users having troubles downloading the pbi here should be a working tutorial on how to download it:
2) click the "download zip" link in the lower right under "clone to desktop"​
There is a small issue with this pbi. When turning the pbi on it takes its time in the gui loading. After loading finishes it tells you that it's still "off", but it's running, just refresh the gui an it should show that the pbi is running fine.

As soon as the PBI are tested ok, they will be added to the FreeNAS Gui by the FreeNAS-team.
thx

Cheers
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
This one (contrary to my sabnzbd, which installs, but where I can't get into the webgui) DOES work - gui and all! Just a question though: is it possible to transfer all the configuration stuff from a Windows version of sickbeard to this one? Even the 'on' icons work - including after a reboot. Fantastic job!
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
Sorry mate, I've never used sickbeard before, but since sickbeard uses ini files there shouldn't be a problem using as "windows config"
for you sab issues, let's try to figure out what's wrong in my sab thread. ;)
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
[BTW - I'm still working on this one, but just didn't want to lose it]

I getting closer to where I want to be, but am not fully there yet. Here's my setup so far:
  • create mount points:
    • since all plugins are in 'jails', you want to create links between folders within those jails, and folders outside of your jail.
      • So you have to create those first. Enter your jail and make the folders
        • go into your shell through the FreeNAS gui (it's towards the bottom in the left pane)
        • 'jls' - that will show you all of your jails - look at the # of the jail for sickbeard (same applies for cp etc of course)
        • 'jexec [#] csh' - that gets you into a separate shell for your jail
        • 'cd /mnt'
        • 'mkdir {Movies,Series}' - make the folders within your jail that will be linked to the destination folders directly on your NAS
        • chmod 777 * -
      • make the links
        • go into the gui under jails and then under storage. Make sure you get the right jail - you can see it by checking under plugins (use the top one, not the one in the left pane)
5b7osn.png

    • link the folders you just made inside the jail to folders outside of the jail
      • click on jails in the left pane
      • 'open' the one you need (in my case customplugin_3
      • click on storage, add storage and enter the info as indicated here
16272fc.png

      • this is what it should look like (although you can use your own names of course)
2rx6sew.png

  • the next step is to set up your sickbeard properly - see below for how I did mine
ztugdv.png

  • and then you also set up your sabnzbdproperly. Here again is how I did mine
    • first I tell it to download files within the jail
2dgs412.png

    • then I use categories - and so for tvshows, I select the category 'tv' and have sab put those folders into the folder I created within the jail for Series, that is connected to the /mnt/TVShows folder outside of the jail
24wubo0.jpg

So that's where I stand. It seems to work fine, but with two snags:
  • sickbeard doesn't delete the 'original' folders and I end up with doubles: one folder in the /mnt/Series folder AND one file (nicely renamed by sickbeard) in the appropriate subfolder. I thought that would be guided by the 'Keep original files after they've been processed?' option in sickbeard. But as you can tell, I unchecked that one. But still it seems NOT to delete the original.
  • whenever there is a new show, sickbeard makes the main folder nicely, but it only gives itself reading and writing rights. So it does everything 'right' (with the one exception I noted in my previous bullet), but Plex can then not 'see' them.
Any ideas on those? Thanks! [and if somebody figures it out, I will make the necessary amendments in this message]
 

sessus

Dabbler
Joined
Jul 2, 2013
Messages
17
So that's where I stand. It seems to work fine, but with two snags:
  • sickbeard doesn't delete the 'original' folders and I end up with doubles: one folder in the /mnt/Series folder AND one file (nicely renamed by sickbeard) in the appropriate subfolder. I thought that would be guided by the 'Keep original files after they've been processed?' option in sickbeard. But as you can tell, I unchecked that one. But still it seems NOT to delete the original.
  • whenever there is a new show, sickbeard makes the main folder nicely, but it only gives itself reading and writing rights. So it does everything 'right' (with the one exception I noted in my previous bullet), but Plex can then not 'see' them.
Any ideas on those? Thanks! [and if somebody figures it out, I will make the necessary amendments in this message]

I'm not sure why you're using sickbeard for post-processing; if there a reason for this? SAB has relatively good permissions management which could solve both of your problems. You have to use sickbeard's scripts for this, though. Have a look at this guide here.
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Thanks sessus! Very useful - I wish I had had that link when I was struggling to get this right. And I'll look into using the sickbeard scripts from within SAB Just a question though - how about all of the renaming stuff that we CAN do in sickbeard? Because I don't see anything in those py files that suggests it does that.
 

tanik1

Contributor
Joined
Mar 31, 2013
Messages
163
hello Master Gollom, I was wondering what version of freenas you installed this on? it looks like 9 but when I tried to install the sickbeard i cannot turn it on it says some error occurred. im using freenas 9.1 release.
Just curious on how you installed it. Thank you.
 

Junaid Ahmed

Cadet
Joined
Jul 27, 2013
Messages
2
Thanks for an excellent PBI! I was able to follow the instructions here and setup SB on my FreeNAS 9.1

I do see a message above SickBeard where it cannot figure out which version it is, and when I click on update it gives a server error:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/usr/pbi/sickbeard-amd64/SickBeard/cherrypy/_cprequest.py", line 660, in respond
response.body = self.handler()
File "/usr/pbi/sickbeard-amd64/SickBeard/cherrypy/lib/encoding.py", line 193, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/pbi/sickbeard-amd64/SickBeard/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/pbi/sickbeard-amd64/SickBeard/sickbeard/webserve.py", line 2128, in update
updated = sickbeard.versionCheckScheduler.action.update() #@UndefinedVariable
File "/usr/pbi/sickbeard-amd64/SickBeard/sickbeard/versionChecker.py", line 101, in update
return self.updater.update()
File "/usr/pbi/sickbeard-amd64/SickBeard/sickbeard/versionChecker.py", line 467, in update
f = open(tar_download_path, 'wb')
IOError: [Errno 13] Permission denied: '/usr/pbi/sickbeard-amd64/SickBeard/master'



Not sure what to do?
Thanks again Master Gollom
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
Hi tanik1,
Since there is no FreeNAS9, these plugins are for FreeNAS9.1. Does the sickbeard icon appear on the left side under Plugins? If it does, click on it and close this window again by clicking ok/save. Then try again to start the plugin.

Hi Junaid,
I've experienced the same problem. What you could try to do is sftp to the box, replace the SickBeardfolder in /usr/pbi/sickbeard-amd64/ by a new one (download sickbeard sources). This appears more to be a sickbeard related problem than a pbi related one. But I already used actual sources so as for now there shouldn't be any need for an update.

cheers
 

tanik1

Contributor
Joined
Mar 31, 2013
Messages
163
Hi Master Gollom, I meant 9.1. but no it doesnt appear on the left hand side. I followed your steps but for some reason it doesn't seem like its working.
 

sessus

Dabbler
Joined
Jul 2, 2013
Messages
17
Thanks sessus! Very useful - I wish I had had that link when I was struggling to get this right. And I'll look into using the sickbeard scripts from within SAB Just a question though - how about all of the renaming stuff that we CAN do in sickbeard? Because I don't see anything in those py files that suggests it does that.

When using SAB for post-processing, SAB does all the downloading and copies things into the right place. The py files allow sickbeard to do its own stuff. So when you set the renaming parameters in sickbeard, it will rename all you episodes correctly once they are downloaded. That way you have a single place, i.e. SAB, where you define where things go and renaming is done by SB or CP if you enable it within those programs.
 

tanik1

Contributor
Joined
Mar 31, 2013
Messages
163
Ok, well post me the output of /var/log/messages


I don't think you wanted the whole message log. I saw when it started to make the jail for sickbeard there were some error with internet or network. I am not too sure on how to correct this or what to look for to correcting it. But I did see a conflict of IPs. So I changed it but still could not start it. So I rebooted the computer and now I am able to start the plugin just like how you have mention it. I paste the log anyways just incase someone else get a similar problem. Now I will see if i can follow the rest of the steps.

Thank YOu.
Code:
Aug 23 19:22:12 freenas last message repeated 2 times
Aug 23 19:22:12 freenas manage.py: [py.warnings:193] /usr/local/lib/python2.7/si                        te-packages/django/http/request.py:193: DeprecationWarning: HttpRequest.raw_post                        _data has been deprecated. Use HttpRequest.body instead.  warnings.warn('HttpRe                        quest.raw_post_data has been deprecated. Use HttpRequest.body instead.', Depreca                        tionWarning)
Aug 23 19:22:12 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 19:22:14 freenas last message repeated 2 times
Aug 23 20:41:58 freenas ntpd[1731]: time reset +0.143522 s
Aug 23 20:43:55 freenas kernel: arp: 192.168.1.4 moved from 02:41:9c:00:0c:0a to                        b8:97:5a:3b:02:f9 on epair0b
Aug 23 23:07:41 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:09:34 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:09:49 freenas last message repeated 4 times
Aug 23 23:09:50 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden create  customplugin_1 --ipv4 192.168.1.7/24 --pluginjail --syslog --l                        ogfile /mnt/Jail/warden.log
Aug 23 23:09:50 freenas warden: Building new Jail... Please wait...
Aug 23 23:09:50 freenas warden: Installing world...
Aug 23 23:10:54 freenas warden: Boot-strapping pkgng
Aug 23 23:10:55 freenas warden: ERROR: Failed boot-strapping PKGNG, most likely                        cause is internet connection failure.
Aug 23 23:10:55 freenas warden: Done
Aug 23 23:10:55 freenas warden: Success!
Aug 23 23:10:55 freenas warden: Jail created at /mnt/Jail/customplugin_1
Aug 23 23:10:55 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden auto  customplugin_1
Aug 23 23:10:55 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden set vnet-enable customplugin_1
Aug 23 23:10:55 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden start  customplugin_1
Aug 23 23:10:55 freenas kernel: epair1a: Ethernet address: 02:23:aa:00:0d:0a
Aug 23 23:10:55 freenas kernel: epair1b: Ethernet address: 02:23:aa:00:0e:0b
Aug 23 23:10:55 freenas kernel: epair1a: link state changed to UP
Aug 23 23:10:55 freenas kernel: epair1b: link state changed to UP
Aug 23 23:10:55 freenas kernel: epair1a: promiscuous mode enabled
Aug 23 23:10:55 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:10:55 freenas last message repeated 2 times
Aug 23 23:10:55 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/sbin/jl                        s
Aug 23 23:10:56 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/s                        bin/pbi_add  -i /var/tmp/firmware/pbifile.pbi
Aug 23 23:10:56 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/sbin/je                        xec 2 /usr/local/sbin/pbi_info  -v
Aug 23 23:10:56 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/sbin/je                        xec 2 /usr/local/sbin/pbi_add  -f --no-checksig /.plugins/sickbeard-1.0-amd64.pb                        i
Aug 23 23:11:10 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/sbin/je                        xec  2 cat /usr/pbi/sickbeard-amd64/freenas
Aug 23 23:11:14 freenas notifier: Performing sanity check on nginx configuration                        :
Aug 23 23:11:14 freenas notifier: nginx: the configuration file /usr/local/etc/n                        ginx/nginx.conf syntax is ok
Aug 23 23:11:14 freenas notifier: nginx: configuration file /usr/local/etc/nginx                        /nginx.conf test is successful
Aug 23 23:11:14 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:11:14 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:11:14 freenas kernel: arp: 192.168.1.7 moved from 02:23:aa:00:0e:0b to                        f8:d0:bd:22:93:35 on re0
Aug 23 23:11:14 freenas kernel: arp: f8:d0:bd:22:93:35 is using my IP address 19                        2.168.1.7 on epair1b!
Aug 23 23:11:15 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:11:15 freenas last message repeated 2 times
Aug 23 23:11:15 freenas manage.py: [freeadmin.navtree:473] Couldn't retrieve htt                        p://192.168.1.4/plugins/Sickbeard/2/_s/treemenu: HTTP Error 502: Bad Gateway
Aug 23 23:11:15 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:11:21 freenas last message repeated 4 times
Aug 23 23:11:21 freenas manage.py: [freeadmin.navtree:473] Couldn't retrieve htt                        p://192.168.1.4/plugins/Sickbeard/2/_s/treemenu: HTTP Error 502: Bad Gateway
Aug 23 23:11:26 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/b                        in/warden list  -v
Aug 23 23:11:51 freenas last message repeated 3 times
Aug 23 23:11:51 freenas manage.py: [plugins.utils:80] Couldn't retrieve http://1                        92.168.1.4/plugins/Sickbeard/2/_s/status: HTTP Error 502: Bad Gateway
 

tanik1

Contributor
Joined
Mar 31, 2013
Messages
163
My question now is which usenet site is the best or the most commonly used in the freenas community?
 

Kelly Shutt

Dabbler
Joined
Sep 27, 2012
Messages
12
Gollum,

Thanks for all the hard work on these plugins, much appreciated. Any chance you plan on doing headphones, gamez, etc? I would be interested in helping out if needed, but I'm a little new to the PBI system. I've working in Linux administration for over a decade and have a pretty good understanding of most Linux systems, etc. but would appreciate some guidance with the PBI stuff. Maybe you can post a short tutorial on what setup and procedures you had to follow to get these running? There's plenty of "examples" available in the documentation, but they all seem to deal with using existing ports. I would be interested in seeing a practical example of how to create one where there is no existing port, which I assume is what you had to do for this plugin.

Peace,
Kelly Shutt
 

Kelly Shutt

Dabbler
Joined
Sep 27, 2012
Messages
12
Another question... is it possible to have the plugins live inside the same jail? It seems like 9.1 makes a new jail every time a plugin is added, whereas my older 8.3 system has one jail that contains all the plugins in one place.
 

humod aman

Cadet
Joined
Aug 10, 2013
Messages
3
guys I need your help here : i upgraded my freenas from 8.3 to 9.1 and installed the plugins all work correctly except for SB after going to the jail/var/log/message its only have this :
Aug 24 22:15:21 customplugin_4 newsyslog[6856]: logfile first created
Aug 24 22:15:21 customplugin_4 syslogd: kernel boot file is /boot/kernel/kernel
Aug 24 22:15:21 customplugin_4 su: setpriority 'root' (root): Permission denied
the strange thing is that in jails overview its says my jail is running
please i tried everything i know any help is very welcome.
 

Attachments

  • freenas - FreeNAS-9.1.0-RELEASE-x64 (dff7d13).png
    freenas - FreeNAS-9.1.0-RELEASE-x64 (dff7d13).png
    44.2 KB · Views: 486

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Another question... is it possible to have the plugins live inside the same jail? It seems like 9.1 makes a new jail every time a plugin is added, whereas my older 8.3 system has one jail that contains all the plugins in one place.

Hi Kelly,

Yes, you can (I started by doing the same thing you did). Instead of going to Plugins--> Upload go into your Jails, select the one you want everything to be in and at the bottom click the box icon which is also upload. If you always choose the same jail, they'll upload to the same spot. Hope that helps.

Chris
 

PinkyThePig

Dabbler
Joined
Aug 23, 2013
Messages
15
Are there guides out there for creating plugins for freenas 9.1 from git source? I can't seem to find much and since I can't seem to find the sickbeard anime branch with a plugin I would be willing to do the nitty gritty to get it going, I just don't know where to start.
 
Status
Not open for further replies.
Top