[GH-ISSUE #2513] ts3server stops with Accounting error during cronjob update, and sometimes randomly #1846

Closed
opened 2026-02-27 02:59:21 +03:00 by kerem · 10 comments
Owner

Originally created by @borzaka on GitHub (Sep 16, 2019).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2513

User Story

I have root cronjobs to manage the ts3server. It looks like this:

@reboot su - ts3server -c '/home/ts3server/ts3server monitor' > /dev/null 2>&1
30 5 * * * su - ts3server -c '/home/ts3server/ts3server update' > /dev/null 2>&1
0 0 * * 0 su - ts3server -c '/home/ts3server/ts3server update-functions' > /dev/null 2>&1

Since 2019.09.14. when the update command runs, the server stops and I have to manually start. This happened 2 days in a row.

I have updates below.

Basic info

  • Distro: Debian 10.1
  • Game: TeamSpeak3 server
  • Command: ./ts3server update

Further Information

When I manually run the update command by the ts3server user, or with root, no server stoppings.

Logs

script:

Sep 16 05:30:02.582 ts3server: UPDATE: INFO: Checking for update: teamspeak.com
Sep 16 05:30:04.091 ts3server: UPDATE: PASS: Checking local build
Sep 16 05:30:05.298 ts3server: UPDATE: PASS: Checking remote build
Sep 16 05:30:06.303 ts3server: UPDATE: INFO: No update available
Sep 16 05:30:06.304 ts3server: UPDATE: INFO: Local build: 3.9.1
Sep 16 05:30:06.305 ts3server: UPDATE: INFO: Remote build: 3.9.1
Sep 16 05:30:06.307 ts3server: UPDATE: PASS: command_update.sh exiting with code: 0

server:

strange, I have found this 2 lines in 2 different log files.
ts3server_2019-09-15__11_06_15.947276_0.log
ts3server_2019-09-15__11_06_15.947276_1.log

2019-09-16 03:30:16.396367|ERROR   |Accounting    |   |failed to register local accounting service: No such file or directory
2019-09-16 03:30:16.396785|INFO    |VirtualServerBase|1  |stopped

Don't mind the 03:30 timestamp. It was at 05:30, but ts3server somehow logged 03:30.

updated postdetails (2020.05.10.):
https://termbin.com/wjr4

Expected behaviour

No stopping during updates.

Updates

  • No stopping on the 3rd and 4th day (today).
  • No 'Accounting' error in the server logs.

Before this I was changing TeamSpeak password via ./ts3server change-password
During the password change, it notified me that ts3server will be restarted. A stop occurred, but a restart not. I had to manually start the server again. The anomaly described in this issue started after this:

  • server stopped during update and update-functions
Originally created by @borzaka on GitHub (Sep 16, 2019). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2513 ## User Story I have root cronjobs to manage the ts3server. It looks like this: ``` @reboot su - ts3server -c '/home/ts3server/ts3server monitor' > /dev/null 2>&1 30 5 * * * su - ts3server -c '/home/ts3server/ts3server update' > /dev/null 2>&1 0 0 * * 0 su - ts3server -c '/home/ts3server/ts3server update-functions' > /dev/null 2>&1 ``` Since 2019.09.14. when the `update` command runs, the server stops and I have to manually start. This happened 2 days in a row. I have updates below. ## Basic info * Distro: Debian 10.1 * Game: TeamSpeak3 server * Command: `./ts3server update` ## Further Information When I manually run the `update` command by the `ts3server` user, or with root, no server stoppings. ## Logs ### script: ``` Sep 16 05:30:02.582 ts3server: UPDATE: INFO: Checking for update: teamspeak.com Sep 16 05:30:04.091 ts3server: UPDATE: PASS: Checking local build Sep 16 05:30:05.298 ts3server: UPDATE: PASS: Checking remote build Sep 16 05:30:06.303 ts3server: UPDATE: INFO: No update available Sep 16 05:30:06.304 ts3server: UPDATE: INFO: Local build: 3.9.1 Sep 16 05:30:06.305 ts3server: UPDATE: INFO: Remote build: 3.9.1 Sep 16 05:30:06.307 ts3server: UPDATE: PASS: command_update.sh exiting with code: 0 ``` ### server: strange, I have found this 2 lines in 2 different log files. `ts3server_2019-09-15__11_06_15.947276_0.log` `ts3server_2019-09-15__11_06_15.947276_1.log` ``` 2019-09-16 03:30:16.396367|ERROR |Accounting | |failed to register local accounting service: No such file or directory 2019-09-16 03:30:16.396785|INFO |VirtualServerBase|1 |stopped ``` Don't mind the 03:30 timestamp. It was at 05:30, but ts3server somehow logged 03:30. updated postdetails (2020.05.10.): https://termbin.com/wjr4 ## Expected behaviour No stopping during updates. ## Updates - No stopping on the 3rd and 4th day (today). - No 'Accounting' error in the server logs. Before this I was changing TeamSpeak password via `./ts3server change-password` During the password change, it notified me that ts3server will be restarted. A stop occurred, but a restart not. I had to manually start the server again. The anomaly described in this issue started after this: - server stopped during update and update-functions
Author
Owner

@issue-label-bot[bot] commented on GitHub (Sep 16, 2019):

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

<!-- gh-comment-id:531755053 --> @issue-label-bot[bot] commented on GitHub (Sep 16, 2019): Issue-Label Bot is automatically applying the label `type: bug` to this issue, with a confidence of 0.90. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/GameServerManagers/LinuxGSM) and [code](https://github.com/hamelsmu/MLapp) for this bot.
Author
Owner

@borzaka commented on GitHub (May 8, 2020):

This issue is just happened again. And I have no idea what triggered it.

console:

2020-05-07 03:30:17.233598|ERROR   |Accounting    |   |failed to register local accounting service: No such file or directory
2020-05-07 03:30:17.233947|INFO    |VirtualServerBase|1  |stopped

script:

May 07 05:30:03.871 ts3server: UPDATE: INFO: Checking for update: teamspeak.com
May 07 05:30:04.880 ts3server: UPDATE: PASS: Checking local build
May 07 05:30:06.053 ts3server: UPDATE: PASS: Checking remote build
May 07 05:30:07.058 ts3server: UPDATE: INFO: No update available
May 07 05:30:07.059 ts3server: UPDATE: INFO: Local build: 3.12.1
May 07 05:30:07.059 ts3server: UPDATE: INFO: Remote build: 3.12.1
May 07 05:30:07.062 ts3server: UPDATE: INFO: LinuxGSM version: v20.2.1
May 07 05:30:07.063 ts3server: UPDATE: PASS: command_update.sh exiting with code: 0

server:
2020-05-07 03:30:17.233947|INFO |VirtualServerBase|1 |stopped

Note: The timestamps are off, but this happened on the same time.

I had to manually start.

My cronjobs:

###TeamSpeak###
@reboot su - ts3server -c '/home/ts3server/ts3server monitor' > /dev/null 2>&1
30 5 * * * su - ts3server -c '/home/ts3server/ts3server update' > /dev/null 2>&1
0 0 * * 0 su - ts3server -c '/home/ts3server/ts3server update-functions' > /dev/null 2>&1

Updated postdetails:
https://termbin.com/wjr4

Yesterday it happened out of the blue, no update was scheduled, and dropped everyone on the server:

2020-05-09 22:00:24.504222|ERROR   |Accounting    |   |failed to register local accounting service: No such file or directory
2020-05-09 22:00:24.504281|INFO    |VirtualServerBase|1  |client disconnected 'r3imal'(id:120) reason 'reasonmsg=Server Shutdown!'
2020-05-09 22:00:24.504391|INFO    |VirtualServerBase|1  |client disconnected 'ToT_T1'(id:24) reason 'reasonmsg=Server Shutdown!'
2020-05-09 22:00:24.504800|INFO    |VirtualServerBase|1  |stopped

I found this, but the source site is does not exists:

FIx "Failed to register local accounting service" error message

Edit /etc/fstab and add the following line at the bottom:
tmpfs /dev/shm tmpfs defaults 0 0

Source: http://forum.teamspeak.com/showthread.php/68827-Failed-to-register-local-accounting-service

And found this issue, which might be related: #2436
It says I have to delete this file:

ts3server@debian:~$ ls -al /dev/shm
total 4
drwxrwxrwt  2 root      root        60 May 10 11:25 .
drwxr-xr-x 19 root      root      3300 May  6 17:53 ..
-rw-r--r--  1 ts3server ts3server  128 May 10 11:25 7gbhujb54g8z9hu43jre8

But the ownership looks right.

When the ts3server is not running, the 7gbhujb54g8z9hu43jre8 file doesn't exists:

ts3server@debian:~$ ls -al /dev/shm
total 0
drwxrwxrwt  2 root root   40 May 11 05:30 .
drwxr-xr-x 19 root root 3300 May  6 17:53 ..

After I start it creates it.

I found this in the official docs:
https://docs.linuxgsm.com/game-servers/teamspeak-3#accounting-failed-to-register

<!-- gh-comment-id:625973965 --> @borzaka commented on GitHub (May 8, 2020): This issue is just happened again. And I have no idea what triggered it. console: ``` 2020-05-07 03:30:17.233598|ERROR |Accounting | |failed to register local accounting service: No such file or directory 2020-05-07 03:30:17.233947|INFO |VirtualServerBase|1 |stopped ``` script: ``` May 07 05:30:03.871 ts3server: UPDATE: INFO: Checking for update: teamspeak.com May 07 05:30:04.880 ts3server: UPDATE: PASS: Checking local build May 07 05:30:06.053 ts3server: UPDATE: PASS: Checking remote build May 07 05:30:07.058 ts3server: UPDATE: INFO: No update available May 07 05:30:07.059 ts3server: UPDATE: INFO: Local build: 3.12.1 May 07 05:30:07.059 ts3server: UPDATE: INFO: Remote build: 3.12.1 May 07 05:30:07.062 ts3server: UPDATE: INFO: LinuxGSM version: v20.2.1 May 07 05:30:07.063 ts3server: UPDATE: PASS: command_update.sh exiting with code: 0 ``` server: `2020-05-07 03:30:17.233947|INFO |VirtualServerBase|1 |stopped` Note: The timestamps are off, but this happened on the same time. I had to manually start. My cronjobs: ``` ###TeamSpeak### @reboot su - ts3server -c '/home/ts3server/ts3server monitor' > /dev/null 2>&1 30 5 * * * su - ts3server -c '/home/ts3server/ts3server update' > /dev/null 2>&1 0 0 * * 0 su - ts3server -c '/home/ts3server/ts3server update-functions' > /dev/null 2>&1 ``` Updated postdetails: https://termbin.com/wjr4 Yesterday it happened out of the blue, no update was scheduled, and dropped everyone on the server: ``` 2020-05-09 22:00:24.504222|ERROR |Accounting | |failed to register local accounting service: No such file or directory 2020-05-09 22:00:24.504281|INFO |VirtualServerBase|1 |client disconnected 'r3imal'(id:120) reason 'reasonmsg=Server Shutdown!' 2020-05-09 22:00:24.504391|INFO |VirtualServerBase|1 |client disconnected 'ToT_T1'(id:24) reason 'reasonmsg=Server Shutdown!' 2020-05-09 22:00:24.504800|INFO |VirtualServerBase|1 |stopped ``` I found this, but the source site is does not exists: > FIx "Failed to register local accounting service" error message > > Edit /etc/fstab and add the following line at the bottom: > `tmpfs /dev/shm tmpfs defaults 0 0` > > Source: http://forum.teamspeak.com/showthread.php/68827-Failed-to-register-local-accounting-service And found this issue, which might be related: #2436 It says I have to delete this file: ``` ts3server@debian:~$ ls -al /dev/shm total 4 drwxrwxrwt 2 root root 60 May 10 11:25 . drwxr-xr-x 19 root root 3300 May 6 17:53 .. -rw-r--r-- 1 ts3server ts3server 128 May 10 11:25 7gbhujb54g8z9hu43jre8 ``` But the ownership looks right. When the ts3server is not running, the `7gbhujb54g8z9hu43jre8` file doesn't exists: ``` ts3server@debian:~$ ls -al /dev/shm total 0 drwxrwxrwt 2 root root 40 May 11 05:30 . drwxr-xr-x 19 root root 3300 May 6 17:53 .. ``` After I start it creates it. I found this in the official docs: https://docs.linuxgsm.com/game-servers/teamspeak-3#accounting-failed-to-register
Author
Owner

@h3o66 commented on GitHub (Sep 13, 2020):

Are there any special settings set in LGSM ?

<!-- gh-comment-id:691721756 --> @h3o66 commented on GitHub (Sep 13, 2020): Are there any special settings set in LGSM ?
Author
Owner

@gxind commented on GitHub (Jan 27, 2021):

just run into the same story
any update on this issue?
debian 10

<!-- gh-comment-id:768141264 --> @gxind commented on GitHub (Jan 27, 2021): just run into the same story any update on this issue? debian 10
Author
Owner

@h3o66 commented on GitHub (Jan 27, 2021):

Imho a fix could be created, that could delete this if no other Teamspeak 3 instance is running on the server.
But this should not happen usually if the server is stopped under normal conditions.

<!-- gh-comment-id:768435824 --> @h3o66 commented on GitHub (Jan 27, 2021): Imho a fix could be created, that could delete this if no other Teamspeak 3 instance is running on the server. But this should not happen usually if the server is stopped under normal conditions.
Author
Owner

@h3o66 commented on GitHub (Jan 27, 2021):

Hopefully this is fixed by the PR
If someone is able to test it, feel free to.

<!-- gh-comment-id:768494543 --> @h3o66 commented on GitHub (Jan 27, 2021): Hopefully this is fixed by the PR If someone is able to test it, feel free to.
Author
Owner

@h3o66 commented on GitHub (Feb 23, 2021):

updated my PR, maybe someone wants to check this :)

