SOLVED Can't Start Sickrage & Sabnzbd

Status
Not open for further replies.

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
Both my Sickrage and Sabnzbd plugins have stopped working.

Under Plugins/Installed the 'Service Status' is Off and when I click on them to start nothing happens.

I went to the jail shell and tried to start manually this is the result for sickrage.

Code:
root@sabnzbd_1:/ # service sickrage start                                                                                         
Starting sickrage.                                                                                                                
Traceback (most recent call last):                                                                                                
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/SickBeard.py", line 94, in <module>                                       
    import sickbeard                                                                                                              
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/__init__.py", line 37, in <module>                              
    from sickbeard import metadata                                                                                                
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/__init__.py", line 22, in <module>                     
    from sickbeard.metadata import kodi, kodi_12plus, mediabrowser, ps3, wdtv, tivo, mede8er, generic, helpers                    
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/kodi.py", line 23, in <module>                         
    from sickbeard.metadata import generic                                                                                        
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/generic.py", line 32, in <module>                      
    from sickbeard import helpers                                                                                                 
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/helpers.py", line 50, in <module>                               
    from sickbeard import logger, classes                                                                                         
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/logger.py", line 43, in <module>                                
    from sickbeard import classes                                                                                                 
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/classes.py", line 26, in <module>                               
    from sickbeard.common import USER_AGENT, Quality                                                                              
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/common.py", line 35, in <module>                                
    from fake_useragent import settings as UA_SETTINGS, UserAgent                                                                 
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/__init__.py", line 1, in <module>                      
    from .fake import UserAgent  # noqa                                                                                           
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/fake.py", line 3, in <module>                          
    from . import settings                                                                                                        
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/settings.py", line 5, in <module>                      
    tempfile.gettempdir(), 'fake_useragent.json'                                                                                  
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 269, in gettempdir                                               
    tempdir = _get_default_tempdir()                                                                                              
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 212, in _get_default_tempdir                                     
    ("No usable temporary directory found in %s" % dirlist))                                                                      
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']                                   
/usr/local/etc/rc.d/sickrage: WARNING: failed to start sickrage                                                                   
root@sabnzbd_1:/ #           


And this is the result for sabnzbd

Code:
root@sabnzbd_1:/ # service sabnzbd start                                                                                          
Starting sabnzbd.                                                                                                                 
Error:                                                                                                                            
Can't write to logfile                                                                                                            
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd                                                                     
root@sabnzbd_1:/ #


Everything has been working fine for months so not sure what has happened and I am still a total NOOB.

Any help would be appreciated.
 
Last edited:

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
I've just done a 'Verify Install' and this was the result. I've never done one before so don't know if this is normal.

Code:
The following Inconsistencies were found in your Current Install:
List of Permission Errors:
/bin/pgrep    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/bin/pkill    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libalias.so.7    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libavl.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libbegemot.so.4    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libbsdxml.so.4    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libc.so.7    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libcam.so.6    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libcrypt.so.5    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libcrypto.so.6    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libctf.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libdevstat.so.7    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libdtrace.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libedit.so.7    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libgcc_s.so.1    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libgeom.so.5    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libipsec.so.4    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libjail.so.1    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libkiconv.so.4    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libkvm.so.5    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libm.so.5    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libmd.so.5    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libncurses.so.8    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libncursesw.so.8    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libnvpair.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libpcap.so.8    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libreadline.so.8    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libsbuf.so.6    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libssp.so.0    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libthr.so.3    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libufs.so.6    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libulog.so.0    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libumem.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libutil.so.9    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libuutil.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libz.so.6    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libzfs.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/lib/libzfs_core.so.2    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/libexec/ld-elf.so.1    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/usr/local/share/certs/ca-root-nss.crt    Expected MODE: 0644, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/usr/sbin/mailwrapper    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/usr/sbin/nologin    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/usr/sbin/rmt    Expected MODE: 0555, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534
/usr/share/misc/termcap    Expected MODE: 0444, Got: 0775
Expected UID: 0, Got: 65534
Expected GID: 0, Got: 65534


Has anyone got any ideas. Do I need to delete jail and start again?
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
Has anyone got any idea what has happened and how to correct it? It took me ages to get all the plugins working correctly so I don't really want to blow them away and start again if there is a work round.

