Rpi CouchPotato autostart + DB error
|
Posts: 12
Threads: 3
Joined: Sep 2015
Reputation:
0
[Solved]
Sep 04, 2015, 10:13 PM
(This post was last modified: Sep 05, 2015, 05:43 PM by Taleoo.)
Hey again Mike
I read the rest of your tutorials and discovered Couchpotato thanks to you =DD
I managed to make everything work but the autostart as you guessed =/ (on Raspbian still)
I followed everything you said yet it doesn't seem that Couchpotato starts automatically, i checked with
Code:
ps aux | grep python
and still nothing shows up =/ i have to add that i installed a modified version of couchpotato from https://github.com/Adelscott/CouchPotatoServer because there are French downloading sites forked on this one
I hesitate to use your upstart method because i have a lot of stuff set up to start automatically and i saw that sysinit would be removed.
How can i resolve this?
EDIT: look at the bottom for the DB error
[url=https://github.com/Adelscott/CouchPotatoServer][/url]
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 05, 2015, 08:14 AM
You are on regular Raspbian? I am doing tests on OSMC and my installer has worked with NZBGet, CouchPotato, SickRage and Plex so far.
I am wondering what other changes you may have made to your system. Using the French fork for CouchPotato shouldn't make a difference since the init.d script is the same.
Can you show the full output of your install process (especially sudo update-rc.d couchpotato defaults and sudo service couchpotato start and sudo cat /etc/default/couchpotato).
Posts: 12
Threads: 3
Joined: Sep 2015
Reputation:
0
[Solved]
Sep 05, 2015, 10:18 AM
Ok i gave this another go today (not like the brainless moron i was at 4am) and actually the problem was just a basic permissions one... I just ran chown for pi on CouchPotato and it's all good now =DDD
I think my HTPC is finally done now with Kodi+Plex Media Server to stream on the chromecast in the bedroom+Owncloud+Sickrage+Couchpotato.
Thanks again for all those amazing tutorials =DD
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 05, 2015, 10:47 AM
hehe doing tutorials in the wee hours can lead to interesting issues. Glad you got it all working now
Posts: 12
Threads: 3
Joined: Sep 2015
Reputation:
0
[Solved]
Sep 05, 2015, 05:40 PM
Damn i got a DB error now >_<
Code:
[to.core.media.movie._base] Failed adding media: Traceback (most recent call last):
File "/opt/CouchPotato/couchpotato/core/media/movie/_base/main.py", line 137, in add
m = db.insert(media)
File "/opt/CouchPotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
res = f(*args, **kwargs)
File "/opt/CouchPotato/libs/CodernityDB/database.py", line 893, in insert
self._insert_indexes(_rev, data)
File "/opt/CouchPotato/libs/CodernityDB/database.py", line 725, in _insert_indexes
self._single_insert_index(index, data, _id)
File "/opt/CouchPotato/libs/CodernityDB/database.py", line 699, in _single_insert_index
index.insert_with_storage(doc_id, key, value)
File "/opt/CouchPotato/libs/CodernityDB/index.py", line 195, in insert_with_storage
return self.insert(doc_id, key, start, size)
File "/opt/CouchPotato/libs/CodernityDB/tree_index.py", line 2007, in insert
ins(doc_id, curr_key, start, size, status)
File "/opt/CouchPotato/libs/CodernityDB/tree_index.py", line 183, in insert
indexes)
File "/opt/CouchPotato/libs/CodernityDB/tree_index.py", line 1374, in _insert_new_record_into_leaf
nr_of_elements = self._read_leaf_nr_of_elements(leaf_start)
File "/opt/CouchPotato/libs/CodernityDB/rr_cache_with_lock.py", line 38, in wrapper
cache[key] = user_function(key, *args, **kwargs)
File "/opt/CouchPotato/libs/CodernityDB/tree_index.py", line 208, in _read_leaf_nr_of_elements
'<' + self.elements_counter_format, data)
error: unpack requires a string argument of length 2
How do i delete the DB to resolve this? do you have any idea? xD
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 05, 2015, 05:53 PM
This may be because you are using a fork of CP rather than the original, this should remove all databases.
Code:
sudo rm -R /opt/CouchPotato/database
Posts: 12
Threads: 3
Joined: Sep 2015
Reputation:
0
[Solved]
Sep 06, 2015, 07:43 AM
Ok well seems i fucked up somewhere... I recopied CouchPotato from the github and now everything works fine =)
|
|
Recent Posts
|
Running Plex over a Split Tunnel VPN
jonescelinaa Apr 27, 2024, 09:19 AM
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|