TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
114 stars 52 forks source link

failed to register local accounting service #28

Closed Legion2 closed 4 years ago

Legion2 commented 5 years ago

The server stops at random intervals because of failed to register local accounting service: Bad file descriptor. I use the docker compose file with sqlite, ssh query and no license. Complete log:

teamspeak_1  | 2019-07-08 03:18:43.378943|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.9.0 (2019-06-24 09:23:59)
teamspeak_1  | 2019-07-08 03:18:43.402535|INFO    |ServerLibPriv |   |SystemInformation: Linux 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 i686 Binary: 32bit
teamspeak_1  | 2019-07-08 03:18:43.404129|WARNING |ServerLibPriv |   |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
teamspeak_1  | 2019-07-08 03:18:43.440195|INFO    |DatabaseQuery |   |dbPlugin name:    SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
teamspeak_1  | 2019-07-08 03:18:43.441353|INFO    |DatabaseQuery |   |dbPlugin version: 3.11.1
teamspeak_1  | 2019-07-08 03:18:43.490461|INFO    |DatabaseQuery |   |checking database integrity (may take a while)
teamspeak_1  | 2019-07-08 03:18:44.301141|WARNING |Accounting    |   |Unable to open licensekey.dat, falling back to limited functionality
teamspeak_1  | 2019-07-08 03:18:44.382811|INFO    |Accounting    |   |Licensing Information
teamspeak_1  | 2019-07-08 03:18:44.383925|INFO    |Accounting    |   |licensed to       : Anonymous
teamspeak_1  | 2019-07-08 03:18:44.385120|INFO    |Accounting    |   |type              : No License
teamspeak_1  | 2019-07-08 03:18:44.388553|INFO    |Accounting    |   |starting date     : Tue Jan  1 00:00:00 2019
teamspeak_1  | 2019-07-08 03:18:44.389801|INFO    |Accounting    |   |ending date       : Fri Jan 31 00:00:00 2020
teamspeak_1  | 2019-07-08 03:18:44.391218|INFO    |Accounting    |   |max virtualservers: 1
teamspeak_1  | 2019-07-08 03:18:44.392177|INFO    |Accounting    |   |max slots         : 32
teamspeak_1  | 2019-07-08 03:18:44.979224|INFO    |              |   |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
teamspeak_1  | 2019-07-08 03:19:10.180971|INFO    |              |   |Puzzle precompute time: 24979
teamspeak_1  | 2019-07-08 03:19:10.200371|INFO    |FileManager   |   |listening on 0.0.0.0:30033, [::]:30033
teamspeak_1  | 2019-07-08 03:19:10.543362|INFO    |VirtualServer |1  |listening on 0.0.0.0:9987, [::]:9987
teamspeak_1  | 2019-07-08 03:19:10.587277|INFO    |Query         |   |listening for query ssh on 0.0.0.0:10022, [::]:10022
teamspeak_1  | 2019-07-08 03:19:10.603100|INFO    |CIDRManager   |   |updated query_ip_whitelist ips: 127.0.0.1/32,
teamspeak_1  | 2019-07-08 07:05:38.515378|ERROR   |Accounting    |   |failed to register local accounting service: Bad file descriptor
teamspeak_1  | 2019-07-08 07:05:38.610082|INFO    |VirtualServerBase|1  |stopped
muenchow commented 5 years ago

This problem arises when the teamspeak server can not access /dev/shm all the time.

Legion2 commented 5 years ago

Do i have to mount it in the container?

muenchow commented 5 years ago

it already is. for some reason the shared memory became unavailable for the system(Bad file descriptor). I had some feedback internally and i think we can make an improvement for this with the next server version.

Legion2 commented 4 years ago

This problem seems to be related to low memory that is available on my server. Since I removed a service that consumed much memory ten days ago, the Teamspeak container did not crash anymore.

muenchow commented 4 years ago

yes, it needs a few bytes of shared memory, if all of the shared memory is being used by other processes it will have problems. I also have unfortunate news, it was ultimately decided against fixing this issue forever due to other concerns during testing. I will look into a possible docker only solution, but for now, the shared memory must be available.