gumerov-amir / TTMediaBot

A bot for music streaming to TeamTalk Servers.
https://ttmediabot.ru
MIT License
58 stars 65 forks source link

problem runnint TTMediaBot on docker #49

Closed nunotfc closed 1 year ago

nunotfc commented 2 years ago

hello, i'm not so experient in docker, just following readme i run: docker build -t ttmediabot . docker run --rm --name ttmb_1 -dv root/TTMediaBot2:/home/ttbot/data ttmediabot the folder TTMediaBot2 has 0 files just copied my config.json. the docker builds, but not runs. just apears some random leters and numbers, but not epaers to run, bot not enter in my server. what i am doing wrong? thanks!

nunotfc commented 2 years ago

i got the error, the error i have in docker is: PermissionError: [Errno 13] Permission denied: '/home/ttbot/data/TTMediaBot.log'

beqabeqa473 commented 2 years ago

Try to change owner of data directory to uid=1000 gid=1000

On 11/30/21, Nuno @.***> wrote:

i got the error, the error i have in docker is: PermissionError: [Errno 13] Permission denied: '/home/ttbot/data/TTMediaBot.log'

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/gumerov-amir/TTMediaBot/issues/49#issuecomment-982351062

-- with best regards Beqa Gozalishvili Tell: +995593454005 Email: @.*** Web: https://gozaltech.org Skype: beqabeqa473 Telegram: https://t.me/gozaltech facebook: https://facebook.com/gozaltech twitter: https://twitter.com/beqabeqa473 Instagram: https://instagram.com/beqa.gozalishvili

nunotfc commented 2 years ago

done, it solved my problem. now, the docker container opens, i see the teamtalk message, the sdk message. but the bot is not in my server the log is: WARNING [2021-11-30 09:02:34,573]: Connection failed in TeamTalkThread file: thread.py line 64 function run ERROR [2021-11-30 09:02:34,573]: Connection error in TeamTalkThread file: thread.py line 80 function run

beqabeqa473 commented 2 years ago

For first question: on a host machine try to do chown -R 1000:1000

For this second: are you trying to login with localhost?

if yes, then you should add --network host to runable command.

On 11/30/21, Nuno @.***> wrote:

done, it solved my problem. now, the docker container opens, i see the teamtalk message, the sdk message. but the bot is not in my server the log is: WARNING [2021-11-30 09:02:34,573]: Connection failed in TeamTalkThread file: thread.py line 64 function run ERROR [2021-11-30 09:02:34,573]: Connection error in TeamTalkThread file: thread.py line 80 function run

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gumerov-amir/TTMediaBot/issues/49#issuecomment-982428072

-- with best regards Beqa Gozalishvili Tell: +995593454005 Email: @.*** Web: https://gozaltech.org Skype: beqabeqa473 Telegram: https://t.me/gozaltech facebook: https://facebook.com/gozaltech twitter: https://twitter.com/beqabeqa473 Instagram: https://instagram.com/beqa.gozalishvili

nunotfc commented 2 years ago

solved all, with net=host command. thanks! how i can run  multiple containers using same configuration file? i have to create  each folders for  each instances i want to run? because i get config file is used to annoter instance.

beqabeqa473 commented 2 years ago

it is not possible to run two instances with the same config file. You should create config per instance.

On 11/30/21, Nuno @.***> wrote:

solved all, with net=host command. thanks!

how i can run  multiple containers using same configuration file? i have to create  each folders for  each instances i want to run? because i get config file is used to annoter instance.

--

You are receiving this because you commented.

Reply to this email directly or view it on GitHub:

https://github.com/gumerov-amir/TTMediaBot/issues/49#issuecomment-982570385

-- with best regards Beqa Gozalishvili Tell: +995593454005 Email: @.*** Web: https://gozaltech.org Skype: beqabeqa473 Telegram: https://t.me/gozaltech facebook: https://facebook.com/gozaltech twitter: https://twitter.com/beqabeqa473 Instagram: https://instagram.com/beqa.gozalishvili