Page 2 of 4
Re: CP won't start
Posted: Sun Dec 08, 2013 6:13 am
by ho66es
clinton.hall wrote:Can someone lease test by running the following via ssh and then posting the output?
Code: Select all
/usr/local/AppCentral/couchpotato/CONTROL/start-stop restart
The things that were changed were to modify file permissions to admin (which should not prevent the app being called by root account) and to launch with start-stop-daemon.
Can someone also verify the output of
re 1st request
Code: Select all
root@AS-608T-C643:~ # /usr/local/AppCentral/couchpotato/CONTROL/start-stop resta
rt
-sh: /usr/local/AppCentral/couchpotato/CONTROL/start-stop: not found
root@AS-608T-C643:~ #
re 2nd request
Code: Select all
root@AS-608T-C643:~ # which start-stop-daemon
/sbin/start-stop-daemon
Re: CP won't start
Posted: Sun Dec 08, 2013 6:19 am
by ho66es
ok dug deeper
Code: Select all
root@AS-608T-C643:~ # /usr/local/AppCentral/couchpotato/CONTROL/start-stop.sh re
start
Restarting CouchPotato
Shutting down CouchPotato at Sat Dec 7 22:17:11 GMT 2013...
Waiting for CouchPotato to shut down: 1, Done (Sat Dec 7 22:17:12 GMT 2013)
CouchPotato prestartup checks... (Sat Dec 7 22:17:12 GMT 2013)
Cheetah found...
Starting CouchPotato Done (Sat Dec 7 22:17:13 GMT 2013)
root@AS-608T-C643:~ #
also after a few minutes the couch potato web page loaded but I was unable to input data in any of the fields?
- Capture.PNG (74.29 KiB) Viewed 18276 times
Re: CP won't start
Posted: Sun Dec 08, 2013 7:30 am
by clinton.hall
Sorry for missing the .sh on the restart command...
Can you post the output of
Code: Select all
ps | grep couch
cd /usr/local/AppCentral/couchpotato
ls -l
cd config
ls -l
If any of the config files are showing as belonging to root, but the process is shown as admin, then try logging in as root and running
Code: Select all
chown -R admin /usr/local/AppCentral/couchpotato
Re: CP won't start
Posted: Sun Dec 08, 2013 7:48 am
by ho66es
happy to oblige:
Code: Select all
root@AS-608T-C643:~ # ps | grep couch
5708 root 0:00 grep couch
31165 admin 0:09 /usr/local/bin/python2.7 CouchPotato.py --daemon --data_dir /usr/local/AppCentral/couchpotato/config --pid_file /usr/local/AppCentral/couchpotato/CouchPotato.pid
root@AS-608T-C643:~ # cd /usr/local/AppCentral/couchpotato
root@AS-608T-C643:/volume1/.@plugins/AppCentral/couchpotato # ls -l
total 24
drwxr-xr-x 2 admin root 4096 Dec 7 22:11 CONTROL/
drwxr-xr-x 6 admin root 4096 Dec 7 22:12 CouchPotato/
-rw-rw-rw- 1 admin root 6 Dec 7 22:17 CouchPotato.pid
-rw-r--r-- 1 admin root 4 Jun 25 02:47 apkg-version
drwxr-xr-x 6 admin root 4096 Dec 7 22:17 config/
drwxr-xr-x 3 admin root 4096 Jun 27 00:39 repository/
root@AS-608T-C643:/volume1/.@plugins/AppCentral/couchpotato # cd config
root@AS-608T-C643:/volume1/.@plugins/AppCentral/couchpotato/config # ls -l
total 140
drwxrwxrwx 4 admin root 4096 Dec 7 22:12 cache/
-rw-r--r-- 1 admin root 72704 Dec 7 22:17 couchpotato.db
-rw-r--r-- 1 admin root 32768 Dec 7 23:36 couchpotato.db-shm
-rw-r--r-- 1 admin root 2128 Dec 7 23:36 couchpotato.db-wal
dr----x--x 2 admin root 4096 Dec 7 22:12 custom_plugins/
drwxrwxrwx 4 admin root 4096 Dec 7 22:17 db_backup/
drwxr-xr-x 2 admin root 4096 Dec 7 22:12 logs/
-rw-r--r-- 1 admin root 7792 Dec 7 22:17 settings.conf
-rw-r--r-- 1 admin root 3937 Jan 19 2013 settings.conf.org
Re: CP won't start
Posted: Sun Dec 08, 2013 7:52 am
by ho66es
just found log, possible relevant snippet
Code: Select all
12-07 22:17:16 INFO [0m[ couchpotato.runner] Starting server on port 5050[0m
12-07 22:17:16 INFO [0m[chpotato.core._base._core] Launching browser[0m
12-07 22:17:16 INFO [0m[tato.core._base.scheduler] Scheduling updater.check, interval: hours = 6, minutes = 0, seconds = 0[0m
12-07 22:17:16 INFO [0m[potato.core._base.updater] Checking for new version on github for CouchPotatoServer[0m
12-07 22:17:16 INFO [0m[tato.core._base.scheduler] Scheduling automation.add_movies, interval: hours = 12, minutes = 0, seconds = 0[0m
12-07 22:17:17 ERROR [31m[hpotato.core.plugins.base] Unable writing to file "/usr/local/AppCentral/couchpotato/config/cache/minified/front.css": [Errno 13] Permission denied: '/usr/local/AppCentral/couchpotato/config/cache/minified/front.css'[0m
12-07 22:17:17 ERROR [31m[ couchpotato.core.event] Error in event "app.load", that wasn't caught: Traceback (most recent call last):
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/event.py", line 12, in runHandler
return handler(*args, **kwargs)
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/_base/clientscript/main.py", line 108, in minify
self._minify(file_type, files, position, position + '.' + ext)
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/_base/clientscript/main.py", line 144, in _minify
minified_url = 'minified/%s?%s' % (out_name, tryInt(os.path.getmtime(out)))
File "/usr/local/AppCentral/python/lib/python2.7/genericpath.py", line 54, in getmtime
return os.stat(filename).st_mtime
OSError: [Errno 13] Permission denied: '/usr/local/AppCentral/couchpotato/config/cache/minified/front.css'
encoding=UTF-8 debug=False args=['--daemon', '--data_dir', '/usr/local/AppCentral/couchpotato/config', '--pid_file', '/usr/local/AppCentral/couchpotato/CouchPotato.pid'] app_dir=/volume1/.@plugins/AppCentral/couchpotato/CouchPotato data_dir=/usr/local/AppCentral/couchpotato/config desktop=None options=Namespace(config_file='/usr/local/AppCentral/couchpotato/config/settings.conf', console_log=False, daemon=True, data_dir='/usr/local/AppCentral/couchpotato/config', debug=False, pid_file='/usr/local/AppCentral/couchpotato/CouchPotato.pid', quiet=False) [0m
12-07 22:17:17 INFO [0m[tato.core._base.scheduler] Scheduling "movie.searcher.all", cron: day = *, hour = 23, minute = 36[0m
12-07 22:17:17 INFO [0m[hpotato.core.plugins.base] Opening url: https://api.couchpota.to/messages/?last_check=1384713000, params: [][0m
12-07 22:17:17 INFO [0m[potato.core._base.updater] Versions, local:b468048d, remote:b468048d[0m
12-07 23:36:00 INFO [0m[hpotato.core.plugins.base] Opening url: https://tpb.ipredator.se, params: [][0m
12-07 23:36:00 INFO [0m[hpotato.core.plugins.base] Opening url: https://kickass.to, params: [][0m
12-07 23:36:03 INFO [0m[hpotato.core.plugins.base] Opening url: http://kickass.pw, params: [][0m
Re: CP won't start
Posted: Sun Dec 08, 2013 7:54 am
by ho66es
Code: Select all
root@AS-608T-C643:/volume1/.@plugins/AppCentral/couchpotato/config # ls -l cache
total 8
dr----x--x 2 admin root 4096 Dec 7 22:12 minified/
drwxrwxrwx 2 admin root 4096 Dec 7 22:17 python/
root@AS-608T-C643:/volume1/.@plugins/AppCentral/couchpotato/config #
Re: CP won't start
Posted: Sun Dec 08, 2013 7:55 am
by ho66es
changing minified to 777 appears to have fixed it so far
Re: CP won't start
Posted: Sun Dec 08, 2013 8:20 am
by clinton.hall
Thanks ho66es,
So with changing the permissions on that mifnified directory, everything is running again?
If so, I'll add chmod to the start script (same as the chown section)
I'll post an updated app soon.
Sorry all for this inconvenience.
Re: CP won't start
Posted: Sun Dec 08, 2013 8:23 am
by ho66es
clinton.hall wrote:Thanks ho66es,
So with changing the permissions on that mifnified directory, everything is running again?
If so, I'll add chmod to the start script (same as the chown section)
I'll post an updated app soon.
Sorry all for this inconvenience.
i can confirm it all appears to be running as before the update
Re: CP won't start
Posted: Sun Dec 08, 2013 9:06 am
by clinton.hall
for anyone else experiencing this, before I get the update posted, log in (as root) via ssh and issue the following.
Code: Select all
chmod -R 766 /usr/local/AppCentral/couchpotato/config