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

TeamSpeak | Could not playback the selected file / stream.

antipen44

New Member
Hello!

Use Ubuntu 18.04.
Bot in TeamSpeak doesn't want to play music from YouTube playlist.
https://imgur.com/ivoCwfc - error
The day before, everything worked.


Instance Log:

Code:
2020-08-20T23:06:00+05:00 New connection status 4; Error 0
2020-08-20T23:06:00+05:00 TS |INFO |ClientUI |1 |Connect status: Connection established
2020-08-20T23:06:00+05:00 New connection status 3; Error 0
2020-08-20T23:06:00+05:00 TS |INFO |ClientUI |1 |Connect status: Establishing connection
2020-08-20T23:06:00+05:00 New connection status 2; Error 0
2020-08-20T23:06:00+05:00 TS |INFO |ClientUI |1 |Connect status: Connected
2020-08-20T23:05:59+05:00 TS |INFO | | |Statistics report: User has not yet confirmed participation
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI | |Last update check was: сб янв. 1 00:00:01 2022
2020-08-20T23:05:59+05:00 TS |INFO |Bookmarks | |Collecting autoconnect bookmarks
2020-08-20T23:05:59+05:00 TS |DEVELOP |PktHandler |1 |Puzzle solve time: 2
2020-08-20T23:05:59+05:00 New connection status 1; Error 0
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI |1 |Connect status: Connecting
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI |1 |Initiating connection: 46.174.52.94:9987
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI |1 |Connect to server: 46.174.52.94
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI | |ts3server: 46.174.52.94?port=9987&nickname=MusicBot%20%7C%20H4RDB4SS&password=&cid=87438&channelpassword=
2020-08-20T23:05:59+05:00 TS |INFO | | |successfully downloaded revocation list for myteamspeak id
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI | |Using configuration location: /opt/sinusbot/data/ts3/70f90cd6-4fd4-42ea-b8fd-b338ed8314ab/46578a5e-9c41-4db0-9ad7-d197e8f59e4c/settings.db
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI | |Qt version: 5.12.1
2020-08-20T23:05:59+05:00 TS |INFO |ClientUI | |Failed to init text to speech engine
2020-08-20T23:05:59+05:00 TS |INFO | | |*** Time [INIT]: 239
2020-08-20T23:05:59+05:00 TS |INFO | | |*** Time [MAINWINDOW]: 238
2020-08-20T23:05:59+05:00 TS |INFO | | |successfully downloaded revocation list for accounting
2020-08-20T23:05:59+05:00 TS |INFO |Query | |listening on 127.0.0.1:25639
2020-08-20T23:05:59+05:00 TS |INFO |Plugins | |Loading plugin: libclientquery_plugin_linux_amd64.so
2020-08-20T23:05:59+05:00 TS |INFO |Plugins | |Loading plugin: libsoundbot_plugin.so
2020-08-20T23:05:59+05:00 TS |INFO |Addons | |Checking for addon updates...
2020-08-20T23:05:58+05:00 TS |ERROR |RevocationListCache| |Failed to import revocation list from cache
2020-08-20T23:05:58+05:00 TS |INFO |ClientUI | |Unable to create an Open GL context.
2020-08-20T23:05:58+05:00 TS |ERROR |SoundBckndIntf| |/opt/sinusbot/TeamSpeak3-Client-linux_amd64/soundbackends/libpulseaudio_linux_amd64.so error: INIT_PA_IMPL
2020-08-20T23:05:58+05:00 TS |ERROR |PulseAudio | |pa_context_connect failed -
2020-08-20T23:05:58+05:00 TS |ERROR |PulseAudio | |failed to connect to pulse audio server -
2020-08-20T23:05:58+05:00 TS |INFO | | |SystemInformation: Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 Binary: 64bit
2020-08-20T23:05:58+05:00 TS |INFO | | |TeamSpeak Client 3.5.3 (2020-05-06 09:07:50)
2020-08-20T23:05:58+05:00 Starting instance ts3server://46.174.52.94?port=9987&nickname=MusicBot%20%7C%20H4RDB4SS&password=&cid=87438&channelpassword=
2020-08-20T23:05:58+05:00 Could not create Notifications-Tabletable Notifications already exists
2020-08-20T23:05:58+05:00 Could not create WhisperReceive-Tabletable WhisperReceive already exists
2020-08-20T23:05:58+05:00 Could not create Chat-Tabletable Chat already exists
2020-08-20T23:05:58+05:00 script command loaded
2020-08-20T23:05:58+05:00 script sinusbot-commands loaded
2020-08-20T23:05:58+05:00 [sinusbot-commands:86:12] Loaded SinusBot Commands v1.0.0 by Jonas Bögle (@irgendwr).
2020-08-20T23:05:58+05:00 Auto-Starting 70f90cd6-4fd4-42ea-b8fd-b338ed8314ab/46578a5e-9c41-4db0-9ad7-d197e8f59e4c in 500 ms...
2020-08-20T23:05:58+05:00 Initialization complete
 

antipen44

