Teamspeak Server 3.13.7 on Debian starts only as "root"

I’ve updated my Teamspeak server to version 3.13.7 and now I’m trying to get it to run as a service under the user teamspeak as the previous version taht I’ve run before.

I’ve noticed that the server runs OK when I’m starting ./ts3server under the user root. It crashes when starting it under the user teamspeak. The ownership of the directory where I’ve extracted the .tar.bz2 to, are correctly set to teamspeak:teamspeak, so it is not a file permission problem.

I get the following output:

teamspeak@GoedelServer:/opt/teamspeak3-server_linux_amd64$ ./ts3server
2022-11-01 20:06:49.505292|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.13.7 (2022-06-20 12:21:53)
2022-11-01 20:06:49.505593|INFO    |ServerLibPriv |   |SystemInformation: Linux 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 Binary: 64bit
2022-11-01 20:06:49.507077|INFO    |DatabaseQuery |   |dbPlugin name:    SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
2022-11-01 20:06:49.507206|INFO    |DatabaseQuery |   |dbPlugin version: 3.11.1
2022-11-01 20:06:49.507665|INFO    |DatabaseQuery |   |checking database integrity (may take a while)
2022-11-01 20:06:49.577192|WARNING |Accounting    |   |Unable to open licensekey.dat, falling back to limited functionality
2022-11-01 20:06:49.577561|INFO    |Accounting    |   |Licensing Information
2022-11-01 20:06:49.577613|INFO    |Accounting    |   |licensed to       : Anonymous
2022-11-01 20:06:49.577661|INFO    |Accounting    |   |type              : No License
2022-11-01 20:06:49.577717|INFO    |Accounting    |   |starting date     : Tue Feb  1 00:00:00 2022
2022-11-01 20:06:49.577768|INFO    |Accounting    |   |ending date       : Thu Jul  1 00:00:00 2027
2022-11-01 20:06:49.577816|INFO    |Accounting    |   |max virtualservers: 1
2022-11-01 20:06:49.577859|INFO    |Accounting    |   |max slots         : 32
2022-11-01 20:06:50.077926|ERROR   |Accounting    |   |failed to register local accounting service: File exists
2022-11-01 20:06:50.919765|INFO    |              |   |Puzzle precompute time: 1245
2022-11-01 20:06:50.920629|INFO    |FileManager   |   |listening on 0.0.0.0:30033, [::]:30033
2022-11-01 20:06:50.937943|INFO    |Query         |   |Using a query thread pool size of 2
2022-11-01 20:06:51.031931|INFO    |VirtualServerBase|1  |listening on 0.0.0.0:9987, [::]:9987
2022-11-01 20:06:51.032436|INFO    |Query         |   |listening for query on 0.0.0.0:10011, [::]:10011
2022-11-01 20:06:51.032910|INFO    |Query         |   |listening for ssh query on 0.0.0.0:10022, [::]:10022
2022-11-01 20:06:51.033238|INFO    |Query         |   |listening for http query on 0.0.0.0:10080, [::]:10080
2022-11-01 20:06:51.033455|INFO    |CIDRManager   |   |updated query_ip_allowlist ips: 127.0.0.1/32, ::1/128,
2022-11-01 20:06:51.033763|INFO    |VirtualServerBase|1  |stopped

ts3server has crashed. A crashdump has been generated at "/opt/teamspeak3-server_linux_amd64/crashdumps/ts3server_3_13_7_linux_amd64_7242-aa53-3909-da26.dmp"
Segmentation fault

However, when starting it as root, it seems to work fine:

root@GoedelServer:/opt/teamspeak3-server_linux_amd64# ./ts3server
2022-11-01 20:07:59.225328|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.13.7 (2022-06-20 12:21:53)
2022-11-01 20:07:59.225632|INFO    |ServerLibPriv |   |SystemInformation: Linux 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 Binary: 64bit
2022-11-01 20:07:59.227078|INFO    |DatabaseQuery |   |dbPlugin name:    SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
2022-11-01 20:07:59.227208|INFO    |DatabaseQuery |   |dbPlugin version: 3.11.1
2022-11-01 20:07:59.227689|INFO    |DatabaseQuery |   |checking database integrity (may take a while)
2022-11-01 20:07:59.297496|WARNING |Accounting    |   |Unable to open licensekey.dat, falling back to limited functionality
2022-11-01 20:07:59.297865|INFO    |Accounting    |   |Licensing Information
2022-11-01 20:07:59.297920|INFO    |Accounting    |   |licensed to       : Anonymous
2022-11-01 20:07:59.297970|INFO    |Accounting    |   |type              : No License
2022-11-01 20:07:59.298034|INFO    |Accounting    |   |starting date     : Tue Feb  1 00:00:00 2022
2022-11-01 20:07:59.298095|INFO    |Accounting    |   |ending date       : Thu Jul  1 00:00:00 2027
2022-11-01 20:07:59.298140|INFO    |Accounting    |   |max virtualservers: 1
2022-11-01 20:07:59.298183|INFO    |Accounting    |   |max slots         : 32
2022-11-01 20:08:01.051500|INFO    |              |   |Puzzle precompute time: 1656
2022-11-01 20:08:01.052337|INFO    |FileManager   |   |listening on 0.0.0.0:30033, [::]:30033
2022-11-01 20:08:01.070074|INFO    |Query         |   |Using a query thread pool size of 2
2022-11-01 20:08:01.165606|INFO    |VirtualServerBase|1  |listening on 0.0.0.0:9987, [::]:9987
2022-11-01 20:08:01.166081|INFO    |Query         |   |listening for query on 0.0.0.0:10011, [::]:10011
2022-11-01 20:08:01.166606|INFO    |Query         |   |listening for ssh query on 0.0.0.0:10022, [::]:10022
2022-11-01 20:08:01.166892|INFO    |Query         |   |listening for http query on 0.0.0.0:10080, [::]:10080
2022-11-01 20:08:01.167110|INFO    |CIDRManager   |   |updated query_ip_allowlist ips: 127.0.0.1/32, ::1/128,

I would attach the crashdump file here but I can’t, it accepts image files only.

I’m running Debian Linux Linux Server 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 GNU/Linux on a Intel(R) Celeron(R) CPU J1900 @ 1.99GHz with 4 cores on 8GB RAM.

It might have to do with the line

2022-11-01 20:06:50.077926|ERROR   |Accounting    |   |failed to register local accounting service: File exists

which I don’t get when I start it as root. But which file exists? Where is it located? I would delete it if I would know which one…

Sorry to bother you, I finally found the solution here:

I had the problem because after the update to the new version I started the program from user root and this created a file in /dev/shm with root permissions and only read access for other users. After having deleted this file, the server starts now also as teamspeak user.

Maybe others have the same problem and are as slow as I am finding the solution with Google.

Otherwise, sorry for bothering you with my unnecessary question.

Cheers

1 Like