gsemet / dopplerr

Subtitle Download Service
MIT License
16 stars 2 forks source link

Docker image not working #12

Closed Groofster closed 6 years ago

Groofster commented 6 years ago

Docker image is not working at all. Process is running in the container but nothing is listening.

PID USER TIME COMMAND 1 root 0:00 s6-svscan -t0 /var/run/s6/services 32 root 0:00 s6-supervise s6-fdholderd 194 root 0:00 s6-supervise dopplerr 762 root 0:00 /bin/bash 1941 abc 0:00 {dopplerr} /usr/bin/python3.6 /usr/bin/dopplerr --no-colo 1946 root 0:00 ps aux

Even when using the --net=host option all is quiet on the network front.

lsof -i 1 /bin/s6-svscan /dev/null 1 /bin/s6-svscan pipe:[22504200] 1 /bin/s6-svscan pipe:[22504201] 1 /bin/s6-svscan anon_inode:[signalfd] 1 /bin/s6-svscan /var/run/s6/services/.s6-svscan/control 1 /bin/s6-svscan /var/run/s6/services/.s6-svscan/control 32 /bin/s6-supervise /dev/null 32 /bin/s6-supervise pipe:[22504200] 32 /bin/s6-supervise pipe:[22504201] 32 /bin/s6-supervise anon_inode:[signalfd] 32 /bin/s6-supervise /var/run/s6/services/s6-fdholderd/supervise/control 32 /bin/s6-supervise /var/run/s6/services/s6-fdholderd/supervise/control 194 /bin/s6-supervise /dev/null 194 /bin/s6-supervise pipe:[22504200] 194 /bin/s6-supervise pipe:[22504201] 194 /bin/s6-supervise anon_inode:[signalfd] 194 /bin/s6-supervise /var/run/s6/services/dopplerr/supervise/control 194 /bin/s6-supervise /var/run/s6/services/dopplerr/supervise/control 762 /bin/bash /dev/pts/5 762 /bin/bash /dev/pts/5 762 /bin/bash /dev/pts/5 762 /bin/bash /dev/pts/5

Furthermore, no logs to be found on the running docker image, -e SUBDLSRC_VERBOSE=1 is set. Even when a config volume is mounted, all is empty.

gsemet commented 6 years ago

Thanks for report ! I finished migration to new build system and begin to use for my own use. Will fix the remaining issues asap !

Groofster commented 6 years ago

Let me know when further testing is possible. I'll be happy to test and give feedback.

gsemet commented 6 years ago

Should be working now on HEAD. I've started a UI that it isn't working, but the REST API does (it has been moved to /api/v1/notify/sonarr. Radarr notification does not work yet

gsemet commented 6 years ago

Please notify me if the refresh still does not work, i'll reopen this ticket

Groofster commented 6 years ago

After some fiddling I found out it only seems to allow the following languages: fra,eng,ger

Trying to start an image with my native language Dutch creates a container in which dopplerr is constantly being (re)started by s6.

gsemet commented 6 years ago

Which error do you have?

Groofster commented 6 years ago

When I create the container with DOPPLERR_LANGUAGES=eng,dut the following is in the 'env' of the container:

root@2c3f94a34b75:/app$ env HOSTNAME=2c3f94a34b75 PUID=1000 TERM=xterm PGID=1000 PYTHONIOENCODING=UTF-8 DOPPLERR_LANGUAGES=eng,dut PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/app PS1=$(whoami)@$(hostname):$(pwd)$ SHLVL=1 HOME=/root DOPPLERRLOGFILE=/config/dopplerr.log =/usr/bin/env

Running the S6 run command manually gives the following error:

exec s6-setuidgid abc dopplerr --no-color --verbose --basedir / --port 8086 --appdir /app --configdir /config --frontend /frontend --logfile /config/dopplerr.log :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'service_identity''. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected. CRITICAL:root:Invalid language: %r CRITICAL:root:List of allowed languages: fra,eng,ger usage: dopplerr [-h] [-p PORT] [-b BASEDIR] [-c CONFIGDIR] [-a APPDIR] [--frontend FRONTENDDIR] [-n] [-v] [--mapping [PATH_MAPPING [PATH_MAPPING ...]]] [-l LANGUAGES] [--logfile LOGFILE] [--addic7ed CREDS_ADDIC7ED CREDS_ADDIC7ED] [--legendastv CREDS_LEGENDASTV CREDS_LEGENDASTV] [--opensubtitles CREDS_OPENSUBTITLES CREDS_OPENSUBTITLES] [--subscenter CREDS_SUBSCENTER CREDS_SUBSCENTER] dopplerr: error: argument -l/--languages: Invalid language

Doing an 'export DOPPLERR_LANGUAGES=eng' and running the previous command again gives me a running and functioning dopplerr container.

gsemet commented 6 years ago

Arg yes I forgot to remove this check ! I’ll update my image ASAP !

gsemet commented 6 years ago

Should be fixed in docker pull stibbons31/dopplerr:0.3.0.a6