Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Docker - OVERRIDE_PASSWORD not working

Ponury Typ

Active Member
Hey, I am moving my ts + sinusbot setup to docker and I am having trouble with the official image. According to docks, I should be able to set up a fixed admin password via environmental value. But for some reason, it's not working. According to docker-compose --verbose composer is passing this value but it seems like docker image doesn't care about it (i can't log in as admin with this password). My docker-compose file (v3.2):

Code:
 sinusbot:
    image: sinusbot/docker
    restart: always
    ports:
      - target: 8087
        published: 20786
        protocol: tcp
        mode: host
    container_name: Sinusbot
    volumes:
      - /opt/sinusbot/scripts:/opt/sinusbot/scripts
      - /opt/sinusbot/data:/opt/sinusbot/data
      - /opt/sinusbot/config:/sinusbot/config
      - /etc/letsencrypt/live/domain:/etc/ssl/certs
      - sinusbot:/opt/sinusbot
    environment:
      OVERRIDE_PASSWORD: 'password'
    networks:
      - TS-network

From composer:

Code:
compose.cli.verbose_proxy.proxy_callable: docker disconnect_container_from_network <- ('0d66d39bd012af541cc7aaf094bbeb1d3604921cf56ed66b1857e969637d3210', 'TS-network')
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.25/containers/create?name=Sinusbot HTTP/1.1" 201 90
compose.cli.verbose_proxy.proxy_callable: docker create_container -> {'Id': 'd336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe',
'Warnings': None}
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('d336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe')
compose.parallel.feed_queue: Pending: set()
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.25/containers/d336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
'Args': [],
'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/opt/sinusbot/entrypoint.sh'],
            'Env': ['OVERRIDE_PASSWORD=password',

Container log:

Code:
Updating youtube-dl...
ERROR: can't find the current version. Please try again later.
youtube-dl was updated
Starting SinusBot...
PID: 9
2018/12/23 13:39:42 [GENERAL/!!!!!!!] WARN   !!!!!!! YOU ARE RUNNING THE BOT AS UID 0 (ROOT) WITHOUT HAVING SET ANOTHER UID. THIS IS A SERIOUS SECURITY VIOLATION !!!!!!!!
___ ___ _  _ _   _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.14.3-0e747fd
(C) 2013-2018 Michael Friese. All rights reserved.

2018/12/23 13:39:42 X [MAIN] Starting up fake x-server...
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin alonemode.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcome.js
2018/12/23 13:39:42 aa75c439          INFO   Loading instances
2018/12/23 13:39:42 aa75c439          INFO   Loading instance://51c290fc-61f5-4a2b-a950-ff4a47ab29be
2018/12/23 13:39:42 aa75c439 51c290fc INFO   Initialization complete
2018/12/23 13:39:42 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
2018/12/23 13:39:42 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
2018/12/23 13:39:42 [GENERAL/YTDL   ] INFO   youtube-dl checking...
2018/12/23 13:39:45 [GENERAL/YTDL   ] INFO   youtube-dl version compatible, support enabled
2018/12/23 13:39:45 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2018/12/23 13:39:46 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2018/12/23 13:39:46 [GENERAL/RADIO  ] INFO   Imported radio stations

Any ideas?
 
Last edited:

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
What does docker logs <container> show after starting the container?
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
And docker exec <container> env?
 

Ponury Typ

Active Member
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=d336b79fd9af
OVERRIDE_PASSWORD=password
HOME=/root
 

Ponury Typ

Active Member
So I pulled the newsest version of the images, but I am still having the same issue.
Code:
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sinusbot/docker     latest              accc7fc9517d        12 hours ago        366MB

Code:
Updating youtube-dl...
ERROR: can't find the current version. Please try again later.
youtube-dl was updated
Starting SinusBot...
PID: 9
2018/12/24 07:11:11 [GENERAL/!!!!!!!] WARN   !!!!!!! YOU ARE RUNNING THE BOT AS UID 0 (ROOT) WITHOUT HAVING SET ANOTHER UID. THIS IS A SERIOUS SECURITY VIOLATION !!!!!!!!
___ ___ _  _ _   _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.14.3-0e747fd
(C) 2013-2018 Michael Friese. All rights reserved.

2018/12/24 07:11:11 X [MAIN] Starting up fake x-server...
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin alonemode.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
2018/12/24 07:11:12 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcome.js
2018/12/24 07:11:13 a696cc6a          INFO   Loading instances
2018/12/24 07:11:13 a696cc6a          INFO   Loading instance://d474f960-b588-49da-b180-2c98394d72b1
2018/12/24 07:11:13 a696cc6a d474f960 INFO   Initialization complete
2018/12/24 07:11:13 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
2018/12/24 07:11:13 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
2018/12/24 07:11:13 [GENERAL/YTDL   ] INFO   youtube-dl checking...
2018/12/24 07:11:15 [GENERAL/YTDL   ] INFO   youtube-dl version compatible, support enabled
2018/12/24 07:11:15 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2018/12/24 07:11:15 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2018/12/24 07:11:16 [GENERAL/RADIO  ] INFO   Imported radio stations
2018/12/24 07:11:27 a696cc6a          INFO   LOGIN [admin] FAIL [IP:<Redacted>]

Code:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=cf81647c0d99
OVERRIDE_PASSWORD=<Redacted>
HOME=/root
 
Last edited:

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Hey @Ponury Typ,

I tried to reproduce the issue, but it works also with docker-compose. My test case:
Code:
# docker-compose.yml
version: '2'
services:
  sinusbot:
    image: sinusbot/docker
    restart: always
    ports:
      - 8087:8087
    volumes:
      - ./scripts:/opt/sinusbot/scripts
      - ./data:/opt/sinusbot/data
    environment:
      OVERRIDE_PASSWORD: 'foobar'

Best regards and merry Christmas!

Max
 
Top