Cheers Grant
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
looks like you changed permission levels of you jail and even your host!
id recommend you reinstall the plugins. if you want to save your configuration/metadata its in /var/db/PLUGIN
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
looks like you changed permission levels of you jail and even your host!
id recommend you reinstall the plugins. if you want to save your configuration/metadata its in /var/db/PLUGIN

I've know idea about the changed permission levels on jail & host, things were working I went to work came home and everything had stopped working.

So I need to delete sickrage and sabnzbd then reinstall using your instructions on your blog, or do I need to completely get rid of the jail and start again. Transmission is still working OK. Also do I just 'cp -r /var/db/sickrage /media' and same for sabnzbd then once reinstalled just copy the files back.

I am also still using 9.3-STABLE if I upgrade to 9.10-STABLE will things all work OK following your blog instructions.

Many thanks Grant
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I would think you need to reinstall the jail, but I dont know the specifics of what happened. maybe you can check the output of 'ls -l / /var/db'

I believe my blog steps will work on 9.10 as well but have yet to confirm. I personally did my steps on 9.3 and successfully updated to 9.10 (without messing with my jails) and things continued to work.
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
I would think you need to reinstall the jail, but I dont know the specifics of what happened. maybe you can check the output of 'ls -l / /var/db'

I believe my blog steps will work on 9.10 as well but have yet to confirm. I personally did my steps on 9.3 and successfully updated to 9.10 (without messing with my jails) and things continued to work.


Thanks for help Josh, I will reinstall jail this weekend. This is the output from ls -l / /var/db

Code:
root@sabnzbd_1:/ # ls -l / /var/db
/:
total 222
-rwxr-xr-x   2 root  wheel   965 Jul 11  2014 .cshrc
drwxr-xr-x   2 root  wheel     8 Mar 19 08:32 .plugins
-rwxr-xr-x   2 root  wheel   253 Jul 11  2014 .profile
-rwxr-xr-x   1 root  wheel  6197 Jul 11  2014 COPYRIGHT
-rwxr-xr-x   1 root  wheel     0 Mar  6 20:50 YES
drwxr-xr-x   2 root  wheel    46 Jul 11  2014 bin
drwxr-xr-x   7 root  wheel    40 Jul 11  2014 boot
dr-xr-xr-x  14 root  wheel   512 Apr 25 09:33 dev
drwxr-xr-x  21 root  wheel   104 Apr 26 17:17 etc
drwxr-xr-x   3 root  wheel    49 Jul 11  2014 lib
drwxr-xr-x   3 root  wheel     5 Apr  3  2015 libexec
drwxr-xr-x   5 root  wheel     5 Apr 26 21:39 media
drwxr-xr-x   3 root  wheel     3 Mar  6 20:42 mnt
dr-xr-xr-x   1 root  wheel     0 Apr 28 17:12 proc
drwxr-xr-x   2 root  wheel   144 Jul 11  2014 rescue
drwxr-xr-x   2 root  wheel     7 Mar  6 21:57 root
drwxr-xr-x   2 root  wheel   132 Jul 11  2014 sbin
lrwxr-xr-x   1 root  wheel    11 Jul 11  2014 sys -> usr/src/sys
drwxr-xr-x   6 root  wheel     6 Apr 28 03:01 tmp
drwxr-xr-x  15 root  wheel    15 Mar  6 20:41 usr
drwxr-xr-x  25 root  wheel    25 Apr 25 09:33 var

