It is currently Sat Aug 24, 2019 6:09 am
All times are UTC + 8 hours

CP won't start

CouchPotato is an automatic NZB and torrent downloader.
You can keep a "want to watch"-list and it will search for NZBs/torrents of these items every X hours. Once a correct release is found, matching the correct quality, it will send it to SABnzbd or download the .nzb or .torrent to a specified directory.

Moderators: clinton.hall, JohnnyFive

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 6:13 am

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
Code: Select all
which start-stop-daemon



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
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 6:19 am

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
Capture.PNG (74.29 KiB) Viewed 7865 times
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby clinton.hall » Sun Dec 08, 2013 7:30 am

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
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 7:48 am

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
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 7:52 am

just found log, possible relevant snippet

Code: Select all
12-07 22:17:16 INFO [       couchpotato.runner] Starting server on port 5050
12-07 22:17:16 INFO [chpotato.core._base._core] Launching browser
12-07 22:17:16 INFO [tato.core._base.scheduler] Scheduling updater.check, interval: hours = 6, minutes = 0, seconds = 0
12-07 22:17:16 INFO [potato.core._base.updater] Checking for new version on github for CouchPotatoServer
12-07 22:17:16 INFO [tato.core._base.scheduler] Scheduling automation.add_movies, interval: hours = 12, minutes = 0, seconds = 0
12-07 22:17:17 ERROR [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'
12-07 22:17:17 ERROR [   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) 
12-07 22:17:17 INFO [tato.core._base.scheduler] Scheduling "movie.searcher.all", cron: day = *, hour = 23, minute = 36
12-07 22:17:17 INFO [hpotato.core.plugins.base] Opening url: https://api.couchpota.to/messages/?last_check=1384713000, params: []
12-07 22:17:17 INFO [potato.core._base.updater] Versions, local:b468048d, remote:b468048d
12-07 23:36:00 INFO [hpotato.core.plugins.base] Opening url: https://tpb.ipredator.se, params: []
12-07 23:36:00 INFO [hpotato.core.plugins.base] Opening url: https://kickass.to, params: []
12-07 23:36:03 INFO [hpotato.core.plugins.base] Opening url: http://kickass.pw, params: []
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 7:54 am

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 #
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 7:55 am

changing minified to 777 appears to have fixed it so far :)
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby clinton.hall » Sun Dec 08, 2013 8:20 am

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.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: CP won't start

Postby ho66es » Sun Dec 08, 2013 8:23 am

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 :)
608t
ho66es
 
Posts: 476
Joined: Wed Mar 13, 2013 5:38 am

Re: CP won't start

Postby clinton.hall » Sun Dec 08, 2013 9:06 am

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
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

PreviousNext

Return to CouchPotato

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest