GithubHelp home page GithubHelp logo

sinusbot / docker Goto Github PK

View Code? Open in Web Editor NEW
71.0 11.0 30.0 95 KB

🐳 Official Docker image of the SinusBot for TeamSpeak 3 and Discord.

Home Page: https://sinusbot.github.io/docker

License: MIT License

Shell 82.93% Dockerfile 17.07%
sinusbot docker discord musicbot teamspeak container sinusbot-docker-image quay docker-container hacktoberfest

docker's People

Contributors

eliteschwein avatar flyth avatar irgendwr avatar mxschmitt avatar tribut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

Problems running as non root

When i try to run the container as a non-root user like stated in the README i ran into the problem that the entry script can't create the symlink for the config (permission denied) and sinusbot cant start.

Running as root

What is the reason for running the Sinusbot as root? This is the official docker image of it, isn't it? Aren't you discouraging people to run it as root? Please fix this.

Cannot find the config.ini file

Hello,

I've installed the docker version of sinusbot on my Qnap TS- 453 in caontainer station.
but i can't find the config.ini file on the whole nas...

do you have any clue for me?

TeamSpeak Client missing in :latest

I updated Sinusbot recently (2018-12-21). The "latest" image doesn't contain a TeamSpeak client!
Was this an intentional change or is this a build issue?

Tag docker images with version

It would be great, if the docker images could get tagged with a version, something like sinusbot/docker:1.0.0. This has several benefits.

  • Consistent version of the bot between different servers

  • Maybe a bug gets introduced in a newer version, then an older version can be choosen

  • Docker best practice

    When building images, always tag them with useful tags which codify version information, intended destination (prod or test, for instance), stability, or other information that is useful when deploying the application in different environments. Do not rely on the automatically-created latest tag.

    https://docs.docker.com/develop/dev-best-practices/

Bot is not connecting to teamspeak3 server

Hi. I'm using the latest version of teamspeak server and the latest version of sinusbot. Both teamspeak server and sinusbot are running in docker. The sinusbot cannot connect to the teamspeak server. This is weird because a while ago I set the sinusbot up just the way I did now and it worked fine. Now the bot can't connect anymore. I did some research and found that the only possible reason is that the teamspeak client used in ur docker image is to old? Would it be possible to update your docker image to use the latest teamspeak client?

can start my server anymore

i've a docker version installed on my qnap ts453, it worked okay until few day ago
i got this message i try to re-install the whole app and does the same :/
this i what i get into the console

youtube-dl is up-to-date (2019.04.01)
youtube-dl updated
Starting SinusBot...
This version has expired. Please download a newer version from the official SinusBot website and upgrade.

sinusbot with Synology Docker Container

Hello, I have the problem or concern that I cannot run the docker container on my DSM because it is delivered with an incorrect version.

2024/03/18 11:25:00 stdout You may stop receiving updates on this version at any time! Please update to Python 3.8 or above
2024/03/18 11:25:00 stdout �[0;31mDeprecated Feature:�[0m Support for Python version 3.7 has been deprecated. See https://github.com/yt-dlp/yt-dlp/issues/7803 for details.

I get this message even though the following versions are installed.
Python 3.9 ( 3.9.14-0010) and 2 (2.7.18-1004 )
but it still tells me that I have the wrong version because I have installed a higher version, it should actually work for you but it just doesn't work but nothing happens to this message anymore.

I have DSM 7.2.1 installed on my system with the following applications
web station
Container Manager
and the two above

but the Docker container still cannot be started under DSM. After a certain time there is a warning in the status but no error message in the logs

!yt doesn't work

Hello, I'm trying to play a youtube video and I get this in the console err from ytdl: exit status 1
2019/03/08 15:34:34 cc7fbda3 7868d07b INFO PRIVATE-CHAT [RealRunSpace]] yt [URL]https://www.youtube.com/watch?v=E8VwtjhMFJ8[/URL] 2019/03/08 15:34:34 cc7fbda3 7868d07b INFO CHAT 1 [rrs @ RealRunSpace] < yt [URL]https://www.youtube.com/watch?v=E8VwtjhMFJ8[/URL] > / OK 2019/03/08 15:34:37 err from ytdl: exit status 1
I have a firewall installed, but I don't know where to see logs of ytdl, so I cannot debug it. I'm using centos7 with CWP

Update Dockerhub Image frequently

Hi,
this Docker image in Dockerhub with the "latest" tag is now over 3 months old.

Please run your build process/pipeline regularly even without new commits in this repo to get regular security updates of the base images.

Thanks!

Fix graceful shutdown

Currently the Bot won't detect, if the container will be shut down by e.g.:

docker stop sinusbot

it will wait 10 seconds for the timeout and then the bot will be killed.

Not sure if this is a SinusBot or Dockerfile issue.

Currently: The Teamspeak 3 clients timeout
Expected: The leave the teamspeak server and stop gracefully

@startup setpriv: libcap-ng is too old for "all" caps

Hello everyone,
The docker container Sinusbot/docker:lastes does not start. It is only shown in the log "setpriv: libcap-ng is too old for "all" caps".

Extract from the log:

Updating youtube-dl...
youtube-dl is up-to-date (2020.09.20)
User ID: 0
Change file owner...
Drop privileges...
Starting SinusBot...
PID: 11
setpriv: libcap-ng is too old for "all" caps

To my system:
Opensuse Thumbleweed (up to date)
What can I do to get it running again?

Error: youtube-dl not found

Hello, I am unable to use YTDL/YTDLP because of the following error:

"fork/exec /usr/local/bin/youtube-dl: no such file or directory youtube-dl not found"

Linux 5.4.114-1-pve x86_64 GNU/Linux
Wed 14 Jun 2023 01:36:01 PM UTC
Updating yt-dlp...
Available version: [email protected], Current version: [email protected]
Current Build Hash: 91cad9f121c1f6f0a81b747415c46ecba0ff331ed38cc6433040b4ac7b6e15ca
yt-dlp is up to date ([email protected])
2023.03.04
User ID: 1000
Change file owner...
Group ID: 1000
Change file group...
Drop privileges...
Clearing yt-dlp cache...
Removing cache dir /root/.cache/yt-dlp ..
Starting SinusBot...
PID: 16
 ___ ___ _  _ _   _ ___ ___  ___ _____
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |  
|___/___|_|\_|\___/|___/___/\___/ |_|  
Version: 1.0.2
(C) 2013-2022 Michael Friese. All rights reserved.
2023/06/14 13:36:03 94e408f1          INFO   Loading instances
2023/06/14 13:36:03 94e408f1          INFO   Loading instance://b6b766aa-d1b5-4bc9-a281-6a94d6eaaa00
2023/06/14 13:36:03 94e408f1 b6b766aa INFO   script command loaded
2023/06/14 13:36:03 94e408f1 b6b766aa INFO   Initialization complete
2023/06/14 13:36:03 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3876196; license: LGPL version 2.1 or later; 634 codecs
2023/06/14 13:36:03 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3873636; license: LGPL version 2.1 or later; 334 formats
2023/06/14 13:36:03 [GENERAL/YTDL   ] INFO   youtube-dl checking...
2023/06/14 13:36:03 fork/exec /usr/local/bin/youtube-dl: no such file or directory youtube-dl not found
2023/06/14 13:36:03 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2023/06/14 13:36:03 94e408f1 b6b766aa PLUGIN [                :113:12] Loaded SinusBot Commands v1.1.2 by Jonas Bögle (@irgendwr).
2023/06/14 13:36:03 94e408f1 b6b766aa PLUGIN [                :114:12] SinusBot v1.0.2 on linux
2023/06/14 13:36:03 94e408f1 b6b766aa INFO   script sinusbot-commands loaded
2023/06/14 13:36:03 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2023/06/14 13:36:03 [GENERAL/RADIO  ] INFO   Imported radio stations

I have deleted the image and docker volume and then reinstalled it again but to no avail.

youtube-dl is very slow

It seems to me, that the download speed of audio from youtube is very slow.
I'm not sure if there's a fix for that, but I thought it was not that slow in the beginning.

public ip

Greetings,

when i press sinubot logo top left it forward to my public ip instead of .ddns.net adress.
anyway to change this?

yt-dlp is slow

@mxschmitt
It is faster when using the yt-dlp command in a container.
image

However, when I download the same video from sinusbot (web ui, etc.), it is about 30 kb/s. so it's slow.
image

It is set up in such a way that it is not restricted.

[YoutubeDL]
  BufferSize = 52428800000000
  MaxDownloadSize = 41943040000
  MaxDownloadRate = 104857600000
  MaxSimultaneousChunkDownloads = 10
  CacheStreamed = true
  TimeoutSingleDownloader = 0
  TimeoutMultiDownloader = 0
  ChunkSize = 314572800

Personal Theme problems

Greetings,

First of all thanks for all the hard work,
I was wondering why my personal theme changes back to default.

How do i save it so it will boot with the selected theme,
when i logout now and refresh the befault theme boots up and not the theme i set.

Reduce image size

Currently the image size is 467mb, @Xuxe do you have any ideas how we can reduce it?

Other unofficial docker images for the SinusBot are only an half of that size: 260mb.
Thanks :)

Latest image won't start

Hello, I have been trying to update from my beta16 to the latest 1.0.2 docker image. However it keeps staying on starting and then it does not work and goes to unhealthy, also tried on other machines but no luck. Any ideas?

Ldap auth support?

Hey guys!
Firstly I must thank you for this realy nice music bot with a realy nice web gui!
So let's get back to my question: Is Ldap support planed? or/and can it be implementet in near future?

I have a global ldap server for my staff to login to our systems.
This makes the administration effort extremely easy for me and my admins.

Implement new Speech Synthesis

Some draft for the implementation of the Speech Synthesis would be:

New docker registry tags:

  • tts (ts3 with tts)
  • discord-tts

These should contain the correct config.ini handling and the ChromiumOS tts files.

Discord reponse issue

Hi there,

since you dont have an official project for the SinusBot and I'm using the docker-version I thought I'd open it here.
So I was already running a TS3 instance on the bot, and everything is going fine (with control via TS3 etc). Now I added a Discord one to try some things out. Set everything up, added the bot to a server etc.
It even reacts to commands written in any chat. BUT even though it reacts (performs e.g. !stop) it wont respond. E.g. when using !playing, nothing is written in that channel by the bot, but when PM'ing the bot, it will respond.
I've checked the permissions and the bot should be able to send messages.
Reconnecting and restarting didnt fix it.

Im glad to provide more info if needed :) Thanks in advance

TODOs

  • Add how to get the default password to the README
  • Add how to reset the password to the README
  • Auto update youtube-dl at the startup of the container maybe?
  • Document on the master branch that also a discord only image exists
  • Remove line breaks in the README.md between the badges (fix styling on hub.docker.com)
  • Remove README.md in the discord branch and refer to the one in the master branch
  • Reuse the install.sh in the discord branch of the master branch (Dockerfile command ADD also allowed an URL afaik)
  • Link to the new docker store page: https://store.docker.com/community/images/sinusbot/docker
  • Use absolut URLs for the docker-compose files

SinusBot not starting

I started the sinusbot container using the following docker compose file:

version: "3.7"
services:
  sinusbot:
    image: sinusbot/docker
    restart: unless-stopped
    ports:
      - 8087:8087
    volumes:
      - ./scripts:/opt/sinusbot/scripts
      - ./data:/opt/sinusbot/data

and the standard docker-compose up command

all I get in the logs is the following:

sinusbot_1  | Updating youtube-dl...
sinusbot_1  | youtube-dl is up-to-date (2020.09.14)
sinusbot_1  | User ID: 0
sinusbot_1  | Change file owner...
sinusbot_1  | Drop privileges...
sinusbot_1  | Starting SinusBot...
sinusbot_1  | PID: 11
sinusbot_1  | setpriv: libcap-ng is too old for "all" caps

it stops there

the instance is located behind an nginx reverse proxy using the config file from the documentation

if I try to connect to it, I only get an application/octet-stream answer, instead of the bot page

I even tried the tag 1.0.0-beta.10-202ee4d, same issue there

doesn't generate new bot instance

Hello,

if I am running:
docker run -d --name sinusbot --restart=always -p 8087:8087 -v scripts:/opt/sinusbot/scripts -v data:/opt/sinusbot/data sinusbot/docker

I don't get this info:

[...]
-------------------------------------------------------------------------------
Generating new bot instance with account 'admin' and password 'YOUR_PASSWORD_HERE'
PLEASE MAKE SURE TO CHANGE THE PASSWORD DIRECTLY AFTER YOUR FIRST LOGIN!!!
-------------------------------------------------------------------------------
[...]

and if I do it with the override env I can't login in either with admin and my env password.

Here is the log from a new generated container:

6/29/2018 4:55:57 PM Copied original scripts to the volume
6/29/2018 4:55:57 PM Updating youtube-dl...
6/29/2018 4:55:59 PM Updating to version 2018.06.25 ...
6/29/2018 4:56:03 PM Updated youtube-dl. Restart youtube-dl to use the new version.
6/29/2018 4:56:03 PM youtube-dl updated
6/29/2018 4:56:03 PM Starting SinusBot...
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/!!!!!!!] WARN   !!!!!!! YOU ARE RUNNING THE BOT AS UID 0 (ROOT) WITHOUT HAVING SET ANOTHER UID. THIS IS A SERIOUS SECURITY VIOLATION !!!!!!!! 
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 X [MAIN] Starting up fake x-server...
6/29/2018 4:56:03 PM  ___ ___ _  _ _   _ ___ ___  ___ _____  BETA
6/29/2018 4:56:03 PM / __|_ _| \| | | | / __| _ )/ _ \_   _|
6/29/2018 4:56:03 PM \__ \| || .` | |_| \__ \ _ \ (_) || |
6/29/2018 4:56:03 PM |___/___|_|\_|\___/|___/___/\___/ |_|
6/29/2018 4:56:03 PM 
6/29/2018 4:56:03 PM Version: 0.13.37-f7e9ece
6/29/2018 4:56:03 PM (C) 2013-2017 Michael Friese. All rights reserved.
6/29/2018 4:56:03 PM 
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin alonemode.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcome.js
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 2892373d          INFO   Loading instances
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 2892373d          INFO   Loading instance://14c9410e-1e44-400d-a32f-c7849eb4a04e
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 2892373d 14c9410e INFO   Initialization complete
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
6/29/2018 4:56:03 PM 2018/06/29 14:56:03 [GENERAL/YTDL   ] INFO   youtube-dl checking...
6/29/2018 4:56:04 PM 2018/06/29 14:56:04 [GENERAL/YTDL   ] INFO   youtube-dl version compatible, support enabled
6/29/2018 4:56:04 PM 2018/06/29 14:56:04 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
6/29/2018 4:56:05 PM 2018/06/29 14:56:05 [GENERAL/RADIO  ] INFO   RadioStation data loaded
6/29/2018 4:56:05 PM 2018/06/29 14:56:05 [GENERAL/RADIO  ] INFO   Imported radio stations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.