New Member
Did you even search for a solution in the forum? Then you could add which one did not help to solve your problem.
I tried all threads with the same error like mine which didn't help.
I updated thought apt-get update && upgrade, but this my output:D. What I do wrong?
Bash:
root@vds1955872:/opt/sinusbot# youtube-dl --version
2018.03.14
root@vds1955872:/opt/sinusbot# /opt/sinusbot/youtube-dl --version
2020.07.28
Sorry, i didn't notice it. Now I just stopped on how to correctly update youtube-dl

Output from diagSinusbot.sh
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 18.04.5 LTS
- Kernel: Linux 4.15.0-112-generic x86_64
- Load Average: 0.06 0.06 0.01
- Uptime: 2 days, 10 hours, 51 minutes, 16 seconds
- OS x64 check: OK
- OS Updates: 0 (well done!)
- OS Missing Packages: None
- OS APT Last Update: 21.08.2020 00:16:44 MSK +03: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:          QEMU Virtual CPU version 2.5+
    CPU MHz:             2799.998
    Hypervisor vendor:   KVM
    Virtualization type: full
- RAM: 148.49 MB/481.06 MB in use (30%)
- SWAP: 32.25 MB/472.41 MB in use (6%)
- DISK: 3.65 GB/9.77 GB in use (37%)
- Package versions:
   - libglib: 2.56.4-0ubuntu0.18.04.6

BOT INFORMATION
- Status: running (PIDs: 15759 15758, User: sinusbot mogeluks)
- 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-linux_amd64/ts3client_linux_amd64 (Version 3.5.3)
   - YoutubeDLPath = /opt/sinusbot/youtube-dl (does exist, version: 2020.07.28)
- Installed scripts: advertising.js; alonemode.js; bookmark.js; command.js; Digital_Clock.js; followme.js; norecording.js; rememberChannel.js; sinusbot-commands.js; welcome.js; YT-search.js

BOT TECHNICAL INFORMATION
- File exists:
   - TS3Client/libqxcb-glx-integration.so: no
