linuxserver / docker-couchpotato

http://linuxserver.io
GNU General Public License v3.0
154 stars 69 forks source link

Couchpotato not working anymore #35

Closed yoyos closed 6 years ago

yoyos commented 6 years ago

Couchpotato isn't working anymore, have this error. You have an idea ? :)

Traceback (most recent call last): File "/app/couchpotato/CouchPotato.py", line 135, in l.run() File "/app/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 "/app/couchpotato/couchpotato/runner.py", line 142, in runCouchPotato db.open() File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner res = f(*args, *kwargs) File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open res = super(SuperThreadSafeDatabase, self).open(args, **kwargs) File "/app/couchpotato/libs/CodernityDB/database.py", line 571, in open index.open_index() File "/app/couchpotato/libs/CodernityDB/tree_index.py", line 160, in open_index self.root_flag = struct.unpack('<c', self.buckets.read(1))[0] struct.error: unpack requires a string argument of length 1

j0nnymoe commented 6 years ago

Host OS? / docker command? / docker logs? / have you pulled the latest image and rebuilt the container with that?

yoyos commented 6 years ago

Debian / docker-compose with

version: '2' services: web: build: . ports:

  • 5050:5050 working_dir: /home volumes:
  • /data/entertainment/coughpotato/config:/config
  • /data/entertainment/media/Torrents:/downloads
  • /data/entertainment/media/Movies:/movies environment: TERM: xterm PGID: 33 PUID: 33 TZ: Europe/Brussels restart: always container_name: couchpotato networks: default: external: name: my_network / docker logs -f couchpotato gives me spam of

Traceback (most recent call last): File "/app/couchpotato/CouchPotato.py", line 135, in l.run() File "/app/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 "/app/couchpotato/couchpotato/runner.py", line 142, in runCouchPotato db.open() File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner res = f(*args, *kwargs) File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open res = super(SuperThreadSafeDatabase, self).open(args, **kwargs) File "/app/couchpotato/libs/CodernityDB/database.py", line 571, in open index.open_index() File "/app/couchpotato/libs/CodernityDB/tree_index.py", line 160, in open_index self.root_flag = struct.unpack('<c', self.buckets.read(1))[0] struct.error: unpack requires a string argument of length 1 / yes I have pulled the latest image and rebuilt the container with that

j0nnymoe commented 6 years ago

I assume this has worked for you before?

yoyos commented 6 years ago

Yes, for years :D

j0nnymoe commented 6 years ago

I would report that issue to couch directly, they should be able to point to why that error is happening. If it is an issue with the container, report back and reopen this ticket with what they say :)

yoyos commented 6 years ago

There is not issue tab on https://github.com/CouchPotato/CouchPotatoServer

Do you have an idea where I should ask this please ? ;)

j0nnymoe commented 6 years ago

Their forum is probably the best bet.

aptalca commented 6 years ago

Also, don't build it, pull the image from docker hub. I don't know what you're building from

yoyos commented 6 years ago

debian /data/entertainment # cd couchpotato/ debian /data/entertainment/couchpotato # ls config docker-compose.yml Dockerfile restore debian /data/entertainment/couchpotato # docker rm -f couchpotato couchpotato debian /data/entertainment/couchpotato # cat Dockerfile FROM linuxserver/couchpotato debian /data/entertainment/couchpotato # docker pull linuxserver/couchpotato Using default tag: latest latest: Pulling from linuxserver/couchpotato Digest: sha256:e1b1495c6419dc290bf3a9eb09cae3a29743c2aab8cda9bf1365911544af681c Status: Image is up to date for linuxserver/couchpotato:latest debian /data/entertainment/couchpotato # docker-compose up -d --build Building web Step 1/1 : FROM linuxserver/couchpotato ---> 886f8f9231c8 Successfully built 886f8f9231c8 Successfully tagged couchpotato_web:latest Creating couchpotato ... Creating couchpotato ... done debian /data/entertainment/couchpotato # docker logs -f couchpotato [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io We gratefully accept donations at: https://www.linuxserver.io/donations/

GID/UID

User uid: 33 User gid: 33

[cont-init.d] 10-adduser: exited 0. [cont-init.d] 30-config: executing... [cont-init.d] 30-config: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. Traceback (most recent call last): File "/app/couchpotato/CouchPotato.py", line 135, in l.run() File "/app/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 "/app/couchpotato/couchpotato/runner.py", line 142, in runCouchPotato db.open() File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner res = f(*args, kwargs) File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open res = super(SuperThreadSafeDatabase, self).open(*args, *kwargs) File "/app/couchpotato/libs/CodernityDB/database.py", line 571, in open index.open_index() File "/app/couchpotato/libs/CodernityDB/tree_index.py", line 160, in open_index self.root_flag = struct.unpack('<c', self.buckets.read(1))[0] struct.error: unpack requires a string argument of length 1 Traceback (most recent call last): File "/app/couchpotato/CouchPotato.py", line 135, in l.run() File "/app/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 "/app/couchpotato/couchpotato/runner.py", line 142, in runCouchPotato db.open() File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner res = f(args, kwargs) File "/app/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open res = super(SuperThreadSafeDatabase, self).open(*args, **kwargs) File "/app/couchpotato/libs/CodernityDB/database.py", line 571, in open index.open_index() File "/app/couchpotato/libs/CodernityDB/tree_index.py", line 160, in open_index self.root_flag = struct.unpack('<c', self.buckets.read(1))[0] struct.error: unpack requires a string argument of length 1 ^C debian /data/entertainment/couchpotato #