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

Xinit (...) 0 instead of 1 items (...)

Status
Not open for further replies.

Frizzant

Member
Contributor
Hello everyone

I just can't get this bot to work, without root. Any ideas? The internet(google) just won't help me.

VServer
OS: Debian 8, jessie
64bit
2GB Ram
1GHz CUP

xinit /usr/local/teamspeak3/teamspeak3-server_linux-amd64/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
2015/12/28 08:54:04 The bot will not run as root-user if you don't run it with the parameter '-RunningAsRootIsEvilAndIKnowThat'
xinit: connection to X server lost
waiting for X server to shut down

It all works when i run it as root, no issues, next to crashing after several hours.

Thanks everyone :)
 
It tells you everything you need to know there: you are still running the bot as root.
 
everything behind "//" is for other users experiencing same, or similar issues, so they get what is going on.


Yep... i got further with
su teamspeak3 //running as user teamspeak3, before entering the next command
Starts, and after getting a bunch of errors, i did
chown -R teamspeak3 * //i guess this must be run as root
so it would assign the user to all files. Which helped a fair bit. But now i am comming to this:

2015/12/28 09:24:25 7991c643 INFO Initializing bot://7991c643-08b0-4e6d-9b35-738cf7669547
2015/12/28 09:24:25 7991c643 73d7429f INFO Loaded
2015/12/28 09:24:25 Auto-Starting 7991c643-08b0-4e6d-9b35-738cf7669547/73d7429f-d3f7-4364-9f9f-9449a1508b69 in 2500 ms...
2015/12/28 09:24:25 7991c643 5899bf65 INFO Loaded
2015/12/28 09:24:25 Auto-Starting 7991c643-08b0-4e6d-9b35-738cf7669547/5899bf65-28a5-41cf-8678-9d68158367f0 in 5000 ms...
2015/12/28 09:24:25 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/12/28 09:24:25 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/12/28 09:24:25 youtube-dl checking...
2015/12/28 09:24:25 youtube-dl version compatible, support enabled
2015/12/28 09:24:26 RadioStation data loaded
2015/12/28 09:24:26 Imported radio stations
2015/12/28 09:24:27 7991c643 73d7429f DEBUG Could not delete from Notificationsno such table: Notifications //start of the issue
2015/12/28 09:24:27 7991c643 73d7429f DEBUG Could not insert into Notifications-Tableno such table: Notifications
2015/12/28 09:24:27 7991c643 73d7429f DEBUG Could not delete from Notificationsno such table: Notifications
2015/12/28 09:24:27 7991c643 73d7429f DEBUG Could not insert into Notifications-Tableno such table: Notifications //most likely end of issue
2015/12/28 09:24:27 7991c643 73d7429f INFO Starting instance

And i have no idea where that file might be, when not in the installation folder....
 
You can ignore those messages, they are meant for debugging purposes only.
 
oh... sh3#!
well then there must be more issues going on^^ because i cannot connect.

(...)
2015-12-28 08:24:27.941889|ERROR |SoundBckndIntf| |libasound.so.2: cannot open shared object file: No such file or directory
2015-12-28 08:24:27.946923|ERROR |SoundBckndIntf| |libpulse.so.0: cannot open shared object file: No such file or directory
(...)
:D thanks for all the help already. i think we will get to the ROOT of this. :)

 
Those are from the client and can usually be ignored as well. The bot simply doesn't need the mentioned libraries.
 
Oh... here is one more!
(...)
--> 2015-12-28 08:24:30.516331|ERROR |Query | |bind failed on 127.0.0.1:25639
(...)