/var/db:
total 484
drwxr-xr-x  2 root   wheel       2 Jul 11  2014 entropy
drwxr-xr-x  3 root   wheel       4 Jul 11  2014 etcupdate
drwxr-xr-x  2 root   wheel       3 Feb  1 03:52 fontconfig
drwxr-xr-x  2 root   wheel       2 Jul 11  2014 freebsd-update
drwxr-xr-x  2 root   wheel       2 Jul 11  2014 ipf
-rwxr-xr-x  1 root   wheel  568934 Apr 23 04:15 locate.database
-rwxr-xr-x  1 root   wheel   40563 Jul 11  2014 mergemaster.mtree
drwxr-xr-x  9 root   wheel      10 Mar  6 20:41 pbi
drwxr-xr-x  2 root   wheel       6 Mar  7 03:43 pkg
drwxr-xr-x  2 root   wheel       2 Jul 11  2014 ports
drwxr-xr-x  2 root   wheel       2 Jul 11  2014 portsnap
drwxr-xr-x  5 root   wheel       7 Mar  6 20:44 sabnzbd
drwxr-xr-x  5 root   wheel      11 Apr 24 10:21 sickrage
drwxr-x---  5 media  media       8 Apr 28 17:07 transmission
root@sabnzbd_1:/ #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
it looks like you might have changed ownership of your jail.
maybe doing this would fix it without redoing the jail
chown -R media:media /var/db/sabnzbd /var/db/sickrge
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
it looks like you might have changed ownership of your jail.
maybe doing this would fix it without redoing the jail
chown -R media:media /var/db/sabnzbd /var/db/sickrge

Hi tried that and still SickRage & Sabnzbd wont start either from FreeNAS GUI or command line.

Here's the output

Code:
root@sabnzbd_1:/ # service sabnzbd start
Starting sabnzbd.
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd
root@sabnzbd_1:/ #


Code:
root@sabnzbd_1:/ # service sickrage start
Starting sickrage.
Traceback (most recent call last):
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/SickBeard.py", line 94, in <module>
    import sickbeard
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/__init__.py", line 37, in <module>
    from sickbeard import metadata
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/__init__.py", line 22, in <module>
    from sickbeard.metadata import kodi, kodi_12plus, mediabrowser, ps3, wdtv, tivo, mede8er, generic, helpers
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/kodi.py", line 23, in <module>
    from sickbeard.metadata import generic
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/generic.py", line 32, in <module>
    from sickbeard import helpers
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/helpers.py", line 50, in <module>
    from sickbeard import logger, classes
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/logger.py", line 43, in <module>
    from sickbeard import classes
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/classes.py", line 26, in <module>
    from sickbeard.common import USER_AGENT, Quality
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/common.py", line 35, in <module>
    from fake_useragent import settings as UA_SETTINGS, UserAgent
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/__init__.py", line 1, in <module>
    from .fake import UserAgent  # noqa
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/fake.py", line 3, in <module>
    from . import settings
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/settings.py", line 5, in <module>
    tempfile.gettempdir(), 'fake_useragent.json'
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
/usr/local/etc/rc.d/sickrage: WARNING: failed to start sickrage
root@sabnzbd_1:/ #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi tried that and still SickRage & Sabnzbd wont start either from FreeNAS GUI or command line.

Here's the output

Code:
root@sabnzbd_1:/ # service sabnzbd start
Starting sabnzbd.
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd
root@sabnzbd_1:/ #


Code:
root@sabnzbd_1:/ # service sickrage start
Starting sickrage.
Traceback (most recent call last):
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/SickBeard.py", line 94, in <module>
    import sickbeard
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/__init__.py", line 37, in <module>
    from sickbeard import metadata
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/__init__.py", line 22, in <module>
    from sickbeard.metadata import kodi, kodi_12plus, mediabrowser, ps3, wdtv, tivo, mede8er, generic, helpers
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/kodi.py", line 23, in <module>
    from sickbeard.metadata import generic
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/metadata/generic.py", line 32, in <module>
    from sickbeard import helpers
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/helpers.py", line 50, in <module>
    from sickbeard import logger, classes
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/logger.py", line 43, in <module>
    from sickbeard import classes
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/classes.py", line 26, in <module>
    from sickbeard.common import USER_AGENT, Quality
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/common.py", line 35, in <module>
    from fake_useragent import settings as UA_SETTINGS, UserAgent
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/__init__.py", line 1, in <module>
    from .fake import UserAgent  # noqa
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/fake.py", line 3, in <module>
    from . import settings
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/fake_useragent/settings.py", line 5, in <module>
    tempfile.gettempdir(), 'fake_useragent.json'
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/pbi/sickrage-amd64/lib/python2.7/tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
/usr/local/etc/rc.d/sickrage: WARNING: failed to start sickrage
root@sabnzbd_1:/ #
I suggest a reinstall, the ownership on your files definitely got changed
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
Status
Not open for further replies.
Top