CP Won't Start When Copying Database From One Install To Another

Most commonly asked questions will have thire awnsers here, please search before asking!
brando56894
Junior Member
Posts: 14
Joined: 29 May 2012 21:29
Contact:
Status: Offline

CP Won't Start When Copying Database From One Install To Another

Postby brando56894 » 18 Jan 2017 21:06

I copied my data directory from a CP installation that was running in a Docker Container to a VM that is running Arch Linux and after modifying the permissions to agree with how everything else is in Arch I get this crash upon starting CP.

Code: Select all

[bran@arch couchpotato]$ sudo -u couchpotato /usr/bin/python2 /opt/couchpotato/CouchPotato.py --config_file /opt/couchpotato/config.ini --data_dir /opt/couchpotato/data
Traceback (most recent call last):
  File "/opt/couchpotato/CouchPotato.py", line 135, in <module>
    l.run()
  File "/opt/couchpotato/CouchPotato.py", line 89, in run
    runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)
  File "/opt/couchpotato/couchpotato/runner.py", line 142, in runCouchPotato
    db.open()
  File "/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open
    res = super(SuperThreadSafeDatabase, self).open(*args, **kwargs)
  File "/opt/couchpotato/libs/CodernityDB/database.py", line 567, in open
    self._read_indexes()
  File "/opt/couchpotato/libs/CodernityDB/database.py", line 498, in _read_indexes
    self.add_index('path:' + ind, create=False)
  File "/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 105, in add_index
    res = super(SuperThreadSafeDatabase, self).add_index(*args, **kwargs)
  File "/opt/couchpotato/libs/CodernityDB/database.py", line 331, in add_index
    ind_obj, name = self.__write_index(new_index, _next, edit=False)
  File "/opt/couchpotato/libs/CodernityDB/database.py", line 274, in __write_index
    raise IndexConflict("Already exists")
CodernityDB.index.IndexConflict: Already exists


If I delete /opt/couchpotato/data it starts perfectly. How can I movie my wanted movies database from one install to the other?

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

Re: CP Won't Start When Copying Database From One Install To Another

Postby clinton.hall » 19 Jan 2017 11:17


brando56894
Junior Member
Posts: 14
Joined: 29 May 2012 21:29
Contact:
Status: Offline

Re: CP Won't Start When Copying Database From One Install To Another

Postby brando56894 » 19 Jan 2017 17:55

Cool thanks


Return to “FAQ”