<!-- gh-comment-id:784541051 --> @h3o66 commented on GitHub (Feb 23, 2021): updated my PR, maybe someone wants to check this :)
Author
Owner

@netstx commented on GitHub (Mar 2, 2021):

Is this common to most game servers or just ts3? I have an issue where my Valheim server stops after updates (set to check for update during server start in the config). Was wondering if this is related at all, or if I should keep looking. Thanks.

<!-- gh-comment-id:788940149 --> @netstx commented on GitHub (Mar 2, 2021): Is this common to most game servers or just ts3? I have an issue where my Valheim server stops after updates (set to check for update during server start in the config). Was wondering if this is related at all, or if I should keep looking. Thanks.
Author
Owner

@h3o66 commented on GitHub (Mar 2, 2021):

Is this common to most game servers or just ts3? I have an issue where my Valheim server stops after updates (set to check for update during server start in the config). Was wondering if this is related at all, or if I should keep looking. Thanks.

this is just a issue specific for TS3

<!-- gh-comment-id:788980412 --> @h3o66 commented on GitHub (Mar 2, 2021): > Is this common to most game servers or just ts3? I have an issue where my Valheim server stops after updates (set to check for update during server start in the config). Was wondering if this is related at all, or if I should keep looking. Thanks. this is just a issue specific for TS3
Author
Owner

@github-actions[bot] commented on GitHub (Mar 15, 2022):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1067424784 --> @github-actions[bot] commented on GitHub (Mar 15, 2022): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#1846
No description provided.