• 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 TSClient quit - 0.9.8

Status
Not open for further replies.

Patoufle

Member
28 October 2016 - Using version 0.9.8

Hey there. First of all, I got to say, I really looked for others posts like this one, even the ones in german (and I dont speak german at all), and I didnt find any answer to my problem.

I just recently discovered Sinusbot, and god, I do want to use this marvelous tool.

THE ERROR :
Code:
2016/10/28 00:12:28 188fd3de INFO   Initializing bot://188fd3de-1ac4-47de-9062-2ea5cc55301b
2016/10/28 00:12:28 188fd3de d0d3114e DEBUG  Spawning instance shortly due to missing configuration file
2016/10/28 00:12:28 188fd3de d0d3114e INFO   Loaded
2016/10/28 00:12:28 FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2016/10/28 00:12:28 FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2016/10/28 00:12:28 188fd3de d0d3114e INFO   Starting instance ts3server://127.0.0.1?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
QXcbConnection: Could not connect to display :0.0
2016/10/28 00:12:28 188fd3de d0d3114e INFO   TSClient quit.
2016/10/28 00:12:28 RadioStation data loaded
2016/10/28 00:12:29 Imported radio stations
2016/10/28 00:12:33 188fd3de d0d3114e WARN   Could not request shutdown
2016/10/28 00:12:58 188fd3de d0d3114e DEBUG  Storing configuration.
That's all I get. It don't go further.
I saw this "TSClient quit" quite a few times on the forum, but still, problem unresolved.

What I can say is that clearly the BOT can't join the server.
The TeamSpeak3 Server is alive when running the bots, and reachable from the outside (I was connected on it).
Also, another Bot I use from another addon called JTS3ServerMod was reaching the TS3 Server and was able to connect.

THE DATA FROM DIAG SCRIPT :

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: 0.05 0.07 0.05
 - Uptime: 0 days, 10 hours, 13 minutes, 13 seconds
 - OS Updates: 1 (updates available!)
 - OS Missing Packages: None (v1)
 - OS APT Last Update: 25.10.2016 15:27:30 CEST +02:00:00
 - Bot Start Script: not found
 - DNS resolution check: google.com -> OK
 - CPU:
  Architecture:  x86_64
  CPU(s):  2
  Thread(s) per core:  1
  Core(s) per socket:  2
  Socket(s):  1
  Model name:  Intel(R) Atom(TM) CPU  C2350  @ 1.74GHz
  CPU MHz:  1745.626
  Virtualization:  VT-x
 - RAM: 1.43 GB/3.83 GB in use (37%)
 - SWAP: 0 B/976.99 MB in use (0%)
 - DISK: 6.42 GB/103.94 GB in use (6%)
 - Package versions:
  > libglib: 2.42.1-1+b1

BOT INFORMATION
 - Status: running (PIDs: 10886, User: teamspeak)
 - Webinterface: port locally reachable (Port: 8087)
 - Binary: /home/teamspeak/addons/sinusbot/ts3bot (MD5 Hash: 3b2c7f99a3b0a358e7d328079c4fa8b8)
 - Version:
 - TS3 Plugin: installed (md5 hash match)
  - Bot Plugin: db9ca817116ad2a1d5f1efa4aabae409
  - TS3 Client: db9ca817116ad2a1d5f1efa4aabae409
 - Config:
  - LogLevel = 10 (debug log active)
  - TS3Path = /home/teamspeak/addons/sinusbot/TeamSpeak3Client/ts3client_linux_amd64 (Version 3.0.19.4)
  - YoutubeDLPath = not set
 - Installed scripts: scripts folder not found (using < v0.9.9?)

OTHER INFORMATION
 - Report date: 28.10.2016 00:18:01 CEST +02:00:00 (timezone: Europe/Paris)
 - TeamSpeak 3 Version: 3.0.19.4
 - youtube-dl Version: unknown
 - DiagScript version: 0.4.6
==========================================================


THE CONFIG.INI :

Code:
TS3Path = "/home/teamspeak/addons/sinusbot/TeamSpeak3Client/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = ""
ListenPort = 8087
LocalPlayback = false
SecretKey = [40, 114, 194, 168, 247, 136, 169, 27, 225, 238, 64, 65, 112, 37, 239, 197, 93, 209, 210, 178, 241, 206, 192, 177, 85, 147, 172, 166, 246, 43, 38, 247]
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]

MISCELLANEOUS DATA :

- The installation is all fresh, I just did it, everything is up to date, all dependency are installed.
- Bot files Path : /home/teamspeak/addons/sinusbot/
- TSClient files Path : /home/teamspeak/addons/sinusbot/TeamSpeak3Client

- The entire directory and sub-directories (/home/teamspeak) belongs to the user "teamspeak".
=>
Code:
 chown -R teamspeak:teamspeak /home/teamspeak/
- Also :
=>
Code:
 chmod 755 -R /home/teamspeak/

- The web interface is working.
- I tried to reboot the server, no changes.

FILES LIST in /home/teamspeak/addons/sinusbot/ :
- config.ini
- data
- libavcodec.so.56
- libavutil.so.54
- plugin
- TeamSpeak3Client
- config.ini.dist
- diagSinusbot.sh
- libavformat.so.56
- libswresample.so.1
- README.md
- ts3bot

MY IPTABLES FIREWALL - RULES FOR TEAMSPEAK SRV AND ADDONS :

Like any other firewall script, everything is blocked then I make rules to unblock ports.

Code:
# TS SERVER
iptables -t filter -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 10011 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 30033 -j ACCEPT

#TS Server Addons
iptables -t filter -A INPUT -p tcp --dport 8087 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 8087 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 9987 -j ACCEPT

I added the OUTPUT on 8087 and 9987 with the theory that maybe the bot need one of theses in OUTPUT, but no changes.

----

I'm surely missing something stupid, but I seems to be blind.
Thanks for reading, with the hope someone could help.
 

Patoufle

Member
Thanks a lot, it's working now.

Can I still ask, why wasnt it working with the older version ?
I followed this tutorial : https://forum.sinusbot.com/threads/english-installation-debian-ubuntu-sinusbot-beta-versions.610/
Someone should update the links or do something about it, there is at least 2 or 3 installations tutorial, and if it's not working only bcz of that... well that's sucks :(

I have another question, what about my iptables rules ? What is really needed ? Can I remove the OUTPUTs on 8087 et 9987 ?
 

kanalumaddela

Insider
Insider
Can I still ask, why wasnt it working with the older version ?
QXcbConnection: Could not connect to display :0.0 2016/10/28 00:12:28 188fd3de d0d3114e INFO TSClient quit.
Solution: (future people who see this should not be running v0.9.8)
https://github.com/flyth/ts3soundbot/wiki/Installation---Debian-&-Ubuntu-(v0.9.8) under the troubleshooting section.
Code:
LC_ALL="en_US.UTF-8" xinit /opt/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Exchange en_US.UTF-8 to whatever locale you're using.
Can I remove the OUTPUTs on 8087 et 9987 ?
Yes.
 
Status
Not open for further replies.
Top