Ok what did I do wrong ugh...... I killed it help
Code:
root@couchpotato_1:/ # pw useradd -n dave -u 1001 -d /nonexistent -s /usr/sbin/nologin
root@couchpotato_1:/ # service couchpotato onestop
Stopping couchpotato.
Waiting for PIDS: 76284.
root@couchpotato_1:/ # chown -R dave:1001 /var/db/couchpotato
root@couchpotato_1:/ # sysrc 'Plugin_user=dave'
Plugin_user: -> dave
root@couchpotato_1:/ # service couchpotato start
Starting couchpotato.
Traceback (most recent call last):
File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/CouchPotato.py", line 131, in <module>
l = Loader()
File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/CouchPotato.py", line 64, 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 911, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 936, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/db/couchpotato/logs/error.log'
Traceback (most recent call last):
File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/CouchPotato.py", line 131, in <module>
l = Loader()
File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/CouchPotato.py", line 64, 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 911, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/pbi/couchpotato-amd64/lib/python2.7/logging/__init__.py", line 936, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/db/couchpotato/logs/error.log'
/usr/local/etc/rc.d/couchpotato: WARNING: failed to start couchpotato
root@couchpotato_1:/ #