Installing TeamSpeak into Jail

Installing TeamSpeak into Jail

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653

Skro

Contributor
Joined
Jun 26, 2018
Messages
100
Thank you, This will be very helpful for many people!
 

Spencer Myers

Dabbler
Joined
Sep 30, 2016
Messages
20
Thank you so much for posting a new Teamspeak Installation guide. It's been desperately needed.

I cannot get the service to start. In the teamspeak log, I get the errors below...
2020-02-10 06:55:08.258539|ERROR |FileManager | |bind failed on [::]:30033; reason: Protocol not supported
2020-02-10 06:55:08.258597|ERROR |FileManager | |filetransfer bind failed on :::30033; reason: Protocol not supported
2020-02-10 06:55:08.258646|CRITICAL|VirtualSvrMgr | |Could not start file manager 258 no network port available

Any ideas on how to resolve this?
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
@Spencer Myers Seems like it is trying to bind to IPv6. Try to force IPv4 instead.

Add following to /usr/local/etc/teamspeak/ts3server.ini and try to start again.

voice_ip=0.0.0.0 query_ip=0.0.0.0 filetransfer_ip=0.0.0.0
 
Last edited:

Spencer Myers

Dabbler
Joined
Sep 30, 2016
Messages
20
Thanks for the quick reply and the info about a .ini file, however, that file didn't exist in the directory. I took a previous .ini teamspeak file, which seemed to work.
For generating a ts3server.ini file, others can use the info below.

Code:
machine_id=
default_voice_port=9987 *or specified port*
voice_ip=0.0.0.0
licensepath=
filetransfer_port=30033
filetransfer_ip=0.0.0.0
query_port=10011
query_ip=0.0.0.0
query_ip_whitelist=query_ip_whitelist.txt
query_ip_blacklist=query_ip_blacklist.txt
dbplugin=ts3db_sqlite3
dbpluginparameter=
dbsqlpath=sql/
dbsqlcreatepath=create_sqlite/
dbconnections=10
logpath=logs
logquerycommands=0
dbclientkeepdays=30
logappend=0
query_skipbruteforcecheck=0
query_buffer_mb=20
http_proxy=
license_accepted=0
serverquerydocs_path=serverquerydocs/
query_ssh_ip=0.0.0.0
query_ssh_port=10022
query_protocols=raw,ssh
query_ssh_rsa_host_key=ssh_host_rsa_key
query_timeout=300
 
Last edited:

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
@Spencer Myers Yea forgot to mention that. All of the parameters are stored in DB by default so the ts3server.ini file does not exist after fresh installation. You can just create empty file with that name and add whatever parameter you want to override the DB values. Alternatively you can change most of them directly in DB as well.

I suggest you to remove the config content you posted. It is not necessary to have all of these specified and it might cause conflicts with the guide. For example if one changes the listening port via DB (as per the guide) and then use your config he will end up with listening port 9987 instead of the one changed in DB.

I will update the guide with the binding IP related issue. Apparently it does not play well with IPv6 (i have it fully disabled on my network/NAS)
 

Spencer Myers

Dabbler
Joined
Sep 30, 2016
Messages
20
I tired a freshly created .ini file with just voice_ip=192.168.1.113 and it still wouldn't start, but when using the full .ini file it started no problem. Not sure what was in the previously created ini that allowed the server to function properly vs just the single line.
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
@Spencer Myers Try these please:
voice_ip=0.0.0.0 query_ip=0.0.0.0 filetransfer_ip=0.0.0.0

If it fails to start again please post recent logs from /var/log/teamspeak/
 
Last edited:

Spencer Myers

Dabbler
Joined
Sep 30, 2016
Messages
20
@HolyK What would be the best steps for updating the teamspeak installation to the latest version when TS pushes an update or free license runs out in a year?
 

paukyducky

Cadet
Joined
Jan 18, 2018
Messages
5
Hi!

I followed your tutorial and it worked. But I can only connect internally... I already forwarded the ports UDP 9987, TCP 30033 and 10011, but I cannot connect externally. Is there something that I need to do?

output of the log:

