• 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 Music Bot not playing music when using a YT link.

Invicta

Member
Okay first off I'd like to extend my thanks to anyone willing to read this and help out. So here's my issue: I have installed Sinusbot and youtube DL by using the automated installer script. My music bot used to work fine for a year or so but now has stopped working. What I have tried to solve this issue: restart the VPS and restart sinusbot, update to the newest version. I'm not sure what else I can do to solve the issue.

Now what happens is the following. It says it succesfully downloads the song which is does. But then never proceeds to automatically play it. it simply says: "Done PLAYING" even though nothing was ever played!


I tried to put in a YT song by letting it catch a link using the Youtube downloader script (see image below)
This all seemed to work fine before.


Now what happens is the following. It says it succesfully downloads the song which is does. But then never proceeds to automatically play it. it simply says: "Done PLAYING" even though nothing was ever played!
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Debian GNU/Linux 9.12 (stretch)
- Kernel: Linux 4.9.0-11-amd64 x86_64
- Load Average: 2.10 0.79 0.52
- Uptime: 99 days, 2 hours, 4 minutes, 38 seconds
- OS x64 check: OK
- OS Updates: 2 (updates available!)
- OS Missing Packages: None
- OS APT Last Update: 18.04.2020 02:02:18 CEST +02:00:00
- Shell Locale: en_US.UTF-8
- Bot Start Script: not found
- CPU:
    Architecture:          x86_64
    CPU(s):                1
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             1
    Model name:            Intel Core Processor (Haswell, no TSX)
    CPU MHz:               2394.442
    Virtualization:        VT-x
    Hypervisor vendor:     KVM
    Virtualization type:   full
- RAM: 475.56 MB/1.91 GB in use (24%)
- SWAP: 0 B/0 B in use (0%) (SWAP disabled)
- DISK: 3.15 GB/19.66 GB in use (16%)
- Package versions:
   - libglib: 2.50.3-2+deb9u2

BOT INFORMATION
- Status: running (PIDs: 29391 29387, User: sinusbot)
- Webinterface: port locally reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot
- Binary Info: MD5 Hash: 224b687db910b732fe5a7cfec4f6c78e, Perms: 755, User: sinusbot
- Version: 1.0.0-beta.10-202ee4d
- TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: aa483aea105cb62033392b1ce6d317ab
   - TS3 Client: aa483aea105cb62033392b1ce6d317ab
- Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /opt/sinusbot/teamspeak3-client/ts3client_linux_amd64 (Version 3.3.2)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2020.03.24)
- Installed scripts: advertising.js; alonemode.js; Animated_Nickname.js; bookmark.js; command.js; followme.js; norecording.js; rememberChannel.js; sinusbot-commands.js; welcome.js; Youtube_Search.js

BOT TECHNICAL INFORMATION
- File exists:
   - TS3Client/libqxcb-glx-integration.so: no
- LDD output:
    linux-vdso.so.1 (0x00007fff01f3c000)
    libswresample.so.2 => /opt/sinusbot/libswresample.so.2 (0x00007f9999704000)
    libavfilter.so.6 => /opt/sinusbot/libavfilter.so.6 (0x00007f99993ac000)
    libavformat.so.57 => /opt/sinusbot/libavformat.so.57 (0x00007f9998fab000)
    libavcodec.so.57 => /opt/sinusbot/libavcodec.so.57 (0x00007f9998646000)
    libavutil.so.55 => /opt/sinusbot/libavutil.so.55 (0x00007f99983d2000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f99981ce000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9997eca000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9997cad000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f999792b000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9997714000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9997375000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f999715b000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9996f53000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f999991e000)

