Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Join Date
    March 2016
    Location
    Germany
    Posts
    26

    Server Crash (server_accounting.cpp:555 / 538)

    RESOLVED:
    Teamspeak Server crashes after two minutes if it has no right to write to the licensekey.dat AND has to update it, I see this as an error as teamspeak could warn about this case, instead of crashing by "checking" this with an assertion in their code, printing a cryptic message (at server_accounting.cpp line 555).

    My update script seems to have gotten a problem and took the write permissions to the license file for the user teamspeak.
    I'm keeping this thread here in case sb else encounters this problem.

    original post:


    The TS3 Server crashes every 3 minutes since today. (And automatically restarts through my scripts.)
    The setup is debian jessie, up to date with teamspeak server version 3.0.12.3.

    Log Entry before crash & restart:
    Code:
    2016-04-10 16:11:00.914808|CRITICAL|Accounting    |   |Assertion "false" failed at ../../../../s/deps/teamspeak_server_lib/src/ts_server/server_accounting.cpp:555;
    This is logged before every crash.

    Startup log:
    Code:
    2016-04-10 16:07:59.802506|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.0.12.3 (2016-03-04 08:31:20)
    2016-04-10 16:07:59.802853|INFO    |ServerLibPriv |   |SystemInformation: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 Binary: 64bit
    2016-04-10 16:07:59.802942|WARNING |ServerLibPriv |   |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
    2016-04-10 16:07:59.802987|INFO    |ServerLibPriv |   |Using hardware aes
    2016-04-10 16:07:59.804724|INFO    |DatabaseQuery |   |dbPlugin name:    MariaDB plugin, (c)TeamSpeak Systems GmbH
    2016-04-10 16:07:59.804799|INFO    |DatabaseQuery |   |dbPlugin version: 1
    2016-04-10 16:07:59.988117|INFO    |Accounting    |   |Your license was updated by the licensing server
    Log of the first crash:
    Code:
    2016-04-01 00:01:59.929002|INFO    |VirtualSvrMgr |   |executing monthly interval
    2016-04-01 00:01:59.949942|INFO    |VirtualSvrMgr |   |reset virtualserver traffic statistics
    2016-04-01 14:59:15.052357|INFO    |Query         |   |query from 62 X.X.X.X:38341 issued: login with account "serveradmin"(serveradmin)
    2016-04-01 14:59:15.111738|INFO    |Query         |   |query from 63 X.X.X.X:38342 issued: login with account "serveradmin"(serveradmin)
    2016-04-01 17:26:54.894091|INFO    |Query         |   |query from 64 X.X.X.X:2856 issued: login with account "serveradmin"(serveradmin)
    2016-04-02 13:08:20.128695|INFO    |Query         |   |query from 65 X.X.X.X:1291 issued: login with account "serveradmin"(serveradmin)
    2016-04-02 16:06:13.131132|INFO    |Query         |   |query from 66 X.X.X.X:1934 issued: login with account "serveradmin"(serveradmin)
    2016-04-02 23:08:53.769042|INFO    |Query         |   |query from 67 X.X.X.X:3897 issued: login with account "serveradmin"(serveradmin)
    2016-04-03 13:26:04.835515|INFO    |Query         |   |query from 68 X.X.X.X:5764 issued: login with account "serveradmin"(serveradmin)
    2016-04-03 13:28:13.645035|INFO    |VirtualSvrMgr |   |startServer() VirtualServer(28) started
    2016-04-04 01:16:04.195396|INFO    |Query         |   |query from 69 X.X.X.X:47720 issued: login with account "serveradmin"(serveradmin)
    2016-04-04 13:34:21.029676|WARNING |PktHandler    |   |detected incorrectly running system clock (>)
    2016-04-04 13:34:21.030160|WARNING |PktHandler    |   |detected incorrectly running system clock (>)
    2016-04-05 12:21:33.788532|INFO    |Query         |   |query from 70 X.X.X.X:1198 issued: login with account "serveradmin"(serveradmin)
    2016-04-10 15:26:16.880376|INFO    |              |   |License expired, but there is a new one available.. retrieving
    2016-04-10 15:26:17.226150|INFO    |Accounting    |   |Your license was updated by the licensing server
    2016-04-10 15:26:17.363970|INFO    |Accounting    |   |Licensing Information
    2016-04-10 15:26:17.365345|INFO    |Accounting    |   |type              : Non-profit
    2016-04-10 15:26:17.365407|INFO    |Accounting    |   |starting date     : Sun Apr 10 00:00:00 2016
    2016-04-10 15:26:17.365440|INFO    |Accounting    |   |ending date       : Tue Oct 18 00:00:00 2016
    2016-04-10 15:26:17.365466|INFO    |Accounting    |   |max virtualservers: 10
    2016-04-10 15:26:17.365490|INFO    |Accounting    |   |max slots         : 512
    2016-04-10 15:28:35.540002|CRITICAL|Accounting    |   |Assertion "false" failed at ../../../../s/deps/teamspeak_server_lib/src/ts_server/server_accounting.cpp:555;
    The setup had a uptime of over a month, the crash always occurs after 3 minutes.

    In the last log extract of you can see that there are relations between teamspeak updating my license, per schedule, and the crash.
    Firstly the crash occurs in "Accounting" and in an "accounting" sourcefile, under the same name as the license update logs to.
    Secondly there are no other entries before this license update, except from days before.
    Thirdly the crash happened 2 minutes after the license update.
    And this is nearly the timespan the sever takes after startup till it crashes now.
    The server logs a "license update" now every time it starts up, as if it's forgetting the happened license update.

    This leads me to the conclusion that it has to be the license update that is crashing the server. And it would explain why the problem arose today and not in the last weeks.
    Last edited by pr00cw; April 10th, 2016 at 11:49 PM. Reason: update

  2. #2
    Join Date
    June 2008
    Posts
    18,513
    I will report that to the developers. Currently it does not look like a bug for me. It's more a wanted crash to avoid bad things.
    But it would be better, when all virtual servers shutdown.

    Your server has more problems (answers can be fond on forum)
    1. 2016-04-10 16:07:59.802942|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!

    2. 2016-04-04 13:34:21.029676|WARNING |PktHandler | |detected incorrectly running system clock (>)
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    March 2016
    Location
    Germany
    Posts
    26
    Quote Originally Posted by dante696 View Post
    I will report that to the developers. Currently it does not look like a bug for me. It's more a wanted crash to avoid bad things.
    But it would be better, when all virtual servers shutdown.
    I'm sorry, seems like I wasn't clear enough. The whole teamspeak system crashes, process crash, and then systemd restarts it because of this. Leading to 20-30 secs "lagtime" and then teamspeak DC's but the process was already started again, so you'll get a DC and instantly connect message on the client.

    I can understand if you may want to crash the server (shutdown ?) in case of this. But it would be extremly helpful to print another message than the line above, as the start of this crash can take until the day the license has to be renewed, coming "out of nothing" with no real information, as you can see from my case.

    Through the cryptic log line I've had to guess that something like this happened, in the meantime I've had over 300 logfiles and mails from these complete restarts and from monit about PID changes.

    Quote Originally Posted by dante696 View Post
    Your server has more problems (answers can be fond on forum)
    1. 2016-04-10 16:07:59.802942|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!

    2. 2016-04-04 13:34:21.029676|WARNING |PktHandler | |detected incorrectly running system clock (>)
    That's right.
    1: I've seen this but haven't had the time recently. Repair is not completely true btw. as I've en_US and de_ locales installed.
    2: Yes, the virtual container on my machine was stressed very hard at that time, I've no other entries of such cases and this point in time is familiar. (Which is why I've thought about problems due to high load at first.)

  4. #4
    Join Date
    June 2008
    Posts
    18,513
    Quote Originally Posted by pr00cw View Post
    I'm sorry, seems like I wasn't clear enough. The whole teamspeak system crashes
    That was clearly said, when i did read "CRITICAL|Accounting | |Assertion "false"".
    I just wanted to say: "I would understand if this would not be fixed from devs.".
    But i preffer a server shutdown for all virtual servers, when the current license status could not re-validated.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  5. #5
    Join Date
    March 2016
    Location
    Germany
    Posts
    26
    Quote Originally Posted by dante696 View Post
    But i preffer a server shutdown for all virtual servers, when the current license status could not re-validated.
    Correct me if I'm wrong but I don't see any real sense in teamspeak having to write to this file.
    For once it's not needed internal, as teamspeak always verifies the license key, thus the date written back to the file is irrelevant. Verifying wise. And you can see the next renewal in every startup log.
    On the other hand I've isolated teamspeak in an own user as suggested but it has to have write permissions to the license file, in the root dir of itself, so sb *could* overwrite my license.
    Plus, I don't get a warning or smth. similar, it simply fails one day because of this. It's like word would crash if it can't write to a file, except word asks me where to write to and I know it'll do so.

    I'm sorry but this bugged me.
    Last edited by pr00cw; April 13th, 2016 at 01:45 PM.

  6. #6
    Join Date
    June 2008
    Posts
    18,513
    Quote Originally Posted by pr00cw View Post
    Correct me if I'm wrong but I don't see any real sense in teamspeak having to write to this file.
    We need to write into the file, to update the key. We must change the key because the old one does not match anymore and will fail validate the license.

    Quote Originally Posted by pr00cw View Post
    Plus, I don't get a warning or smth. similar, it simply fails one day because of this.
    why should you get a warning, when nothing happens with that file??? We do not expect that the user who runs the server can not write files.
    It's recommended that the user can write, read and execute in servers root and subfolders.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  7. #7
    Join Date
    March 2016
    Location
    Germany
    Posts
    26
    Quote Originally Posted by dante696 View Post
    We need to write into the file, to update the key. We must change the key because the old one does not match anymore and will fail validate the license.
    Ok, thanks, I wasn't aware of that fact.

  8. #8
    Join Date
    February 2012
    Location
    Poland
    Posts
    17
    This situation is not version-specific, it was always like this. No permissions to write to license file while update'ing -> critical.

  9. #9
    Join Date
    November 2011
    Location
    Belarus
    Posts
    142
    Close this.

  10. #10
    Join Date
    March 2016
    Location
    Germany
    Posts
    26
    Quote Originally Posted by KIDINK^ View Post
    Close this.
    I thank you for your well reasoned and constructive criticism and thoughts as well as the e-mail notification alongside with your post.

  11. #11
    Join Date
    February 2016
    Posts
    3

    server_accounting.cpp:555

    Hi.

    Today my server started crashing with error: 2016-06-03 15:34:56.324350|CRITICAL|Accounting | |Assertion "false" failed at ../../../../s/deps/teamspeak_server_lib/src/ts_server/server_accounting.cpp:555;

    I have problem to find a way i can fix it and i don't understand why it's is coming. Because i haven't logged in to my server box for over a month, so nothing has change because of me.
    Last edited by dante696; June 6th, 2016 at 10:15 AM. Reason: merged

  12. #12
    Join Date
    January 2013
    Location
    Thüringen
    Posts
    342
    We need more informations about this Crash.

    Which Server Version is running?

    CRITICAL|Accounting | |Assertion "false comes when the current license status could not re-validated. If I have understood correctly.

  13. #13
    Join Date
    June 2008
    Posts
    18,513
    This happens, when the license file needs to get updated but could not be opned or overwritten from the server.

    Threads merged
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  14. #14
    Join Date
    May 2012
    Posts
    5

    Question CRITICAL|Accounting

    Code:
    2016-07-17 18:44:16.992725|CRITICAL|Accounting    |   |Assert  ion "false" failed at ../../../../s/deps/teamspeak_server_lib/src/ts_server/serv  er_accounting.cpp:555;
    what does it mean?

    Server crashes after few minutes.

    Ty for your support
    Last edited by dante696; July 18th, 2016 at 10:23 AM. Reason: merged

  15. #15
    Join Date
    May 2012
    Posts
    5

    Solved [solved]

    Quote Originally Posted by N33D_N0_N4M3 View Post
    Code:
    2016-07-17 18:44:16.992725|CRITICAL|Accounting    |   |Assert  ion "false" failed at ../../../../s/deps/teamspeak_server_lib/src/ts_server/serv  er_accounting.cpp:555;
    what does it mean?

    Server crashes after few minutes.

    Ty for your support
    missing write permissions for licence.dat, so my licence can't get updated.

    now its working.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Resolved] teamspeak 3 application android crash crash crash
    By hycksou in forum Android
    Replies: 4
    Last Post: July 5th, 2017, 07:05 PM
  2. [Resolved] License renewing crashes server (server_accounting.cpp:554)
    By jonthn in forum Server Support
    Replies: 14
    Last Post: June 24th, 2017, 07:48 PM
  3. Replies: 0
    Last Post: November 18th, 2014, 10:40 PM
  4. Replies: 11
    Last Post: April 19th, 2010, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •