Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • 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.

youtube-dl installed but not available

Status
Not open for further replies.
Hey Forum,

I've just got my Sinusbot running fine so I can hear radio on TS3. Although I used the forum-search and tried all mentioned solutions youtube-dl is still "not available".

Specs:
Ubuntu 14.04.3 LTS on V-Server (2GB RAM)
latest Sinusbot installed.

config.ini:
TS3Path = "/home/ts3music/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
SecretKey = [3, 246, 86, 196, 84, 104, 94, 44, 236, 70, 202, 117, 167, 4, 132, 57, 51, 126, 227, 4, 133, 207, 61, 141, 226, 65, 218, 235, 99, 207, 46, 34]
EnableLocalFS = false
LogLevel = 3
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
MTU = 1500
SampleInterval = 100
StartVNC = false
EnableMulticastMetadata = false
EnableWebStream = false

[StreamRewrites]
The youtube-dl file is in the mentioned folder. So I don't know what's wrong...
I hope someone in this forum can help me.

PS: Wer Deutsch kann, der kann mir gerne auch auf Deutsch antworten :)
 
Last edited:
So...now I tried to install the start script...

root@cosine-entertainment:~# service ts3music status
/etc/init.d/ts3music: 1: /etc/init.d/ts3music: #!: not found
/etc/init.d/ts3music: 32: /etc/init.d/ts3music: function: not found
status: Auftragsname fehlt
Try `status --help' for more information.
/etc/init.d/ts3music: 44: /etc/init.d/ts3music: Syntax error: "}" unexpected
root@cosine-entertainment:~#

Also the Instance-Log throws errors:

2015-09-17T11:16:55+02:00 TSClient quit.
2015-09-17T11:17:01+02:00 Starting instance ts3server://127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
 

good_live

Active Member
Tier III
is awesome!
V.I.P.
Contributor
Insider
Try to download a youtube video manually to verify that ytdl is installed correctly and please read this post again ^^
 
Ah sorry, manual download is working fine...
And yeah...the log...ehm where will I find it, if I set the LogLevel to 10? In the syslog?
 
so...I guess that's the log:

$ screen -r log
|___/___|_|\_|\___/|___/___/\___/ |_|

(C) 2013-2015 Michael Friese. All rights reserved.
2015/09/17 12:49:50 f6a72079 INFO Initializing bot://f6a72079-48cd-489b-a054-ee07f284a2d8
2015/09/17 12:49:50 f6a72079 62a61f2b INFO Loaded
2015/09/17 12:49:50 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/09/17 12:49:50 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/09/17 12:49:50 youtube-dl checking...
2015/09/17 12:49:50 youtube-dl version compatible, support enabled
2015/09/17 12:49:50 RadioStation data loaded
2015/09/17 12:49:51 Imported radio stations
2015/09/17 12:51:43 f6a72079 62a61f2b DEBUG Could not delete from Notificationsno such table: Notifications
2015/09/17 12:51:43 f6a72079 62a61f2b DEBUG Could not insert into Notifications-Tableno such table: Notifications
2015/09/17 12:51:43 f6a72079 62a61f2b DEBUG Could not delete from Notificationsno such table: Notifications
2015/09/17 12:51:43 f6a72079 62a61f2b DEBUG Could not insert into Notifications-Tableno such table: Notifications
2015/09/17 12:51:43 f6a72079 62a61f2b INFO Starting instance ts3server://127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
Crashdump ENABLED, directory is: /home/ts3music/data/ts3/f6a72079-48cd-489b-a054-ee07f284a2d8/62a61f2b-d6b9-4fe4-925f-7471b36edc4a/crashdumps
DUMP defined! Dumpdir is: /home/ts3music/data/ts3/f6a72079-48cd-489b-a054-ee07f284a2d8/62a61f2b-d6b9-4fe4-925f-7471b36edc4a/crashdumps
2015-09-17 10:51:43.891161|INFO | | |TeamSpeak 3 Client 3.0.17 (2015-08-04 07:38:33)
2015-09-17 10:51:43.891258|INFO | | |SystemInformation: Linux 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 x86_64 Binary: 64bit
2015-09-17 10:51:43.891287|INFO | | |Using hardware aes
Home directory not accessible: Keine Berechtigung
2015-09-17 10:51:44.005912|ERROR |PulseAudio | |failed to connect to pulse audio server
2015-09-17 10:51:44.006208|ERROR |PulseAudio | |pa_context_connect failed
2015-09-17 10:51:44.006279|ERROR |SoundBckndIntf| |/home/ts3music/TeamSpeak3-Client-linux_amd64/soundbackends/libpulseaudio_linux_amd64.so error: INIT_PA_IMPL
2015-09-17 10:51:44.043976|INFO | | |Loading plugin: libclientquery_plugin
2015-09-17 10:51:44.044074|INFO | | |Loading plugin: liblua_plugin
2015-09-17 10:51:44.044116|INFO | | |Loading plugin: libsoundbot_plugin
2015-09-17 10:51:44.044156|INFO | | |Loading plugin: libtest_plugin
2015-09-17 10:51:44.056590|INFO |Query | |listening on 127.0.0.1:25639
ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2015-09-17 10:51:44.167319|INFO |ClientUI | |Failed to init text to speech engine
2015-09-17 10:51:44.167468|INFO |ClientUI | |Qt version: 5.4.1
2015-09-17 10:51:44.167500|INFO |ClientUI | |Using configuration location: /home/ts3music/data/ts3/f6a72079-48cd-489b-a054-ee07f284a2d8/62a61f2b-d6b9-4fe4-925f-7471b36edc4a/settings.db
2015-09-17 10:51:44.465717|INFO |ClientUI | |ts3server: 127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
2015-09-17 10:51:44.466075|INFO |ClientUI |1 |Connect to server: 127.0.0.1
2015-09-17 10:51:44.466697|INFO |ClientUI |1 |Blacklist check ok
2015-09-17 10:51:44.466750|INFO |ClientUI |1 |Initiating connection: 127.0.0.1:9987 127.0.0.1
2015-09-17 10:51:44.472537|INFO |PreProSpeex |1 |Speex version: 1.2rc1
warning: The VAD has been replaced by a hack pending a complete rewrite
2015-09-17 10:51:44.475043|INFO |ClientUI |1 |Connect status: Connecting
2015-09-17 10:51:44.478331|DEVELOP |PktHandler | |Puzzle solve time: 4
2015-09-17 10:51:44.480687|WARNING |ClientUI | |Blacklist check error: 7
2015-09-17 10:51:44.480783|WARNING |ClientUI | |Failed to write to blacklist server: Unable to send a message
2015-09-17 10:51:44.481295|INFO |ClientUI |1 |Connect status: Connected
warning: The VAD has been replaced by a hack pending a complete rewrite
2015-09-17 10:51:44.489948|INFO |ClientUI |1 |Connect status: Establishing connection
2015-09-17 10:51:44.503586|INFO |ClientUI |1 |Connect status: Connection established
2015-09-17 10:51:44.504241|INFO |PermManager | |Loading permissions from cache
2015-09-17 10:51:44.665427|INFO |ClientUI | |Last update check was: So. Jan. 1 00:00:01 2017
2015-09-17 10:51:44.665597|INFO |ClientUI | |Checking for update
2015-09-17 10:51:44.667461|INFO |Update | |Checking for updates...
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
2015-09-17 10:51:44.698479|INFO |Update | |Check license version: 1
2015-09-17 10:51:44.699531|INFO |LicenseViewer | |License language: en
2015-09-17 10:51:44.699655|INFO |LicenseViewer | |Found cached license for version 1 and language en
2015-09-17 10:51:45.167901|INFO |Newsticker | |Newsticker next check: Do. Sep. 17 11:28:54 2015
2015-09-17 10:51:45.188501|INFO |Newsticker | |Newsticker received for language en, expires on Do. Sep. 17 13:21:45 2015, next check in 1800 seconds
 
Yes, like 10 times...

Could you also help me with this start script?

Code:
#! /bin/bash
### BEGIN INIT INFO
# Provides: ts3bot
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Sinusbot
### END INIT INFO

##################################################################################
# #
# Usage: ./launch.sh {start|stop|status|restart|console} #
# - start: start the bot #
# - stop: stop the bot #
# - status: display the status of the bot (down or up) #
# - restart: restart the bot #
# - console: display the bot console #
# To exit the console without stopping the server, press CTRL + A then D. #
# #
##################################################################################

SCREEN_NAME="ts3music"
USER="ts3music"
DIR_ROOT="/home/ts3music"
BOT_RUNCMD="./ts3bot"

# No edits necessary beyond this line
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ ! -x `which screen` ]; then echo "ERROR: You need screen for this script (try apt-get install screen)"; exit 1; fi

function start {
    if [ ! -d $DIR_ROOT ]; then echo "ERROR: $DIR_ROOT is not a directory"; exit 1; fi
    if status; then echo "$SCREEN_NAME is already running"; exit 1; fi

    # Start bot
    if [ `whoami` = root ]
    then
        su - $USER -c "cd $DIR_ROOT ; screen -AmdS $SCREEN_NAME $BOT_RUNCMD"
    else
        cd $DIR_ROOT
        screen -AmdS $SCREEN_NAME $BOT_RUNCMD
    fi
}

function stop {
    if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

    if [ `whoami` = root ]
    then
        su - $USER -c "screen -S $SCREEN_NAME -X stuff '\003'"
    else
        screen -S $SCREEN_NAME -X stuff '\003'
    fi
}

function status {
    if [ `whoami` = root ]
    then
        su - $USER -c "screen -ls" | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
    else
        screen -ls | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
    fi
}

function console {
    if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

    if [ `whoami` = root ]
    then
        su - $USER -c "screen -x $SCREEN_NAME"
    else
        screen -x $SCREEN_NAME
    fi
}

function usage {
    echo "Usage: $0 {start|stop|status|restart|console}"
    echo "On console, press CTRL+A then D to stop the screen without stopping the server."
}

case "$1" in

start)
    echo "Using following data:"
    echo "USER: $USER"
    echo "DIR ROOT: $DIR_ROOT"
    echo "BOT RUN CMD: $BOT_RUNCMD"
    echo ""
    sleep 2
    echo "Starting $SCREEN_NAME..."
    start
    sleep 2
    echo "$SCREEN_NAME started successfully"
;;

stop)
    echo "Stopping $SCREEN_NAME..."
    stop
    sleep 2
    echo "$SCREEN_NAME stopped successfully"
;;

restart)
    echo "Restarting $SCREEN_NAME..."
    status && stop
    sleep 5
    start
    sleep 2
    echo "$SCREEN_NAME restarted successfully"
;;

status)
    if status
    then echo "$SCREEN_NAME is UP"
    else echo "$SCREEN_NAME is DOWN"
    fi
;;

console)
    echo "Open console on $SCREEN_NAME..."
    console
;;

*)
    usage
    exit 1
;;

esac

exit 0

When I start it, I get this output:

Using following data:
USER: ts3music
DIR ROOT: /home/ts3music
BOT RUN CMD: ./ts3bot

Starting ts3music...
ts3music started successfully

Now I can access the web interface, but the bot is stopped so there is no music in TS...
There is no screen started as well.
When I klick on "Start Bot" nothing happens and the button stays orange.

Instance-Log after one klick on "Start Bot":

2015-09-17T13:58:19+02:00 Loaded
2015-09-17T14:00:48+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-17T14:00:48+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-17T14:00:48+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-17T14:00:48+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-17T14:00:48+02:00 Starting instance ts3server://127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
2015-09-17T14:00:48+02:00 TSClient quit.

Starting the bot with this command leads to a fully working bot:

screen -AmdS ts3music sudo -uts3music xinit /home/ts3music/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
 
Last edited:

Raphraph

Donor
is awesome!
Contributor
Insider
Look into the script. In one of the first line there is one which is named "BOT_RUNCMD". Just replace the current "./ts3bot" by "xinit /home/ts3music/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac".
 
Ok now everything is working fine, thank you!

but still this happens:

2015-09-17T17:42:49+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-17T17:42:49+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-17T17:42:49+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-17T17:42:49+02:00 Could not insert into Notifications-Tableno such table: Notifications
 
restart done, same error:

2015-09-18T12:59:39+02:00 Loaded
2015-09-18T12:59:41+02:00 Last track was ba9f7c7f-da82-48ae-8437-2ef0ca754417, will auto-play soon
2015-09-18T12:59:41+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-18T12:59:41+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-18T12:59:41+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-18T12:59:41+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-18T12:59:41+02:00 Starting instance ts3server://127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
2015-09-18T12:59:46+02:00 Auto-Playing last track
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Hey,

2015-09-18T12:59:39+02:00 Loaded
2015-09-18T12:59:41+02:00 Last track was ba9f7c7f-da82-48ae-8437-2ef0ca754417, will auto-play soon
2015-09-18T12:59:41+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-18T12:59:41+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-18T12:59:41+02:00 Could not delete from Notificationsno such table: Notifications
2015-09-18T12:59:41+02:00 Could not insert into Notifications-Tableno such table: Notifications
2015-09-18T12:59:41+02:00 Starting instance ts3server://127.0.0.1?port=9987&nickname=Jukebox&password=&cid=82&channelpassword=
2015-09-18T12:59:46+02:00 Auto-Playing last track

this messages are only warnings, I think you should only see that with LogLevel 10.
No need to panic.
 
Status
Not open for further replies.
Top