• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Completed Error: "sh: youtube-dl : commande no found

Kevinos

Fanatic member
Premium User
Hello everyone,

Here I explain my problem, I have this error since the new version of teaspeak.

I did not have this problem on the old, I deleted youtube-dl then reinstall but still the same problem.

TeaSpeak say : sh: youtube-dl : commande no found.
Putty root =>
root@ns3032715:~# youtube-dl -U
youtube-dl is up-to-date (2018.09.18)

Youtube-dl is good installed, but on teaspeak not working, idk why.

Any help? :)

Thx

TeapSpeak Server log :

Code:
[2018-09-18 11:07:01] [DEBUG] Log successfully started!
[2018-09-18 11:07:01] [INFO]    GEN | Starting TeaSpeak-Server v1.2.17-beta [Build: 1537005517]
[2018-09-18 11:07:01] [INFO]    GEN | Starting music providers
[2018-09-18 11:07:01] [DEBUG] [Music] Provider load order:
[2018-09-18 11:07:01] [DEBUG] [Music] [0] providers/000ProviderFFMpeg.so
[2018-09-18 11:07:01] [DEBUG] [Music] [1] providers/001ProviderYT.so
[2018-09-18 11:07:01] [DEBUG] [Music] [FFMPEG] Using config file located at providers/config_ffmpeg.ini
[2018-09-18 11:07:01] [DEBUG] [Music] [FFMPEG] Missing configuration file. Using default values
[2018-09-18 11:07:01] [DEBUG] [Music] [FFMPEG] Executing command "ffmpeg -version"
[2018-09-18 11:07:01] [INFO]  [Music] [FFMPEG] Resolved ffmpeg with version "ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers"
[2018-09-18 11:07:01] [DEBUG] [Music] [FFMPEG] Executing command "ffmpeg -protocols"
[2018-09-18 11:07:02] [DEBUG] [Music] [FFMPEG] Executing command "ffmpeg -formats"
[2018-09-18 11:07:02] [INFO]  [Music] Loaded successfully provider FFMpeg
[2018-09-18 11:07:02] [DEBUG] [Music] [YT-DL] Using config file located at providers/config_youtube.ini
[2018-09-18 11:07:02] [DEBUG] [Music] [YT-DL] Missing configuration file. Using default values
[2018-09-18 11:07:02] [DEBUG] [Music] [YT-DL] Executing versions command "youtube-dl --version"
[2018-09-18 11:07:02] [ERROR] [Music] [YT-DL] Could not find youtube-dl (Error: "sh: youtube-dl : commande introuvable")
[2018-09-18 11:07:02] [ERROR] [Music] [YT-DL] How to download/install youtube-dl: https://github.com/rg3/youtube-dl/blob/master/README.md#installation
[2018-09-18 11:07:02] [ERROR] [Music] Could not create music provider for providers/001ProviderYT.so
Code:
<13:08:55> "Im a music bot!": An error occurrent while trying to replay the next song! (Failed to initialize player. (Could not spawn new ffmpeg process.
  Message: Could not get metadata tag ([tls @ 0x7fccc6242280] The TLS connection was non-properly terminated.
https/www.youtube.com/watch?v=BRiiDYXcE0Y: Input/output error
)
  Additional error:
    [tls @ 0x7fccc6242280] The TLS connection was non-properly terminated.
    https/www.youtube.com/watch?v=BRiiDYXcE0Y: Input/output error
    
))
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Had you tried sh -c "youtube-dl" (TeaSpeak uses sh instead of bash)
May specify the path to the youtube dl manually within the config :)
 

Kevinos

Fanatic member
Premium User
Had you tried sh -c "youtube-dl" (TeaSpeak uses sh instead of bash)
May specify the path to the youtube dl manually within the config :)
root@ns3032715:~# sh -c "youtube-dl"
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

Working too

I can not find anything in the config for the way
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hmm okey?
No I ment the specific provider config.
(It dosnt create a automatic generated file)
https://github.com/TeaSpeak/TeaMusic/blob/master/providers/yt/YTProvider.cpp#L50-L65

So create a config within providers called config_youtube.ini.
Available config options:
INI:
[general]
youtubedl_command="youtube-dl"

[commands]
version="${command} --version"
query_video="${command} -v --no-check-certificate -s --print-json --get-thumbnail ${video_url}"
 

Kevinos

Fanatic member
Premium User
Hmm okey?
No I ment the specific provider config.
(It dosnt create a automatic generated file)
https://github.com/TeaSpeak/TeaMusic/blob/master/providers/yt/YTProvider.cpp#L50-L65

So create a config within providers called config_youtube.ini.
Available config options:
INI:
[general]
youtubedl_command="youtube-dl"

[commands]
version="${command} --version"
query_video="${command} -v --no-check-certificate -s --print-json --get-thumbnail ${video_url}"
Same, possible need change chmod from 001ProviderYT.so ?

Code:
[2018-09-18 12:34:02] [INFO]    GEN | Starting TeaSpeak-Server v1.2.17-beta [Build: 1537005517]
[2018-09-18 12:34:02] [INFO]    GEN | Starting music providers
[2018-09-18 12:34:02] [INFO]  [Music] [FFMPEG] Resolved ffmpeg with version "ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers"
[2018-09-18 12:34:02] [INFO]  [Music] Loaded successfully provider FFMpeg
[2018-09-18 12:34:02] [INFO]  [Music] [YT-DL] Config successfully loaded
[2018-09-18 12:34:02] [ERROR] [Music] [YT-DL] Could not find youtube-dl (Error: "sh: youtube-dl --version : commande introuvable")
[2018-09-18 12:34:02] [ERROR] [Music] [YT-DL] How to download/install youtube-dl: https://github.com/rg3/youtube-dl/blob/master/README.md#installation
[2018-09-18 12:34:02] [ERROR] [Music] Could not create music provider for providers/001ProviderYT.so
 

Kevinos

Fanatic member
Premium User
Fixed, i run directely via putty and working now, normally i start via webmin ;) and webmin not working