sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

robotlover

Cadet
Joined
Sep 29, 2012
Messages
4
mind saving the logs after a random shutdown. They'd be somewhere in /usr/pbi/couchpotato-amd64/data/
This might give us a clue of what's happening.

Code:
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 354, in _handle_read
    if self._read_to_buffer() == 0:
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 421, in _read_to_buffer
    chunk = self._read_from_socket()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 402, in _read_from_socket
    chunk = self.socket.recv(self.read_chunk_size)
error: [Errno 60] Operation timed out
10-12 19:28:40 INFO [hpotato.core.plugins.base] Opening url: https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, params: []
10-12 20:15:20 WARNING Read error on 77: [Errno 60] Operation timed out
10-12 20:15:20 WARNING error on read
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 354, in _handle_read
    if self._read_to_buffer() == 0:
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 421, in _read_to_buffer
    chunk = self._read_from_socket()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 402, in _read_from_socket
    chunk = self.socket.recv(self.read_chunk_size)
error: [Errno 60] Operation timed out
10-13 01:28:40 INFO [hpotato.core.plugins.base] Opening url: https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, params: []
10-13 01:28:41 INFO [hpotato.core.plugins.base] Opening url: https://github.com/RuudBurger/CouchPotatoServer/tarball/master, params: []
10-13 01:28:49 INFO [hpotato.core.plugins.base] Opening url: http://192.168.1.222:3000/xbmcCmds/xbmcHttp/?parameter=Notification%28CouchPotato%2C+Updated+to+a+new+version+with+hash+%22eb30dff9861dee9c8a5030ffc2d27c7d7eb3d94e%22%2C+this+version+is+from+2012-10-12+15%3A00%3A44%29&command=ExecBuiltIn, params: []
10-13 01:28:49 INFO [o.core.notifications.plex] Plex notification to 192.168.1.222:3000 successful.
10-13 01:28:50 INFO [chpotato.core._base._core] Restarting
10-13 01:28:50 INFO Shutting down thread pool



Hey Josh, here is the latest and most relavent looking info from the logs.

Looks like it tries to run an automatic update and then fails to start ever again.

Is is possible that a my rather large couchpotato data folder is somehow choking things up?

The images built up in the Cache folder approach 500 MB.

Thanks for any help, and just for doing a great job with these plugins!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 354, in _handle_read
    if self._read_to_buffer() == 0:
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 421, in _read_to_buffer
    chunk = self._read_from_socket()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 402, in _read_from_socket
    chunk = self.socket.recv(self.read_chunk_size)
