Could not register the local accounting service: The file already exists

No connection to the server possible. As soon as I want to connect, only the warning sound Error comes, and that permanently one after the other.

Here is the log:

2022-09-11 10:49:24.809621|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.13.5 (2021-05-17 08:13:36)
2022-09-11 10:49:24.809703|INFO |ServerLibPriv | |SystemInformation: Linux 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64 Binary: 64bit
2022-09-11 10:49:24.809728|INFO |ServerLibPriv | |Uses hardware aes
2022-09-11 10:49:24.810322|INFO |DatabaseQuery | |dbPlugin Name: SQLite3 Plugin, Version 3, (c)TeamSpeak Systems GmbH
2022-09-11 10:49:24.810354|INFO |DatabaseQuery |dbPlugin Version: 3.11.1
2022-09-11 10:49:24.810620|INFO |DatabaseQuery | Database integrity check (may take a while)
2022-09-11 10:49:24.817238|INFO |SQL | |db_CreateTables() tables created
2022-09-11 10:49:24.839059|WARNING |Accounting | |Cannot open licensekey.dat, falls back to limited functionality
2022-09-11 10:49:24.839177|INFO |Accounting | |Licensing information
2022-09-11 10:49:24.839191|INFO |Accounting |Licensed to : Anonymous
2022-09-11 10:49:24.839199|INFO |Accounting | |Type : No license
2022-09-11 10:49:24.839214|INFO |Accounting | |Start Date : Thu Oct 1 00:00:00 2020
2022-09-11 10:49:24.839222|INFO |Accounting | |End date : Tue Nov 1 00:00:00 2022
2022-09-11 10:49:24.839228|INFO |Accounting | |max virtualservers: 1
2022-09-11 10:49:24.839234|INFO |Accounting | |max slots : 32
2022-09-11 10:49:25.339533|ERROR |Accounting | |could not register the local accounting service: The file already exists
2022-09-11 10:49:25.636773|INFO | |Puzzle precalculation time: 781
2022-09-11 10:49:25.639610|INFO |FileManager |Listening to 0.0.0.0:30033, [::]:30033
2022-09-11 10:49:25.640187|INFO |VirtualSvrMgr | Run monthly interval
2022-09-11 10:49:25.640294|INFO |VirtualSvrMgr | |Reset virtual server traffic statistics
2022-09-11 10:49:25.646170|INFO |Query | |Uses a query thread pool size of 2
2022-09-11 10:49:25.663759|INFO |Query | |Waits for query on 0.0.0.0:10011, [::]:10011
2022-09-11 10:49:25.663876|INFO |generates QUERY_SSH_RSA_HOST_KEY file: ssh_host_rsa_key
2022-09-11 10:49:25.749706|INFO |myTeamSpeak identifier blocking list was successfully downloaded - all related functions are enabled
2022-09-11 10:49:27.651441|INFO |Query | listens to ssh query on 0.0.0.0:10022, [::]:10022
2022-09-11 10:49:27.651569|INFO |Query | listens to http request on 0.0.0.0:10080, [::]:10080
2022-09-11 10:49:27.651750|INFO |CIDRManager | |updated query_ip_allowlist ips: 127.0.0.1/32, ::1/128,

Check if these steps help you

Was just about to restart the server because crashed.

Found ts3server.pid, but no server running. Possibly your previously started server crashed
Please see the log file for details.
Starting the TeamSpeak 3 server
TeamSpeak 3 server started, please see the logfile for details

Just checked all processes, no more for Teamspeak there

However, because TS did not respond, I also completely reinstalled the server. So there should really be all the data from gone

However, the 1st time the server was started via root, accidentally

Have you an old server running on another instance?

I think the old server is still running or was killed.

How can I find out if something is still running somewhere? Under active processes I see nothing

Your Server shows the following Error:

The Reason could be:

A file was created by root and can’t be used by your non-root user.

Fix:
Check for a cryptic file in /dev/shm/

ls -al /dev/shm/
total 39228
drwxrwxrwt 2 root root 1800 Dez 5 11:41 .
drwxr-xr-x 17 root root 3640 Nov 13 06:47 …
-rw-r–r-- 1 root root 128 Dez 5 11:41 7gbhujb54g8z9hu43jre8

And remove the cryptic file now with the following command:

rm /dev/shm/7gbhujb54g8z9hu43jre8

If you start your TeamSpeak Server now, the file will be created with the correct user.

4 Likes

Fixed my transfer from root to user as well. Thanks!

1 Like

Thank you!
This is precisely what I needed.

1 Like