• 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 QXbncConnection: Could not connect to display :0.0

Status
Not open for further replies.

Toun

New Member
Hello,

Im running Debian 8.0 on a dedicated server. 16GB RAM and Intel Core i5.
This server runs a TS3 server and I'm trying to install Sinusbot along with it.

I followed the guide (although I had to run sudo apt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 instead of what was given in the guide).

My config.ini:

Code:
TS3Path = "/home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64"
ListenHost = "127.0.0.1"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
SecretKey = [192, 60, 160, 158, 222, 117, 101, 127, 112, 167, 6, 43, 132, 31, 195, 236, 79, 221, 235, 103, 97, 189, 203, 232, 213, 76, 67, 86, 156, 7, 77, 215]
EnableLocalFS = false
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = ""
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]

Here are different commands and their output:

Code:
teamspeak3-bot@ns3034796:~/sinusbot$ LC_ALL="en_US.UTF-8" ./ts3bot
 ___ ___ _  _ _  _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_  _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

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

2016/03/29 22:57:48 212a7a6b INFO  Initializing bot://212a7a6b-c971-4949-a198-a3195a40ed15
2016/03/29 22:57:48 212a7a6b 6e977670 DEBUG  Spawning instance shortly due to missing configuration file
2016/03/29 22:57:48 212a7a6b 6e977670 INFO  Loaded
2016/03/29 22:57:48 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2016/03/29 22:57:48 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2016/03/29 22:57:48 212a7a6b 6e977670 INFO  Starting instance ts3server://localhost?port=9987&nickname=Music&password=&channel=&channelpassword=
QXcbConnection: Could not connect to display :0.0
2016/03/29 22:57:48 212a7a6b 6e977670 INFO  TSClient quit.
2016/03/29 22:57:48 RadioStation data loaded
2016/03/29 22:57:49 Imported radio stations
2016/03/29 22:57:53 212a7a6b 6e977670 WARN  Could not request shutdown
^C
2016/03/29 22:57:59 Shutting down... Hold on...

Code:
teamspeak3-bot@ns3034796:~/sinusbot$ xinit /home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64 -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

xinit: XFree86_VT property unexpectedly has 0 items instead of 1
/home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64: error while loading shared libraries: libquazip.so: cannot open shared object file: No such file or directory
xinit: connection to X server lost

waiting for X server to shut down

Code:
teamspeak3-bot@ns3034796:~/sinusbot$ xinit /home/teamspeak3-bot/teamspeak3_client/ts3client_runscript.sh -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

xinit: XFree86_VT property unexpectedly has 0 items instead of 1
Crashdump ENABLED,  directory is: /home/teamspeak3-bot/.ts3client/crashdumps
DUMP defined! Dumpdir is: /home/teamspeak3-bot/.ts3client/crashdumps
2016-03-29 21:00:00.712142|INFO    |              |   |TeamSpeak 3 Client 3.0.18.2 (2015-10-22 11:14:48)
2016-03-29 21:00:00.712291|INFO    |              |   |SystemInformation: Linux 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 Binary: 64bit
2016-03-29 21:00:00.712351|INFO    |              |   |Using hardware aes
2016-03-29 21:00:00.712928|ERROR   |SoundBckndIntf|   |libpulse.so.0: cannot open shared object file: No such file or directory
2016-03-29 21:00:00.713144|ERROR   |SoundBckndIntf|   |libasound.so.2: cannot open shared object file: No such file or directory
2016-03-29 21:00:00.713244|WARNING |SoundDevManager|   |Did not load any sound backends. No (usable) dynamic libraries found.
2016-03-29 21:00:00.735096|INFO    |              |   |Loading plugin: libclientquery_plugin
2016-03-29 21:00:00.735193|INFO    |              |   |Loading plugin: liblua_plugin
2016-03-29 21:00:00.735245|INFO    |              |   |Loading plugin: libsoundbot_plugin
2016-03-29 21:00:00.735293|INFO    |              |   |Loading plugin: libtest_plugin
2016-03-29 21:00:00.736424|INFO    |Query         |   |listening on 127.0.0.1:25639
ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2016-03-29 21:00:01.052076|INFO    |              |   |*** Time [MAINWINDOW]: 192
2016-03-29 21:00:01.052220|INFO    |              |   |*** Time [INIT]: 192
2016-03-29 21:00:01.055128|INFO    |ClientUI      |   |Failed to init text to speech engine
2016-03-29 21:00:01.055215|INFO    |ClientUI      |   |Qt version: 5.5.0
2016-03-29 21:00:01.055259|INFO    |ClientUI      |   |Using configuration location: /home/teamspeak3-bot/.ts3client/settings.db
2016-03-29 21:00:01.552532|INFO    |ClientUI      |   |Last update check was: Tue Mar 29 22:30:34 2016
2016-03-29 21:00:01.552742|INFO    |ClientUI      |   |Checking for update
2016-03-29 21:00:01.618010|INFO    |Update        |   |Checking for updates...
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
2016-03-29 21:00:01.726794|INFO    |Update        |   |Check license version: 1
2016-03-29 21:00:01.728279|INFO    |LicenseViewer |   |License language: en
2016-03-29 21:00:01.728509|INFO    |LicenseViewer |   |Found cached license for version 1 and language en
2016-03-29 21:00:02.058500|INFO    |Newsticker    |   |Newsticker next check: Tue Mar 29 22:55:17 2016
2016-03-29 21:00:02.370156|INFO    |Newsticker    |   |Newsticker received for language en, expires on Tue Mar 29 23:30:02 2016, next check in 1800 seconds
^Cxinit: connection to X server lost

waiting for X server to shut down
xinit: unexpected signal 2

I am completely out of ideas, do you have any clue on what's going on with the virtual X server thingy or QXcbConnection?

Help would be appreciated :)
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Try starting that first command with xinit like it says in the docs. :)
 

Toun

New Member
Do you mean this command:
xinit /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac ?

For me the equivalent is xinit /home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64 -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac as I installed the TS3 client in the user folder to avoid any permission issue.
And this outputs:

Code:
teamspeak3-bot@ns3034796:~/sinusbot$ xinit /home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64 -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

xinit: XFree86_VT property unexpectedly has 0 items instead of 1
/home/teamspeak3-bot/teamspeak3_client/ts3client_linux_amd64: error while loading shared libraries: libquazip.so: cannot open shared object file: No such file or directory
xinit: connection to X server lost

waiting for X server to shut down
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Code:
$ xinit /home/teamspeak3-bot/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

You're running the client (ts3client_linux_amd64), not the bot.
 
Status
Not open for further replies.
Top