I'm trying to get all three of your PBIs to run as the same user to minimize permissions problems. Sabnzbd went fine, however, when I edit couchpotato/etc/rc.d/couchpotato to switch to ${couchpotato_user:="tom"}, I get this error:
Code:
root@customplugin_2:/usr/pbi/couchpotato-amd64/CouchPotato/init # service couchpotato start
Starting couchpotato.
Traceback (most recent call last):
File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 127, in <module>
l = Loader()
File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 59, in __init__
hdlr = handlers.RotatingFileHandler(os.path.join(self.log_dir, 'error.log'), 'a', 500000, 10)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/handlers.py", line 117, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/handlers.py", line 64, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 902, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 925, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/usr/pbi/couchpotato-amd64/data/logs/error.log'
Traceback (most recent call last):
File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 127, in <module>
l = Loader()
File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 59, in __init__
hdlr = handlers.RotatingFileHandler(os.path.join(self.log_dir, 'error.log'), 'a', 500000, 10)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/handlers.py", line 117, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/handlers.py", line 64, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 902, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 925, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/usr/pbi/couchpotato-amd64/data/logs/error.log'
/usr/local/etc/rc.d/couchpotato: WARNING: failed to start couchpotato
Do you know what I am doing wrong? Obviously I chowned both /mnt/ folders and the main PBI folder to the correct user.
FIXED: I tried sabnzbd first, and there the rc.d file was symlinked from the PBI-dir to /usr/local/etc, so I assumed it was the same way in couchpotato and sickbeard. It wasn't, so I edited the wrong files. Everything is fine now :)