• 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.

Freezing stream and lagging

Status
Not open for further replies.

Alexey

Member
Hello,

I've got interesting situation - was listening to radio record via bot. After rebooring bot he connects again and starts playing music but with lags (robo-voice). When I send !stop in chat robo-voice ends and music is playing in normal (but it shoudnt play - because i send stop). After i want to play some music track - radio again start robo-voice. I cant switch music or play another stream or radio

SinusBot 0.9.9-f25ac00
VPS
Ubuntu 15.04
Chrome 46


root@vps208888:~# /etc/init.d/sinusbot console
Open console on sinusbot...

___ ___ _ _ _ _ ___ ___ ___ _____ BETA
/ __|_ _| \| | | | / __| _ )/ _ \_ _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.9.9-f25ac00
(C) 2013-2015 Michael Friese. All rights reserved.

2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin advertising.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin aloneMode.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin badchan.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin bookmark.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin covatar.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin dev.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin followme.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin idle.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin metadata.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin norecording.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin showcase.js
2015/11/13 17:18:13 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin welcometext.js
2015/11/13 17:18:13 X [MAIN] Starting up fake x-server...
2015/11/13 17:18:13 ca2f408b INFO Initializing bot://ca2f408b-85d7-4893-9cf7-0fda95c42011
2015/11/13 17:18:13 ca2f408b INFO Loading instances
2015/11/13 17:18:13 ca2f408b INFO Loading instance://00055e54-c30d-4bed-949a-5450188d4e44
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Loading script covatar
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Loading script advertising
2015/11/13 17:18:13 ca2f408b 00055e54 PLUGIN [advertising] {"ads":"Запуск Beta-теста музыкального бота от команды Voice-Server совсем скоро. Ожидайте анонса!","interval":200,"order":0,"type":0}
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Loading script aloneMode
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Loading script welcometext
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Initialization complete
2015/11/13 17:18:13 ca2f408b 00055e54 INFO Last track was , will auto-play soon
2015/11/13 17:18:13 ca2f408b INFO Loading instance://886371bb-4552-478a-b887-77554465d9f7
2015/11/13 17:18:13 ca2f408b 886371bb INFO Loading script aloneMode
2015/11/13 17:18:13 ca2f408b 886371bb INFO Loading script metadata
2015/11/13 17:18:13 ca2f408b 886371bb INFO Loading script advertising
2015/11/13 17:18:13 ca2f408b 886371bb PLUGIN [advertising] {"ads":"Run of Beta-test this Music Bot from team Voice-Server soon. Expect the announcement!","interval":200,"order":0,"type":0}
2015/11/13 17:18:13 ca2f408b 886371bb INFO Loading script welcometext
2015/11/13 17:18:13 ca2f408b 886371bb INFO Initialization complete
2015/11/13 17:18:13 [GENERAL/FFMPEG ] INFO FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/11/13 17:18:13 [GENERAL/FFMPEG ] INFO FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/11/13 17:18:13 [GENERAL/YTDL ] INFO youtube-dl checking...
2015/11/13 17:18:14 ca2f408b 00055e54 INFO Auto-Playing last track
2015/11/13 17:18:14 [GENERAL/YTDL ] INFO youtube-dl version compatible, support enabled
2015/11/13 17:18:14 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2015/11/13 17:18:14 [GENERAL/RADIO ] INFO RadioStation data loaded
2015/11/13 17:18:14 [GENERAL/RADIO ] INFO Imported radio stations
2015/11/13 17:18:14 ca2f408b 00055e54 DEBUG New channel


2015/11/13 17:18:42 ca2f408b 00055e54 DEBUG Storing configuration.
2015/11/13 17:18:48 X [MAIN] New connection
2015/11/13 17:18:49 X [MAIN] New connection
2015/11/13 17:19:07 X [MAIN] New connection
2015/11/13 17:19:07 X [MAIN] New connection

TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
LogLevel = 10
EnableProfiler = false
EnableDebugConsole = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
MTU = 1500
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "dcqBFc5cQ0aICRgwLHpvRqHrCQVH4mfYHg0CkQYoSRU="
DisableLocalXServer = false
DebugLocalXServer = false
IsProxied = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"

[StreamRewrites]

[Scripts]
AllowReload = false

DMofKKi.png
 

Alexey

Member
Find another way to resolve this.
I dont know how , but i made to play another song, restart daemon - he continues playing song and not repsonding on commands to him, but after he plays song it become availiale to react on commands.
Now i'm searching how to reproduce BUG.
 

Alexey

Member
Can you check reproduce of bug?

1. Run 2 instances.
2. Run 2 radio translations on them.
3. Reboot server without stopping daemon and bots.
4. Wait for run of sinusbot if enabled in cron if no - run it manually.
5. Run 2 instances via web - they will come to server and starts playback of radio with lags
6. Try to send them !stop - music stops lagging but radio playback continues
7. Try to play another audiofail - lagging continues.

I'm updated to 0.9.9-4965f0f and made this:

Run 2 instances :

UAXFELg.png

with this options:

SKtRZSE.png
cdpvjRN.png

Settings of scripts of both nodes:

XnRTmsK.png

Qku2QoN.png
Config.ini:
Code:
ListenPort = 8087
ListenHost = "0.0.0.0"
TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
Loglevel = 10
Before reboot:
Code:
Logs of sinusbot -  http://pastebin.com/CmmA99NB
After force reboot without stopping bots and processes and manual start of bots via web:
Code:
Logs - http://pastebin.com/kp336HS9
Log after manual restart via init.d script (/etc/init.d/sinusbot restart) and starting bots manually:
Code:
Logs - http://pastebin.com/xHVsJJzn
 

flyth

is reticulating splines
Staff member
Developer
Contributor
When you restart manually, everything works fine again?
 

Alexey

Member
not every time. one time i rebooted, send !stop command, manually stop bots via web, and after that restart it with init.d - after all starts via web - it works normally without lags.
 
Status
Not open for further replies.
Top