2020-05-13 16:48:19.756037|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
2020-05-13 16:48:19.756219|INFO |DatabaseQuery | |dbPlugin name: SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
2020-05-13 16:48:19.756251|INFO |DatabaseQuery | |dbPlugin version: 3.11.1
2020-05-13 16:48:19.756379|INFO |DatabaseQuery | |checking database integrity (may take a while)
2020-05-13 16:48:19.766615|WARNING |Accounting | |Unable to open /usr/local/etc/teamspeak/licensekey.dat, falling back to limited functionality
2020-05-13 16:48:19.766752|INFO |Accounting | |Licensing Information
2020-05-13 16:48:19.766779|INFO |Accounting | |licensed to : Anonymous
2020-05-13 16:48:19.766801|INFO |Accounting | |type : No License
2020-05-13 16:48:19.766918|INFO |Accounting | |starting date : Sat Feb 1 00:00:00 2020
2020-05-13 16:48:19.766946|INFO |Accounting | |ending date : Mon Feb 1 00:00:00 2021
2020-05-13 16:48:19.766970|INFO |Accounting | |max virtualservers: 1
2020-05-13 16:48:19.766994|INFO |Accounting | |max slots : 32
2020-05-13 16:48:20.341320|INFO | | |Puzzle precompute time: 543
2020-05-13 16:48:20.341788|INFO |FileManager | |listening on 0.0.0.0:30033, [::]:30033
2020-05-13 16:48:20.374876|INFO |Query | |listening for query on 0.0.0.0:10011, [::]:10011
2020-05-13 16:48:20.375060|INFO |Query | |listening for ssh query on 0.0.0.0:10022, [::]:10022
2020-05-13 16:48:20.375175|INFO |CIDRManager | |updated query_ip_whitelist ips: 127.0.0.1/32, ::1/128,
2020-05-13 16:48:20.486667|INFO | | |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
2020-05-13 16:48:20.374710|INFO |VirtualServerBase|1 |listening on 0.0.0.0:9987, [::]:9987


I tried to connect via myip:9987... but it refuses...

Any help would be appreciated!

Thanks!
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912

KBB

Cadet
Joined
Sep 25, 2020
Messages
9
Has somebody a solution to update the port because the license is running out?
I tried it with portmaster but it didn't work.
Until now i'm creating a new jail and install it again every time the server is stopping to work due to the license issue.
But this is creating a lot of iocage trash jails.
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
Has somebody a solution to update the port because the license is running out?
I tried it with portmaster but it didn't work.
Until now i'm creating a new jail and install it again every time the server is stopping to work due to the license issue.
But this is creating a lot of iocage trash jails.

Yop, just update pkg system and reinstall.
It will preserve the DB but if you want to be on the safe side just backup the /var/db/teamspeak/ts3server.sqlitedb

Code:
pkg update
pkg upgrade
portsnap fetch
portsnap fetch update
portsnap extract
cd /usr/ports/audio/teamspeak3-server/
make reinstall
service teamspeak start
 

RedPull

Dabbler
Joined
Aug 27, 2016
Messages
17
i get this message:
"teamspeak does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable"
right after i did
Code:
cd /usr/ports/audio/teamspeak3-server/
Code:
make install clean
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
i get this message:
"teamspeak does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable"
right after i did
Code:
cd /usr/ports/audio/teamspeak3-server/
Code:
make install clean

Hi, seems like it tries to start the service right after the installation. Just follow the guide. The very next step is to edit /etc/rc.conf.
 

RedPull

Dabbler
Joined
Aug 27, 2016
Messages
17
Yes, actually i did add
Code:
# Enable TeamSpeak
teamspeak_enable="YES"

to the file
Code:
/etc/rc.conf

I get the message when i try to start teamspeak for the 1st time with
Code:
service teamspeak start
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
653
Yes, actually i did add
Code:
# Enable TeamSpeak
teamspeak_enable="YES"

to the file
Code:
/etc/rc.conf

I get the message when i try to start teamspeak for the 1st time with
Code:
service teamspeak start
Ok something changed then. I'll test it later on this week and update the guide. Thanks for your report.
Also could you please send me version of your TrueNas and version of the Jail itself.
 

RedPull

Dabbler
Joined
Aug 27, 2016
Messages
17
Ok something changed then. I'll test it later on this week and update the guide. Thanks for your report.
Also could you please send me version of your TrueNas and version of the Jail itself.
This particular issue that i mentioned above happens with a 13.2-p2 jail release.

In a jail version 12.4 or 13.1 i get this message:
Code:
make: "/usr/ports/Mk/bsd.port.mk" line 1213: UNAME_r (13.1-RELEASE-p7) and OSVERSION (1204000) do not agree on major version number.
After Entering
Code:
cd /usr/ports/audio/teamspeak3-server/

make install clean


Edit: TrueNAS version is 13.0-U4
 
Top