the rest of the log:
2015-12-28 08:24:30.488545|INFO | | |TeamSpeak 3 Client 3.0.18.2 (2015-10-22 11:14:48)
2015-12-28 08:24:30.489216|INFO | | |SystemInformation: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_
64 Binary: 64bit
2015-12-28 08:24:30.489799|INFO | | |Using hardware aes
2015-12-28 08:24:30.491142|ERROR |SoundBckndIntf| |libasound.so.2: cannot open shared object file: No such file or directory
2015-12-28 08:24:30.492591|ERROR |SoundBckndIntf| |libpulse.so.0: cannot open shared object file: No such file or directory
2015-12-28 08:24:30.492740|WARNING |SoundDevManager| |Did not load any sound backends. No (usable) dynamic libraries found.
2015-12-28 08:24:30.514307|INFO | | |Loading plugin: libclientquery_plugin
2015-12-28 08:24:30.514515|INFO | | |Loading plugin: liblua_plugin
2015-12-28 08:24:30.514613|INFO | | |Loading plugin: libsoundbot_plugin
2015-12-28 08:24:30.514704|INFO | | |Loading plugin: libtest_plugin
2015-12-28 08:24:30.516331|ERROR |Query | |bind failed on 127.0.0.1:25639
libpng warning: iCCP: known incorrect sRGB profile
2015-12-28 08:24:31.136957|INFO | | |*** Time [MAINWINDOW]: 105
2015-12-28 08:24:31.138291|INFO | | |*** Time [INIT]: 106
2015-12-28 08:24:31.144117|INFO |ClientUI | |Failed to init text to speech engine
2015-12-28 08:24:31.144657|INFO |ClientUI | |Qt version: 5.5.0
2015-12-28 08:24:31.145199|INFO |ClientUI | |Using configuration location: /usr/local/teamspeak3/teamspeak3-server_linux-amd64/ts3soundboa
rd/data/ts3/7991c643-08b0-4e6d-9b35-738cf7669547/5899bf65-28a5-41cf-8678-9d68158367f0/settings.db
2015-12-28 08:24:31.438783|INFO |ClientUI | |ts3server: 127.0.0.1?port=9987&nickname=TS3-Soundbot&password=&cid=18&channelpassword=
2015-12-28 08:24:31.439397|INFO |ClientUI |1 |Connect to server: 127.0.0.1
2015-12-28 08:24:31.440676|INFO |ClientUI |1 |Blacklist check ok
2015-12-28 08:24:31.441128|INFO |ClientUI |1 |Initiating connection: 127.0.0.1:9987 127.0.0.1
2015-12-28 08:24:31.643660|INFO |PreProSpeex |1 |Speex version: 1.2rc1
warning: The VAD has been replaced by a hack pending a complete rewrite
2015-12-28 08:24:31.712268|INFO |ClientUI |1 |Connect status: Connecting
2015-12-28 08:24:31.716154|DEVELOP |PktHandler | |Puzzle solve time: 11
2015-12-28 08:24:31.721544|INFO |ClientUI | |Last update check was: Sun Jan 1 00:00:01 2017
2015-12-28 08:24:31.722876|INFO |ClientUI | |Checking for update
warning: The VAD has been replaced by a hack pending a complete rewrite
2015-12-28 08:24:31.794013|INFO |Update | |Checking for updates...
2015-12-28 08:24:31.795402|INFO |ClientUI |1 |Connect status: Connected
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
2015-12-28 08:24:31.814830|INFO |ClientUI |1 |Connect status: Establishing connection
2015-12-28 08:24:31.829379|INFO |ClientUI |1 |Connect status: Connection established
2015-12-28 08:24:31.834681|INFO |PermManager | |Loading permissions from cache
2015-12-28 08:24:32.073092|INFO |Update | |Check license version: 1
2015-12-28 08:24:32.075037|INFO |LicenseViewer | |License language: en
2015-12-28 08:24:32.078307|INFO |LicenseViewer | |Found cached license for version 1 and language en
2015-12-28 08:24:32.518690|INFO |Newsticker | |Newsticker next check: Mon Dec 28 06:20:10 2015
2015-12-28 08:24:32.893195|INFO |Newsticker | |Newsticker received for language en, expires on Mon Dec 28 09:54:32 2015, next check in 1800
seconds
2015/12/28 09:24:55 7991c643 73d7429f DEBUG Storing configuration.
2015/12/28 09:24:55 7991c643 5899bf65 DEBUG Storing configuration.
 
ok, the bind issue only happens with the second instance. So the binding works.
When i try to connect, i get infinite loading. Not a "site does not exist".

netstat -a
shows me the port 8087 as binded.

So the bug/issue must be somewhere starting the interface/bots etc... ?
 
Seriously, you're overdebugging here... That "bind" message is from the clientquery plugin which _can_ only be run by one instance BUT isn't necessary at all. You might even delete it. Usually all of the things you're doing here are not necessary... :)

but the interface is not.
I don't get that^^

How about a complete log and the complete config.ini file if you're still having issues? ;)
 
this is it :) meanwhile i will restart the debian, and see what happens after.
edit: no change after restart.



teamspeak3@Debian-82-jessie-64-LAMP:/root$ xinit /usr/local/teamspeak3/teamspeak3-server_linux-amd64/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

xinit: XFree86_VT property unexpectedly has 0 items instead of 1
___ ___ _ _ _ _ ___ ___ ___ _____ BETA
/ __|_ _| \| | | | / __| _ )/ _ \_ _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

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

2015/12/28 10:34:18 7991c643 INFO Initializing bot://7991c643-08b0-4e6d-9b35-738cf7669547
2015/12/28 10:34:18 7991c643 73d7429f INFO Loaded
2015/12/28 10:34:18 Auto-Starting 7991c643-08b0-4e6d-9b35-738cf7669547/73d7429f-d3f7-4364-9f9f-9449a1508b69 in 2500 ms...
2015/12/28 10:34:18 7991c643 5899bf65 INFO Loaded
2015/12/28 10:34:18 Auto-Starting 7991c643-08b0-4e6d-9b35-738cf7669547/5899bf65-28a5-41cf-8678-9d68158367f0 in 5000 ms...
2015/12/28 10:34:18 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/12/28 10:34:18 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/12/28 10:34:18 youtube-dl checking...
2015/12/28 10:34:19 youtube-dl version compatible, support enabled
2015/12/28 10:34:19 RadioStation data loaded

the rest of the log: https://github.com/frizzant/sinusbotdebugging/wiki
 
Ok... another update. It works now. It had to do with the VPN over which i could not connect to the port 8087 for some reason. After the network admin took out all firewall restrictions for me, it worked. Meaning, it works.

We both now know a little more, that VPNs always (or atleas the firewalls) cause issues ;)
Ah and by the way, the VPN goes over https port 443, that may make a difference.

I will come back, if i can't figure out how to bind to autostart ;) Didn't work with my rbmod yet... but i am confident!
 
Status
Not open for further replies.
Back
Top Bottom