- LDD output:
    linux-vdso.so.1 (0x00007ffef59e5000)
    libswresample.so.2 => /opt/sinusbot/libswresample.so.2 (0x00007ff30a992000)
    libavfilter.so.6 => /opt/sinusbot/libavfilter.so.6 (0x00007ff30a63a000)
    libavformat.so.57 => /opt/sinusbot/libavformat.so.57 (0x00007ff30a239000)
    libavcodec.so.57 => /opt/sinusbot/libavcodec.so.57 (0x00007ff3098d4000)
    libavutil.so.55 => /opt/sinusbot/libavutil.so.55 (0x00007ff309660000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff30945c000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff3090be000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff308e9f000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff308b16000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff3088fe000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff30850d000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff3082f0000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff3080e8000)
    /lib64/ld-linux-x86-64.so.2 (0x00007ff30abac000)

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 -> 172.67.132.160: SUCCESS [CODE #404]
    update03.sinusbot.com -> 104.28.14.74: SUCCESS [CODE #404]

TIME INFORMATION
- Time (local): 23.08.2020 07:21:07 MSK +03:00:00
- Time (remote): 23.08.2020 07:21:07 MSK +03:00:00
- Time (difference): 0 secs (Time diff less than 2 secs. Good.)
- Timezone: Europe/Moscow

OTHER INFORMATION
- TeamSpeak3 Version: 3.5.3
- youtube-dl Version: 2020.07.28
- DiagScript Version: 0.8.0
==========================================================
config.ini
Code:
TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "185.87.50.122"
DataDir = "/opt/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/opt/sinusbot/youtube-dl"
EnableDebugConsole = false
EnableInternalCommands = false
AllowStreamPush = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
ExternalFileBase = ""
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
HostnameMask = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "IvEexNoziJV/fiy/H0zpxQGj0nXQoW6YHGJXWzcSKjI="
IsProxied = false
DenyStreamURLs = []
Pragma = 0
UserAgent = ""
 
Last edited:

Himsel

Well-Known Member
Contributor
Is there anything in the instance log? You posted one without any error messages. Try playing a song first and then copy and paste it here.

If you see an error message there, you can search for a solution here. https://sinusbot.github.io/docs/youtube-dl/#linux-troubleshooting
read it carefully and exclude anything as the cause of your problem!


Do only some songs from the playlist not work anymore? Or can't you play any songs at all?
 

antipen44

New Member
I don't know how, but it is working now. Maybe youtube did something that youtube-dl can't take content from it. But I think that it was some error in my VPS.

Thanks! If the problem will appear, i will bump it, if it will be possible.
 

antipen44

New Member
Problem appeared. Yesterday all worked. Today it doesn't. I didn't do anything :D
youtube-dl is up to date. I checked. Youtube playlist exists. All songs work on Youtube.
Is there anything in the instance log? You posted one without any error messages. Try playing a song first and then copy and paste it here.
Just press play button in WEB-interface, the same error.
Code:
2020-08-30T10:28:54+05:00 Playing next from playlist: ytdl://ytdl/?url=Gh9huqRMaqw&album=Steel+Deluxe&title=Gormonalno+%28XS+Project+Rmx%29+2013
2020-08-30T10:28:54+05:00 Playing next from playlist: ytdl://ytdl/?url=WX73dENFtXc&album=XS+Project&title=Fu+Manchu
2020-08-30T10:28:53+05:00 Done playing
2020-08-30T10:28:53+05:00 Playing next from playlist: ytdl://ytdl/?url=_MhiGVdKFOo&album=Pumping+Storm+13&title=Save+the+Rave
2020-08-30T10:28:53+05:00 Done playing
2020-08-30T10:28:53+05:00 PLAY-LIST [admin] f1af0a23-efe1-4647-b6c5-a2c34bb7dfa3 / 0 NOK
2020-08-30T10:28:53+05:00 Done playing
2020-08-30T10:28:48+05:00 Playing next from playlist: ytdl://ytdl/?url=1jARUpwFjNk&album=XS+Project&title=Nasha+Marka+%282011%29
2020-08-30T10:28:48+05:00 Reseeding PRNG
2020-08-30T10:28:48+05:00 Playing next from playlist: ytdl://ytdl/?url=UuZ_zvtA2gA&album=XS+Project&title=150BPM
2020-08-30T10:28:48+05:00 Done playing
2020-08-30T10:28:47+05:00 Done playing
2020-08-30T10:28:44+05:00 Playing next from playlist: ytdl://ytdl/?url=zw4Ui6SsFOs&album=xs+project&title=Kalbasa
2020-08-30T10:28:44+05:00 Playing next from playlist: ytdl://ytdl/?url=oLoT0dm88zU&album=uamee&title=HALVA
2020-08-30T10:28:44+05:00 Done playing
2020-08-30T10:28:43+05:00 Done playing
2020-08-30T10:28:41+05:00 Playing next from playlist: ytdl://ytdl/?url=wiUKzpha67k&album=XS+Project&title=Yaitca+%28%D0%AF%D0%B9%D1%86%D0%B0%29%282012%29
2020-08-30T10:28:40+05:00 Done playing
2020-08-30T10:28:40+05:00 Playing next from playlist: ytdl://ytdl/?url=GJ_74qU8GPU&album=XS+Project&title=Gangsta+%282008%29
2020-08-30T10:28:40+05:00 Done playing
2020-08-30T10:28:37+05:00 Playing next from playlist: ytdl://ytdl/?url=sYZdD6VIpgA&album=XS+Project&title=Torchali+%282012%29
2020-08-30T10:28:37+05:00 Done playing
2020-08-30T10:28:36+05:00 Playing next from playlist: ytdl://ytdl/?url=GIYDgLRdWyg&album=%D0%A8%D0%BA%D0%BE%D0%BB%D0%B0+%D0%A2%D0%B0%D0%BD%D1%86%D0%B5%D0%B2+%D0%A5%D0%B0%D1%80%D0%B4%D0%B1%D0%B0%D1%81%D0%B0&title=Sex%2C+%D0%9A%D0%B2%D0%B0%D1%81%2C+%D0%A5%D0%B0%D1%80%D0%B4%D0%B1%D0%B0%D1%81
2020-08-30T10:28:36+05:00 Done playing
2020-08-30T10:28:33+05:00 Playing next from playlist: ytdl://ytdl/?url=bKl4BevLCqo&album=XS+Project+feat.+Alateya&title=Never+Die
2020-08-30T10:28:33+05:00 Done playing
2020-08-30T10:28:33+05:00 Playing next from playlist: ytdl://ytdl/?url=wA9fGUctidg&album=uamee&title=RUCKER+PARK+2019

If you see an error message there, you can search for a solution here. https://sinusbot.github.io/docs/youtube-dl/#linux-troubleshooting
read it carefully and exclude anything as the cause of your problem!
There is nothing about this type of error.
Do only some songs from the playlist not work anymore? Or can't you play any songs at all?
Any song at all.
 

Himsel

Well-Known Member
Contributor
Did you try the follwing?

"Try manually downloading something with youtube-dl via the command line. You can do that with
youtube-dl -v -i --no-playlist --no-call-home -x <Media URL>
The sinusbot usually passes the following flags: -i --no-playlist --no-call-home -J -x."

Once again. You can find that all here >>>> https://sinusbot.github.io/docs/youtube-dl/#linux-troubleshooting <<<<

It can't be that difficult to read a text and follow the instructions.
 
Last edited:

RickyMartin

Member
Experiencing an identical issue I believe.
Can play certain youtube links on the bot but not others, seems to be an encoding issue.
I have downloaded ffmpeg and pointed the config towards it but no luck there.

Problem links can be downloaded fine directly through youtube-dl using the command above. The linux console output doesn't reveal anything useful, just 'Done playing'.
The web interface says 'could not import file' whenever I try to download a video from there.
The sinusbot user has been granted access to /opt/sinusbot so it doesn't appear to be a permission issue.

This link plays fine: https://youtu.be/XFlcvXtjrW0
whereas this one does not: https://youtu.be/WWMjRMJ0dTI
 
Top