REACHABILITY CHECKS
- HTTPS check with IPv4 mode: SUCCESS [Connection established to www.sinusbot.com, CODE #200]
- HTTPS check with IPv6 mode: IGNORED [Disabled]
- DNS resolution check: SUCCESS [www.sinusbot.com resolved to 104.28.15.74]
- Update server checks:
    update01.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
    update02.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]
    update03.sinusbot.com -> 104.28.15.74: SUCCESS [CODE #404]

TIME INFORMATION
- Time (local): 18.04.2020 02:25:28 CEST +02:00:00
- Time (remote): <Failed retrieving remote time!>
- Time (difference): n/a secs
- Timezone: Europe/Paris

OTHER INFORMATION
- TeamSpeak3 Version: 3.3.2
- youtube-dl Version: 2020.03.24
- DiagScript Version: 0.8.0
==========================================================

[/SPOILER]
[/SPOILER]



lastly here's the log from the bot!

2020-04-18T02:39:09+02:00 Done playing
2020-04-18T02:39:09+02:00 Playing next from queue:
2020-04-18T02:39:04+02:00 [ Youtube_Search:1000:44] Download & append to queue: gCYcHz2k5x0
2020-04-18T02:39:04+02:00 queued serialized callback[/SPOILER]


2020-04-18T02:39:09+02:00 DOWNLOAD [] gCYcHz2k5x0 NOK
2020-04-18T02:39:09+02:00 Error loading file (/opt/sinusbot/data//store/8aa29764-b99d-486a-bc57-fb7dac5cc17e/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855): Could not open file!
2020-04-18T02:39:09+02:00 Downloading (single) 3M with codec opus from youtube
2020-04-18T02:39:09+02:00 Probing https://r3---sn-25glenez.googlevideo.com/videoplayback?expire=1587191948&ei=K0yaXo_nPNGfxN8Pz-6m2Ag&ip=51.255.162.212&id=o-APaon84l3u1_Q0-rScPzpGOBM5ZoC1O8VIy2mvZDcnkq&itag=251&source=youtube&requiressl=yes&mh=tL&mm=31%2C26&mn=sn-25glenez%2Csn-4g5e6nsr&ms=au%2Conr&mv=m&mvi=2&pl=21&initcwndbps=612500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=3100314&dur=191.581&lmt=1584660885419055&mt=1587170252&fvip=3&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALrAebAwRQIgJo3mlxMmm4Uug1C_9eK3hZOOmITQVVf6xwQDeaulwqoCIQC-CwwrEjL2QDctpIGW8OGgblCqaeo1NuhBvKiwEzEkXQ%3D%3D&sig=AJpPlLswRQIgL47rc5tmJifBCtPcpGRAoHD4-tU7RH9f=MWjLU9ZXXgCIQDszSZYs==V_JnGPKyod5Cj_g0KPmoQ80IOg6cfLnf1&ratebypass=yes for HTTP range support
2020-04-18T02:39:09+02:00 Downloading thumbnail
2020-04-18T02:39:09+02:00 Downloading (single) 3M with codec opus from youtube
2020-04-18T02:39:09+02:00 Probing https://r3---sn-25ge7nsd.googlevideo.com/videoplayback?expire=1587191948&ei=LEyaXvQjuI3E3w_OgI3ADg&ip=51.255.162.212&id=o-AJeXzAZpJrCNWAaPbFOVer7Vobumi3OJdPxSZPaooEai&itag=251&source=youtube&requiressl=yes&mh=tL&mm=31%2C29&mn=sn-25ge7nsd%2Csn-25glenez&ms=au%2Crdu&mv=m&mvi=2&pl=21&initcwndbps=617500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=3100314&dur=191.581&lmt=1584660885419055&mt=1587170252&fvip=3&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALrAebAwRQIgZh4KFsf8EJ78o3FUxlkvfL0iW0OmvXZr6BOg93gsuJQCIQDjFPYqDmH92MrImIMD1086s7go-B0TTj4KJBb8QwC4tg%3D%3D&sig=AJpPlLswRgIhAPHKv7Yushx9lmPFU03QCIVFn8orijVZ=a-dv-iCvEH-AiESgD66lII59cJ6XIBVIfnD7iaUcABXvFq_s6O5LGBK&ratebypass=yes for HTTP range support
2020-04-18T02:39:09+02:00 Downloading thumbnail
2020-04-18T02:38:51+02:00 Downloading (single) 3M with codec opus from youtube
2020-04-18T02:38:51+02:00 Probing https://r3---sn-25ge7nsd.googlevideo.com/videoplayback?expire=1587191930&ei=GkyaXve3MNOvmLAPzISnmAs&ip=51.255.162.212&id=o-AB9qjkWRS_kO8ynsNVD906j5DvrWV-4Nq9M7-ifIsRux&itag=251&source=youtube&requiressl=yes&mh=tL&mm=31%2C29&mn=sn-25ge7nsd%2Csn-25glenez&ms=au%2Crdu&mv=m&mvi=2&pl=21&initcwndbps=617500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=3100314&dur=191.581&lmt=1584660885419055&mt=1587170252&fvip=3&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALrAebAwRgIhAOzNNfoDXJMSi6QD2hHanV0sb2WO9jPPArrX46VJRryxAiEArL7bznXioCIvyUb2M4XvZrlgiVkD4hBG1ZY5OrN0t1g%3D&sig=AJpPlLswRgIhAJely_KnoUkOpArMN7JtY1ywZM15HV0F=tSRgz_ObJa6AiEHpEI5zUUyi0EHfTDY8crelyHmIIyO-youbPGF5Vba&ratebypass=yes for HTTP range support
2020-04-18T02:38:51+02:00 Downloading thumbnail
2020-04-18T02:38:51+02:00 DOWNLOAD [] gCYcHz2k5x0 NOK
2020-04-18T02:38:51+02:00 Error loading file (/opt/sinusbot/data//store/8aa29764-b99d-486a-bc57-fb7dac5cc17e/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855): Could not open file!
2020-04-18T02:38:51+02:00 Downloading (single) 3M with codec opus from youtube
 
Last edited:

zumi

Active Member
Hello!

I have the exact same problem as you. The issue started today or yesterday. Not sure..
The bot have worked for me ages too
 

zumi

Active Member
Did many times the cache clearing and restarting. Does not help. Still same issue. Also tried the cli yt-command and it worked ok:
Code:
[download] The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.webm has already been downloaded
[download] 100% of 3.19MiB
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.webm'
[ffmpeg] Destination: The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.opus
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.webm' -vn -acodec copy 'file:The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.opus'
Deleting original file The Weeknd - Blinding Lights (Official Audio)-fHI8X4OXluQ.webm (pass -k to keep)
 

Invicta

Member
Yea I have done the same, today the song did play when spamming the link 3 times but it took like 2 minutes to play
Edit: When I restart the bot it works on the first try but then any song after fails
 
Last edited:

Invicta

Member
Hello!

I have the exact same problem as you. The issue started today or yesterday. Not sure..
The bot have worked for me ages too
Did you manage to find a solution or should I just reset my VPS and try everything again?
 

zumi

Active Member
I figured out that it has to be something with youtube.
First I tried with youtube videos where the lengt is like under 5 seconds. It worked every time.
If I played music from for example a VEVO channel it won't play. If I play the same song but some crappy remix it works.

I think YouTube made some changes to copyright rules and blocked the yt-tool
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
@zumi and everyone else:

As mentioned here before:
Looks like other people are having trouble with youtube-dl aswell recently. (https://github.com/ytdl-org/youtube-dl/issues/24713, https://github.com/ytdl-org/youtube-dl/issues/24736, https://github.com/ytdl-org/youtube-dl/issues/23638, ...)

Try removing the signature cache:
Bash:
su sinusbot
youtube-dl --rm-cache-dir
and then try again.

If that doesn't work: Try manually downloading something from the CLI: youtube-dl -v -i --no-playlist --no-call-home -x https://www.youtube.com/watch?v=fHI8X4OXluQ

Did many times the cache clearing and restarting. Does not help. Still same issue. Also tried the cli yt-command and it worked ok:
Sorry, I didn't see that post.
I'm guessing that you didn't clear the cache with the correct user? Make sure that you do it as the sinusbot user.
Clearing the cache definitely solved it for me and everyone else with this problem so far.

Fixed the issue by reinstalling my VPS with Debian 10 instead of 9
This a very extreme way to clear the signature cache 😆
The OS doesn't make a difference, Debian 9 is also fine.
 
Last edited:

zumi

Active Member
Hello!

What I've noticed so far is the following:
youtube-dl works ok if the cache is cleared every hour. I made a automated script to clean it every hour so it will play music.
The youtube-dl works also without clearing the cache, BUT it will not play licensed music for some reason. If you clear the cache then it works for few hours.
If I don't clear the cache let's say for a month, the youtube-dl works well with every video that has not been licensed by YouTube or some record company.
What I mean by licensed videos is music videos for example where in the video description you click "more info" and there is the license from what record company YouTube got the permission for the video.
It's strange how the cache clearing breaks the "copyright protection" for a little time
 
Top