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

Solved Slow !yt - takes up a lot of time to start playing

Status
Not open for further replies.

shemin

Member
  • used ts server version: 3.0.13.6
  • used sinusbot version: latest
  • used operating system: Linux ubuntu-16.04-x86_64
  • hardware specs (VPS, 0.5 core, 512 MB RAM)
  • your config.ini:
TS3Path = "/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/opt/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "kOwGJa9sLpBXp99Kl+SVhkccZ6hN/ZLCjMUZcO7lvhk="
IsProxied = false
DenyStreamURLs = []
Pragma = 0

[YoutubeDL]
BufferSize = 524288
MaxDownloadSize = 419430400
MaxDownloadRate = 104857600
CacheStreamed = false

[TS3]
AvatarMaxWidth = 0
AvatarMaxHeight = 0
AllowGIF = false

[StreamRewrites]

[Scripts]
AllowReload = false
EnableTimer = false

[Themes]
Default = ""

[SpeechRecognition]
Enable = false

[FFmpeg]
UserAgent = "SinusBot (0.9.16-10f0fad)"

[DAV]
Enable = false

[XServer]
Delay = 0
Debug = false


Problem Description
So, I was using sinusbot a week ago with no problems. Now, !yt command it's taking about 2-3 minutes to download 3MB. Despite being a low capacity VPS, I'm using just to host ts3 for me and couple friends. I already updated youtubedl (Successfully installed youtube-dl-2017.4.17) and sinusbot through installer script. Radio stations working fast and flawless.

I will leave some statistics from VPS:
Avg CPU usage: 20%
Avg memory usage: 250MB - 40MB swap

Instance log:
2017-04-23T01:27:21-03:00 Could not send description command: HTTP returned an error: Timeout while waiting for callback; Code: 500; Message: Timeout while waiting for callback
2017-04-23T01:27:11-03:00 Awaiting Callback (1): PR:{7cfa32f0-9212-43fe-914a-8d449093e7e5}:36/DESC
2017-04-23T01:26:14-03:00 Found Callback PR:{7cfa32f0-9212-43fe-914a-8d449093e7e5}:35/DESC
2017-04-23T01:26:14-03:00 Awaiting Callback (1): PR:{7cfa32f0-9212-43fe-914a-8d449093e7e5}:35/DESC
2017-04-23T01:26:07-03:00 Storing configuration.
2017-04-23T01:25:46-03:00 PRIVATE-CHAT [▄ █ ▌DJ ▌▄ █] Downloading
2017-04-23T01:25:46-03:00 CHAT 1 [renato @ Renato] < !yt
> / OK

bot log:

2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 100.0% of 3.62MiB at 9.66MiB/s ETA 00:00
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 55.2% of 3.62MiB at 6.31MiB/s ETA 00:00
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 27.6% of 3.62MiB at 3.78MiB/s ETA 00:00
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 13.8% of 3.62MiB at 2.25MiB/s ETA 00:01
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 6.9% of 3.62MiB at 1.37MiB/s ETA 00:02
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 3.4% of 3.62MiB at 942.50KiB/s ETA 00:03
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 1.7% of 3.62MiB at 682.53KiB/s ETA 00:05
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 0.8% of 3.62MiB at 649.67KiB/s ETA 00:05
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 0.4% of 3.62MiB at 3.94MiB/s ETA 00:00
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 0.2% of 3.62MiB at 2.03MiB/s ETA 00:01
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 0.1% of 3.62MiB at 1.25MiB/s ETA 00:02
2017-04-23T01:28:59-03:00 youtube-dl[out] [download] 0.0% of 3.62MiB at 720.42KiB/s ETA 00:05
2017-04-23T01:28:59-03:00 youtube-dl[out] [youtube] 0yW7w8F2TVA: Downloading webpage [youtube] 0yW7w8F2TVA: Downloading video info webpage [youtube] 0yW7w8F2TVA: Extracting video information [info] Writing video description metadata as JSON to: /opt/sinusbot/data/tmp/6cd8c3da1ca49899e15593baa4a82fc8.info.json [youtube] 0yW7w8F2TVA: Downloading thumbnail ... [youtube] 0yW7w8F2TVA: Writing thumbnail to: /opt/sinusbot/data/tmp/6cd8c3da1ca49899e15593baa4a82fc8.jpg [download] Destination: /opt/sinusbot/data/tmp/6cd8c3da1ca49899e15593baa4a82fc8
2017-04-23T01:25:46-03:00 Downloading via ytdl (Speed: %d bps, Size: %d b): %s => %s104857600 419430400https://www.youtube.com/watch?v=0yW7w8F2TVA/opt/sinusbot/data/tmp/6cd8c3da1ca49899e15593baa4a82fc8
 

shemin

Member
solved

If you have the same problem just run:
echo '--force-ipv4' > /etc/youtube-dl.conf
and restart sinusbot

working flawless again.
 
Status
Not open for further replies.
Top