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

error when downloading

Status
Not open for further replies.

erdnap1234

New Member
Operating System: Linux Debian 8
SinusBot Version: 0.9.15-b20cc30
TS3 Version: 3.0.19.4


Problem Description
Whenever trying to use youtube-dl via sinusbot webinterface or chatcommands in teamspeak it just gives me "error" as response in the webinterface. Taking a look into it, in putty I see "DEBUG youtube-dlquit".
Assuming the mistake(s) is on the side of youtube-dl I have to say it works fine if I use it in putty without the bot.

As start command im using the following:
Code:
screen -s bot ./sinusbot start

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

Version: 0.9.15-b20cc30
(C) 2013-2016 Michael Friese. All rights reserved.

2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin aloneMode.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin badchan.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin covatar.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin dev.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin idle.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin metadata.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin showcase.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin sound.js
2016/12/09 21:45:10 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcometext.js
2016/12/09 21:45:10 X [MAIN] Starting up fake x-server...
2016/12/09 21:45:10 c70db429          INFO   Loading instances
2016/12/09 21:45:10 c70db429          INFO   Loading instance://862f863b-1b4f-45ab-a84b-fe7152be1503
2016/12/09 21:45:10 c70db429 862f863b INFO   Initialization complete
2016/12/09 21:45:10 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
2016/12/09 21:45:10 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
2016/12/09 21:45:10 [GENERAL/YTDL   ] INFO   youtube-dl checking...
2016/12/09 21:45:16 [GENERAL/YTDL   ] INFO   youtube-dl version compatible, support enabled
2016/12/09 21:45:16 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2016/12/09 21:45:16 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2016/12/09 21:45:16 [GENERAL/RADIO  ] INFO   Imported radio stations
2016/12/09 21:46:40 c70db429          INFO   JOBS-ADD [admin] https://www.youtube.com/watch?v=YlUKcNNmywk OK
2016/12/09 21:46:41 c70db429          DEBUG  youtube-dlquit
Code:
TS3Path = "/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/opt/ts3soundboard/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = true
UploadLimit = 253886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
SampleInterval = 100
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = ""
IsProxied = false
DenyStreamURLs = []
Pragma = 0

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

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

[StreamRewrites]

[Scripts]
  AllowReload = false
  EnableTimer = false

[Themes]
  Default = ""

[SpeechRecognition]
  Enable = false

[FFmpeg]
  UserAgent = "SinusBot (0.9.15-b20cc30)"

[DAV]
  Enable = false

[XServer]
  Delay = 0
  Debug = false
Code:
>youtube-dl -U
youtube-dl is up-to-date (2016.12.09)



Operating System: Linux Debian 8
SinusBot Version: 0.9.8
TS3 Version: 3.0.19.4

Problem Description
Whenever trying to use youtube-dl via sinusbot webinterface or chatcommands in teamspeak it just gives me "error" as response in the webinterface.

What it looks like when i start the bot with the following command:
screen -s musikbot xinit /opt/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Code:
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
___ ___ _  _ _   _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

(C) 2013-2015 Michael Friese. All rights reserved.

2016/12/07 03:17:51 c70db429 INFO   Initializing bot://c70db429-586d-41dc-91e7-efb9e20b6829
2016/12/07 03:17:51 c70db429 862f863b INFO   Loaded
2016/12/07 03:17:51 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2016/12/07 03:17:51 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2016/12/07 03:17:51 youtube-dl checking...
2016/12/07 03:17:52 youtube-dl version compatible, support enabled
2016/12/07 03:17:52 RadioStation data loaded
2016/12/07 03:17:52 Imported radio stations
2016/12/07 03:22:56 c70db429 INFO   JOBS-ADD [admin] %!s(*string=0xc2080fffd0) OK
2016/12/07 03:22:57 c70db429 DEBUG  youtube-dlquit

The bot itself works fine whenever i use a radio as source to play audio or select mp3s i uploaded myself.

Youtube-dl itself works aswell because whenever i use it in putty via youtube-dl https://www.youtube.com/xxx it downloads the file as supposed to.

The bot's config is the following:
Code:
TS3Path = "/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
SecretKey = [127, 173, 60, 87, 255, 9, 29, 119, 130, 102, 115, 43, 101, 253, 12, 178, 78, 230, 241, 44, 207, 184, 202, 214, 16, 47, 165, 235, 116, 41, 151, 227]
EnableLocalFS = false
LogLevel = 10
EnableProfiler = false
YoutubeDLPath ="/usr/local/bin/youtube-dl"
EnableDebugConsole = true
UploadLimit = 253886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
MTU = 1500
SampleInterval = 100
StartVNC = false
EnableMulticastMetadata = false
EnableWebStream = false

[StreamRewrites]


Hope someone can tell me what i've done wrong and where to find my mistake D:
(feel free to answer in german too)
 
Last edited:

erdnap1234

New Member
Thanks for the fast reply, I just assumed I got the most up to date version since I donwloaded it from the website, but obviously you do not get the latest version from there :D - your signature helped a lot.


So what do I to start it? Same old command just modified using sinusbot instead of ts3bot?
screen -s musikbot xinit /opt/ts3soundboard/sinusbot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
 

erdnap1234

New Member
Under the usage of the start command shown in my last post it looks like this:
(long story short, it doesnt work yet)

2016-12-07T15:01:56+01:00 Storing configuration.
2016-12-07T15:01:28+01:00 TS/ERR 2564 e'access to default group is forbidden' x'' r'PR:{aae180f0-8073-43b3-8ae9-c1b16f9db76d}:12/GCLL'
2016-12-07T15:01:28+01:00 TS |INFO |LicenseViewer | |Found cached license for version 1 and language en
2016-12-07T15:01:28+01:00 TS |INFO |LicenseViewer | |License language: en
2016-12-07T15:01:28+01:00 TS |INFO |Update | |Check license version: 1
2016-12-07T15:01:28+01:00 TS |INFO |Update | |Checking for updates...
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI | |Checking for update
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI | |Last update check was: Sun Jan 1 00:00:01 2017
2016-12-07T15:01:28+01:00 New connection status 4; Error 0
2016-12-07T15:01:28+01:00 TS |INFO |PermManager | |Loading permissions from cache
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI |1 |Connect status: Connection established
2016-12-07T15:01:28+01:00 New connection status 3; Error 0
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI |1 |Connect status: Establishing connection
2016-12-07T15:01:28+01:00 New connection status 2; Error 0
2016-12-07T15:01:28+01:00 New connection status 1; Error 0
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI |1 |Connect status: Connected
2016-12-07T15:01:28+01:00 TS |INFO |ClientUI |1 |Connect status: Connecting
2016-12-07T15:01:28+01:00 TS |DEVELOP |PktHandler | |Puzzle solve time: 3
2016-12-07T15:01:27+01:00 TS |INFO |PreProSpeex |1 |Speex version: 1.2rc1
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI |1 |Initiating connection: 127.0.0.1:9987 127.0.0.1
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI |1 |Blacklist check ok
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI |1 |Connect to server: 127.0.0.1
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI | |ts3server: 127.0.0.1?port=9987&nickname=Test&password=&cid=6&channelpassword=
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI | |Using configuration location: /opt/ts3soundboard/data//ts3/c70db429-586d-41dc-91e7-efb9e20b6829/862f863b-1b4f-45ab-a84b-fe7152be1503/settings.db
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI | |Qt version: 5.5.1
2016-12-07T15:01:27+01:00 TS |INFO |ClientUI | |Failed to init text to speech engine
2016-12-07T15:01:27+01:00 TS>ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2016-12-07T15:01:27+01:00 TS |INFO |Query | |listening on 127.0.0.1:25639
2016-12-07T15:01:27+01:00 TS |INFO | | |Loading plugin: libtest_plugin
2016-12-07T15:01:27+01:00 TS |INFO | | |Loading plugin: libsoundbot_plugin
2016-12-07T15:01:27+01:00 TS |INFO | | |Loading plugin: liblua_plugin
2016-12-07T15:01:27+01:00 TS |INFO | | |Loading plugin: libclientquery_plugin
2016-12-07T15:01:27+01:00 TS |ERROR |SoundBckndIntf| |/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/soundbackends/libpulseaudio_linux_amd64.so error: INIT_PA_IMPL
2016-12-07T15:01:27+01:00 TS |ERROR |PulseAudio | |pa_context_connect failed
2016-12-07T15:01:27+01:00 TS |ERROR |PulseAudio | |failed to connect to pulse audio server
2016-12-07T15:01:27+01:00 TS |INFO | | |SystemInformation: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 Binary: 64bit
2016-12-07T15:01:27+01:00 TS |INFO | | |TeamSpeak 3 Client 3.0.19.4 (2016-07-14 10:16:58)
2016-12-07T15:01:27+01:00 TS>DUMP defined! Dumpdir is: /opt/ts3soundboard/data//ts3/c70db429-586d-41dc-91e7-efb9e20b6829/862f863b-1b4f-45ab-a84b-fe7152be1503/crashdumps
2016-12-07T15:01:27+01:00 TS>Crashdump ENABLED, directory is: /opt/ts3soundboard/data//ts3/c70db429-586d-41dc-91e7-efb9e20b6829/862f863b-1b4f-45ab-a84b-fe7152be1503/crashdumps
2016-12-07T15:01:27+01:00 Starting instance ts3server://127.0.0.1?port=9987&nickname=Test&password=&cid=6&channelpassword=
2016-12-07T15:01:27+01:00 Could not insert into Notifications-Tableno such table: Notifications
2016-12-07T15:01:27+01:00 Could not delete from Notificationsno such table: Notifications
2016-12-07T15:01:27+01:00 Could not insert into Notifications-Tableno such table: Notifications
2016-12-07T15:01:27+01:00 Could not delete from Notificationsno such table: Notifications
2016-12-07T15:01:26+01:00 Auto-Starting c70db429-586d-41dc-91e7-efb9e20b6829/862f863b-1b4f-45ab-a84b-fe7152be1503 in 500 ms...
2016-12-07T15:01:26+01:00 Initialization complete