error: [Errno 60] Operation timed out
10-12 19:28:40 INFO [0m[hpotato.core.plugins.base] Opening url: https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, params: [][0m
10-12 20:15:20 WARNING [33mRead error on 77: [Errno 60] Operation timed out[0m
10-12 20:15:20 WARNING [33merror on read[0m
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 354, in _handle_read
    if self._read_to_buffer() == 0:
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 421, in _read_to_buffer
    chunk = self._read_from_socket()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/libs/tornado/iostream.py", line 402, in _read_from_socket
    chunk = self.socket.recv(self.read_chunk_size)
error: [Errno 60] Operation timed out
10-13 01:28:40 INFO [0m[hpotato.core.plugins.base] Opening url: https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, params: [][0m
10-13 01:28:41 INFO [0m[hpotato.core.plugins.base] Opening url: https://github.com/RuudBurger/CouchPotatoServer/tarball/master, params: [][0m
10-13 01:28:49 INFO [0m[hpotato.core.plugins.base] Opening url: http://192.168.1.222:3000/xbmcCmds/xbmcHttp/?parameter=Notification%28CouchPotato%2C+Updated+to+a+new+version+with+hash+%22eb30dff9861dee9c8a5030ffc2d27c7d7eb3d94e%22%2C+this+version+is+from+2012-10-12+15%3A00%3A44%29&command=ExecBuiltIn, params: [][0m
10-13 01:28:49 INFO [0m[o.core.notifications.plex] Plex notification to 192.168.1.222:3000 successful.[0m
10-13 01:28:50 INFO [0m[chpotato.core._base._core] Restarting[0m
10-13 01:28:50 INFO [0mShutting down thread pool[0m



Hey Josh, here is the latest and most relavent looking info from the logs.

Looks like it tries to run an automatic update and then fails to start ever again.

Is is possible that a my rather large couchpotato data folder is somehow choking things up?

The images built up in the Cache folder approach 500 MB.

Thanks for any help, and just for doing a great job with these plugins!

You might want to check the permissions on the CouchPotato folder
Code:
chown -R media:media /usr/pbi/couchpotato-amd64/

but as you said you've reinstalled it, I doubt it's a permissions issue.

You could also, disable automatic update.. though that's not too great of a solution. Anyone else had couchpotato die on you?
 

np247

Dabbler
Joined
Jul 22, 2012
Messages
13
Good morning,
I'm running into a few issues/pet peeves over here.
I installed the Sab/Sickbeard 1.0 PBI's and for whatever reason Season folders are not working. I tried adding 2 new shows, one with "Flatten Folders" enabled and one without (thinking possibly a bug of some kind?), and alas, upon completion both shows had the single episodes uncompressed, renamed, and moved to the root of each respective shows directory -- no season folder to be found. I seem to remember seeing "Season Folders" in a Windows build of SB, but don't see the same thing under this PBI? Are my expectations out to lunch, did I miss something, or did I mess something up?

Also, to get everything moving the proper directories I had to essentially do a chmod -R 777. I'd rather not do this. When I do a ps aux on the host OS I see sickbeard running as user 40002. On the jail, I see it running as user media. I have mount points between the two (/mnt/volume0/Share for example). What kind of permissions should I be setting?

Thanks in advance -- and great work!
 

np247

Dabbler
Joined
Jul 22, 2012
Messages
13
Somewhat got the aforementiond working, turns out it's under Episode Naming -- simply make your own custom naming scheme to include the Season Folders and disable Flatten Folders.

I noticed the time on the jail is off. Is there any way to sync the two?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Somewhat got the aforementiond working, turns out it's under Episode Naming -- simply make your own custom naming scheme to include the Season Folders and disable Flatten Folders.

I noticed the time on the jail is off. Is there any way to sync the two?

yeah, sickbeard's season folder settings changed a few months ago, your windows install had the older settings. I haven't played around with the settings lately as everything's working fine for me but I'm glad you got it working.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Well, I decided to upgrade to the new 1.0 stuff today. Long story short: I somehow lost everything except my config files. Ok, that was a pain but it can always be rebuilt. The trouble is, despite the fact that permissions both inside and outside the jail look fine (drwxrwxrwx root wheel), sickbeard is not able to add new shows, saying it can't create a directory.

"Unable to create the folder /usr/pbi/Mounts/tvtank/Homeland, can't add the show"

Since it clearly can if it wants to, does anyone have any idea what's going on? Might it be because I followed Joshua's advice and slapped down the

chown -R media:media /usr/pbi/X-amd64/

line? It's an odd problem to have. My thought was that I might simply be able to delete the old 'legacy' link to the jail path and rewrite it, but nope - that didn't work either. End result: no folders for me!

EDIT: DLed a movie and sab and CP between them can't create a folder for a movie either. Obviously, there is a logical mistake somewhere, but I'm buggered if I can see it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Well, I decided to upgrade to the new 1.0 stuff today. Long story short: I somehow lost everything except my config files. Ok, that was a pain but it can always be rebuilt. The trouble is, despite the fact that permissions both inside and outside the jail look fine (drwxrwxrwx root wheel), sickbeard is not able to add new shows, saying it can't create a directory.

"Unable to create the folder /usr/pbi/Mounts/tvtank/Homeland, can't add the show"

Since it clearly can if it wants to, does anyone have any idea what's going on? Might it be because I followed Joshua's advice and slapped down the

chown -R media:media /usr/pbi/X-amd64/

line? It's an odd problem to have. My thought was that I might simply be able to delete the old 'legacy' link to the jail path and rewrite it, but nope - that didn't work either. End result: no folders for me!

EDIT: DLed a movie and sab and CP between them can't create a folder for a movie either. Obviously, there is a logical mistake somewhere, but I'm buggered if I can see it.

Well the command you used only changes the permissions of your data folder. You might have to change the permissions of you mount point, (where your programs are actually trying to download / move the files).

I don't know exactly how your system is setup but the below might help..
Code:
chown -R media:media /usr/pbi/Mounts/tvtank

goodluck
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
I slept on it, which was handy as it worked the next day with nothing changing at all. I rebooted the server for good luck and *poof* working. I'm not at all sure what to make of that, but I'll take it for now.
 

np247

Dabbler
Joined
Jul 22, 2012
Messages
13
Hmm. I assume "media" is the account which sab/sickbeard uses to run/move media/etc?
And I also assume this account is only active/valid within the jail?

I have mount paths between my production FreeNAS and the Jail. What kind of permissions would I apply?

Right now I basically have a chmod -R 777 /mnt/volume0/Share and it's kinda bugging me.

Thanks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm. I assume "media" is the account which sab/sickbeard uses to run/move media/etc?
And I also assume this account is only active/valid within the jail?

I have mount paths between my production FreeNAS and the Jail. What kind of permissions would I apply?

Right now I basically have a chmod -R 777 /mnt/volume0/Share and it's kinda bugging me.

Thanks

yeah 'media' is a user in the freenas jail that I use to run everything. I'm not 100% sure if the owner of files in a jail affects the owner of files outside of a jail. it might have to do with their users uid.

you should be fine to make the files read only (755) and owned by media, that way people can't mess with your files.
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
This has become one huge thread! Has anybody actually made an overview of what the best configuration is for all of this? For instance, in my case, I can make the link between sickbeard and sabnzbd work, but it then puts everything in the \software\pbi\sabnzbd-amd64\data\Downloads\complete folder. Is that what everybody does? Then what is the mount all about? And SOME folders look like Series title - 5x10 - Episode title, whereas others look like Series title S05E10 720p HDTV X264 DIMENSION. Also I haven't found a way to get Maraschino to work. Long story short - it would be great if somebody could just describe how his/her overall setup works in a wiki or sthg (like on http://doc.freenas.org/index.php/Plugins). Any help would be greatly appreciated.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
This has become one huge thread! Has anybody actually made an overview of what the best configuration is for all of this? For instance, in my case, I can make the link between sickbeard and sabnzbd work, but it then puts everything in the \software\pbi\sabnzbd-amd64\data\Downloads\complete folder. Is that what everybody does? Then what is the mount all about? And SOME folders look like Series title - 5x10 - Episode title, whereas others look like Series title S05E10 720p HDTV X264 DIMENSION. Also I haven't found a way to get Maraschino to work. Long story short - it would be great if somebody could just describe how his/her overall setup works in a wiki or sthg (like on http://doc.freenas.org/index.php/Plugins). Any help would be greatly appreciated.

Well everybody has their own preferences on how to name stuff / folder structure. Your file with the 'DIMENSION' still in the title didn't get renamed so you may not have setup your renaming in sickbeard+sabznbd correctly.

Here's a brief explanation of how my folder structure works http://forums.freenas.org/showthrea...ouchpotato-pbi-s&p=39693&viewfull=1#post39693


BTW I definitely don't have my folder structure like you, that seems messy to me and I like to keep my media files separate from my program's files. Check the link to see what I mean. But the most important thing is it works, and works reliably so it's whatever you want to do.
 

Ragewaar

Cadet
Joined
Oct 29, 2012
Messages
4
Awesome plugins, got SAB working no problems but I'm having difficulty with SickBeard - namely the corruption mentioned a few pages back. I've tried both 1.0 and 0.9 (x64) and neither works, are there any older builds?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Awesome plugins, got SAB working no problems but I'm having difficulty with SickBeard - namely the corruption mentioned a few pages back. I've tried both 1.0 and 0.9 (x64) and neither works, are there any older builds?

as in the plugins wont install? will official plugins install on your system currently?
 

redtractor

Cadet
Joined
Oct 29, 2012
Messages
2
Hi,
I'm a total freenas noob but I was able to install freenas 8.3 and sab/sick/couch on my home "server". I tried to read everything but as I said before I'm totally noob. So, almost everything works perfect. Almost because I've got two small issues.
First is connected to the permissions (I think :) )

I've got 2 mounting points

Source: Destination:
/mnt/seriale/tv series /mnt/download/PlugonsJail/pluginsjail/usr/pbi/sickbeard-amd64/tv series

/mnt/filmy/movies /mnt/download/PlugonsJail/pluginsjail/usr/pbi/couchpotato-amd64/movies

When something is snatched by the sickbeard, downloaded by sabnzbd and then postprocess by sick, i've got no problems with renaming, deleting, copying in both directions etc from a windows7 network manager.
But when I'm using couch and sabnzbd, then from windows I can only copy from server to my PC, rest is blocked. I can manually change permisions from freenas shell, but then when something new shows up and will be downloaded, it has again old permisions


Permissions in the /mnt/seriale/tv series
Code:
[root@freenas ~]# cd /mnt/seriale/                                              
[root@freenas /mnt/seriale]# ls -l                                              
total 17                                                                        
drwxrwxrwx  14 40001  40001  14 Oct 27 09:12 tv series                          
[root@freenas /mnt/seriale]# cd tv\ series/                                     
[root@freenas /mnt/seriale/tv series]# ls -l                                    
total 204                                                                       
drwxrwxrwx  3 40001  40001   7 Oct 25 09:28 a                              
drwxrwxrwx  7 40001  40001  16 Oct 26 04:16 b                       
drwxrwxrwx  3 40001  40001   8 Oct 25 14:54 c                           
drwxrwxrwx  7 40001  40001  17 Oct 25 16:15 d                           
drwxrwxrwx  4 40001  40001  10 Oct 27 14:11 e                           
drwxrwxrwx  2 40001  40001  17 Oct 27 09:33 f        
drwxrwxrwx  3 40001  40001  10 Oct 27 04:10 g                            
drwxrwxrwx  3 40001  40001   8 Oct 25 13:53 h                         
drwxrwxrwx  4 40001  40001  11 Oct 26 11:00 i                            
drwxrwxrwx  8 40001  40001  19 Oct 27 11:41 j                
drwxrwxrwx  3 40001  40001   7 Oct 26 11:00 k                       
drwxrwxrwx  5 40001  40001  13 Oct 26 13:56 l  



Permissions in the /mnt/filmy/movies

Code:
drwxrwxrwx  21 40001  40001  21 Oct 28 16:07 movies                             
[root@freenas /mnt/filmy]# cd movies/                                           
[root@freenas /mnt/filmy/movies]# ls -l                                         
total 89                                                                        
drwxr-xr-x  2 40001  40001   8 Oct 28 16:09 a            
drwxrwxrwx  2 40001  40001   8 Oct 28 07:28 b           
drwxrwxrwx  2 40001  40001   9 Oct 27 15:36 c               
drwxrwxrwx  2 40001  40001  10 Oct 28 12:15 d                 
drwxrwxrwx  2 40001  40001   8 Oct 28 03:47 e                 
drwxrwxrwx  2 40001  40001   8 Oct 27 08:21 f      
drwxrwxrwx  2 40001  40001   9 Oct 27 08:21 g 
drwxr-xr-x  2 40001  40001   7 Oct 28 13:01 h                      
drwxrwxrwx  2 40001  40001   7 Oct 27 17:59 i                 
drwxrwxrwx  2 40001  40001   9 Oct 27 08:21 j
drwxrwxrwx  2 40001  40001   9 Oct 26 16:02 k             
drwxrwxrwx  2 40001  40001   7 Oct 26 16:04 l              
drwxrwxrwx  2 40001  40001   8 Oct 27 08:13 m             
drwxrwxrwx  3 40001  40001   9 Oct 26 17:33 n             
drwxrwxrwx  2 40001  40001   7 Oct 27 18:19 o          
drwxrwxrwx  2 40001  40001   8 Oct 27 18:22 p
drwxrwxrwx  2 40001  40001   8 Oct 28 12:16 q
drwxrwxrwx  2 40001  40001   9 Oct 27 17:38 r          
drwxrwxrwx  2 40001  40001  10 Oct 28 03:47 s


permissions in the /mnt/download/PlugonsJail/pluginsjail/usr/pbi/sickbeard-amd64

Code:
pluginsjail# ls -l                                                              
total 421                                                                       
drwxrwxrwx   2 media  media       2 Sep 27 12:58 .headerdir                     
-rwxrwxrwx   1 media  media     181 Oct 24 13:47 .oauth                         
-rwxrwxrwx   1 media  media  329551 Sep 27 13:02 .pbi-hash-list                 
drwxrwxrwx   2 media  media       6 Sep 27 12:58 .sbin                          
drwxrwxrwx   8 media  media      18 Oct 24 14:20 SickBeard                      
drwxrwxrwx   2 media  media      46 Sep 27 12:58 bin                            
-rwxrwxrwx   1 media  media     103 Sep 15 12:30 control                        
-rwxrwxrwx   1 media  media    2366 Sep 15 12:30 control.py                     
drwxrwxrwx   4 media  media      11 Oct 29 12:20 data                           
-rwxrwxrwx   1 media  media    1030 Sep 15 12:30 default.png                    
drwxrwxrwx   3 media  media       5 Oct 24 13:47 etc                            
-rwxrwxrwx   1 media  media      15 Sep 15 12:30 freenas                        
drwxrwxrwx   3 media  media      11 Sep 27 12:58 include                        
drwxrwxrwx   4 media  media      38 Sep 27 12:58 lib                            
-rwxrwxrwx   1 media  media    1186 Sep 15 12:30 sickbeard-autoprocess.sh       
drwxrwxrwx   3 media  media      11 Oct 24 16:14 sickbeardUI                    
drwxrwxrwx  14 media  media      14 Oct 27 09:12 tv series                      
-rwxrwxrwx   1 media  media     211 Sep 15 12:30 tweak-rcconf      


permissions in the /mnt/download/PlugonsJail/pluginsjail/usr/pbi/couchpotato-amd64

Code:
pluginsjail# ls -l                                                              
total 412                                                                       
drwxrwxrwx   2 media  media       2 Sep 27 13:10 .headerdir                     
-rwxrwxrwx   1 media  media     181 Oct 24 13:46 .oauth                         
-rwxrwxrwx   1 media  media  320936 Sep 27 13:13 .pbi-hash-list                 
drwxrwxrwx   2 media  media       6 Sep 27 13:10 .sbin                          
drwxrwxrwx   5 media  media      12 Oct 26 16:29 CouchPotato                    
drwxrwxrwx   2 media  media      43 Sep 27 13:10 bin                            
-rwxrwxrwx   1 media  media     107 Sep 15 12:30 control                        
-rwxrwxrwx   1 media  media    2422 Sep 15 12:30 control.py                     
drwxrwxrwx   3 media  media      11 Oct 24 14:18 couchpotatoUI                  
drwxrwxrwx   5 media  media      10 Oct 29 11:35 data                           
-rwxrwxrwx   1 media  media     513 Sep 15 12:30 default.png                    
drwxrwxrwx   3 media  media       5 Oct 24 13:46 etc                            
-rwxrwxrwx   1 media  media      15 Sep 15 12:30 freenas                        
drwxrwxrwx   3 media  media      11 Sep 27 13:10 include                        
drwxrwxrwx   4 media  media      38 Sep 27 13:10 lib                            
drwxrwxrwx  21 media  media      21 Oct 28 16:07 movies                         
-rwxrwxrwx   1 media  media     219 Sep 15 12:30 tweak-rcconf    


Can someone explain to me what is wrong?

And now problem II.
There is something not right with my mounting points.
When I switch off or restart the server, mounting points are not enable. I need to go to plugins -> mounting points and check option to enable.

That's all folks,

Thanks
 

Ragewaar

Cadet
Joined
Oct 29, 2012
Messages
4
as in the plugins wont install? will official plugins install on your system currently?

Yes they won't install, I get:

Code:
"Error: This file was not identified as in PBI format, It might as well be corrupt"


Not tried any official, but I have your SABnzbd setup and running fine.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes they won't install, I get:

Code:
"Error: This file was not identified as in PBI format, It might as well be corrupt"


Not tried any official, but I have your SABnzbd setup and running fine.

Yeah, I've had plugins working then all of a sudden get the same error with any pbi files. Please try installing an official plugin and see if you get the same error.

If so, the only thing I've been able to do to fix it was reboot freenas. I really hate rebooting my servers but I haven't found out what else I could do to fix this problem, not sure what is causing the pbi identification bug(maybe we should try rebooting php-fpm running for the freenas webserver?) but I hope we can figure it out..
 

Ragewaar

Cadet
Joined
Oct 29, 2012
Messages
4
Yeah, I've had plugins working then all of a sudden get the same error with any pbi files. Please try installing an official plugin and see if you get the same error.

If so, the only thing I've been able to do to fix it was reboot freenas. I really hate rebooting my servers but I haven't found out what else I could do to fix this problem, not sure what is causing the pbi identification bug(maybe we should try rebooting php-fpm running for the freenas webserver?) but I hope we can figure it out..

Odd, tried the official Transmission plugin only to get the same error. Going to reboot and retry, is there a certain version of the SickBeard pbi I would be better off using or should I just try 1.0 again?

Edit: Is there any logs or dumps I could post to help? I'm pretty new to FreeNAS but i'll give it a go.
 

Ragewaar

Cadet
Joined
Oct 29, 2012
Messages
4
Rebooted, official plugin and SB still give the same error message - so I'm guessing the error lies in my setup or something?
 
Status
Not open for further replies.
Top