2016-12-07T15:02:51+01:00 youtube-dlquit
2016-12-07T15:02:50+01:00 JOBS-ADD [admin]
OK
2016-12-07T15:01:26+01:00 Loading instance://862f863b-1b4f-45ab-a84b-fe7152be1503
2016-12-07T15:01:26+01:00 Loading instances
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
no, just start the bot like that
Code:
./sinusbot
or with screen
Code:
screen -s musikbot ./sinusbot
 

erdnap1234

New Member
screen -s musikbot ./sinusbot

2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI |1 |Initiating connection: 127.0.0.1:9987 127.0.0.1
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |PreProSpeex |1 |Speex version: 1.2rc1
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI |1 |Connect status: Connecting
2016/12/07 15:27:42 c70db429 862f863b INFO TS |DEVELOP |PktHandler | |Puzzle solve time: 2
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI |1 |Connect status: Connected
2016/12/07 15:27:42 c70db429 862f863b INFO New connection status 1; Error 0
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI |1 |Connect status: Establishing connection
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI |1 |Connect status: Connection established
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |PermManager | |Loading permissions from cache
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI | |Last update check was: Sun Jan 1 00:00:01 2017
2016/12/07 15:27:42 c70db429 862f863b INFO New connection status 2; Error 0
2016/12/07 15:27:42 c70db429 862f863b INFO New connection status 3; Error 0
2016/12/07 15:27:42 c70db429 862f863b INFO New connection status 4; Error 0
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |ClientUI | |Checking for update
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |Update | |Checking for updates...
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |Update | |Check license version: 1
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |LicenseViewer | |License language: en
2016/12/07 15:27:42 c70db429 862f863b INFO TS |INFO |LicenseViewer | |Found cached license for version 1 and language en
2016/12/07 15:27:42 [GENERAL/RADIO ] INFO Imported radio stations
2016/12/07 15:27:43 c70db429 862f863b DEBUG TS/ERR 2564 e'access to default group is forbidden' x'' r'PR:{a904eb72-8654-449a-9049-95da92854f96}:12/GCLL'
2016/12/07 15:28:02 c70db429 INFO JOBS-ADD [admin]
OK
2016/12/07 15:28:03 c70db429 DEBUG youtube-dlquit
2016/12/07 15:28:11 c70db429 862f863b DEBUG Storing configuration.
 

erdnap1234

New Member
Code:
youtube-dl -U
youtube-dl is up-to-date (2016.12.12)
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
 - Operating System: Debian GNU/Linux 8.6 (jessie)
 - OS x64 check: OK
 - Kernel: Linux 3.16.0-4-amd64 x86_64
 - Load Average: 1.37 0.77 0.50
 - Uptime: 3 days, 22 hours, 40 minutes, 10 seconds
 - OS Updates: 0 (well done!)
 - OS Missing Packages: None (v1)
 - OS APT Last Update: 12.12.2016 14:23:23 CET +01:00:00
 - Bot Start Script: found at /etc/init.d/sinusbot [perms: 755]
 - DNS resolution check: google.com -> OK
 - CPU:
    Architecture:          x86_64
    CPU(s):                2
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             2
    Model name:            QEMU Virtual CPU version 2.1.2
    CPU MHz:               2593.748
    Hypervisor vendor:     KVM
    Virtualization type:   full
 - RAM: 756.77 MB/5.84 GB in use (12%)
 - SWAP: 10.24 MB/3.80 GB in use (0%)
 - DISK: 9.16 GB/96.43 GB in use (9%)
 - Package versions:
   > libglib: 2.42.1-1+b1

BOT INFORMATION
 - Status: running (PIDs: 2725 2724, User: ts3bot)
 - Webinterface: port locally not reachable (Port: 8087)
 - Binary: /opt/ts3soundboard/sinusbot (MD5 Hash: ca497448f617fc17a5bb579980a8572e)
 - Version: 0.9.15-b20cc30
 - TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: 0b71cb8de70ec252d6f339b26c3a0e82
   - TS3 Client: 0b71cb8de70ec252d6f339b26c3a0e82
 - Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.19.4)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2016.12.12)
 - Installed scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; covatar.js; dev.js; followme.js; idle.js; metadata.js; norecording.js; rememberChannel.js; showcase.js; sound.js; welcometext.js

OTHER INFORMATION
 - Report date: 12.12.2016 14:39:13 CET +01:00:00 (timezone: Europe/Berlin)
 - TeamSpeak 3 Version: 3.0.19.4
 - youtube-dl Version: 2016.12.12
 - DiagScript version: 0.4.6
==========================================================
 
Status
Not open for further replies.
Top