Page MenuHomeFeedback Tracker

Dayz Server Linux Stable 1.24 JSON files write corruption issues
Assigned, UrgentPublic

Description

Hi,

Dayz 1.24 Stable server running on AlmaLinux release 8.7 (Stone Smilodon)

Every JSON file generated by any mod that uses it to store data gets corrupted overtime with extra characters, generating server crash.

Error example (Intenz-Leaderboard Mod Id 1758815806):


Unknown, 28.03 2024 11:41:37
[::JsonLoadFile] :: [ERROR] :: Cannot load data from "$profile:Leaderboard\Stats-76561199375471225.json":
JSON ERROR:
The document root must not be followed by other values.
Function: 'JsonLoadFile'
Stack trace:
scripts/3_Game/tools\jsonfileloader.c:131
Leaderboard_Scripts/4_World/statlogger\statlogger.c:128
Leaderboard_Scripts/4_World/statlogger\statlogger.c:13
Leaderboard_Scripts/4_World/entities\manbase\playerbase.c:34
scripts/5_Mission/mission\missionserver.c:378
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:63
scripts/5_Mission/mission\missionserver.c:298
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:10
$CurrentDir:mpmissions/RatHouse.chernarusplus/init.c:1006
scripts/3_Game/dayzgame.c:1699
JM/CF/Scripts/3_Game/communityframework\game\dayzgame.c:97

Runtime mode
CLI params: config serverDZ.cfg port 2302 mod 1559212036;3186006767; serverMod IntenzLB; BEpath battleye profiles profiles dologs adminlog netlog freezecheck


Checking JSON we see it has extra characters and has become invalid:

Original JSON:

{

"deaths": [],
"kills": [],
"animalsKilled": [],
"name": "RoadRat",
"lastTimeSeen": "2024-3-28 12:48:51",
"deathsToZCount": 0,
"deathsToNaturalCauseCount": 0,
"deathsToPlayerCount": 0,
"deathsToAnimalCount": 0,
"suicideCount": 0,
"longestShot": 0,
"zKilled": 75,
"timeSurvived": 22613,
"distTrav": 41375

}

Corrupted JSON:

{

"deaths": [],
"kills": [],
"animalsKilled": [],
"name": "RoadRat",
"lastTimeSeen": "2024-3-28 12:48:51",
"deathsToZCount": 0,
"deathsToNaturalCauseCount": 0,
"deathsToPlayerCount": 0,
"deathsToAnimalCount": 0,
"suicideCount": 0,
"longestShot": 0,
"zKilled": 75,
"timeSurvived": 22613,
"distTrav": 41375

}413

This in an example, but it happens with every mod using JsonWriteFile fuction.

Mods tested with same problem:

  • Intenz-Leaderboard 1758815806
  • Harks Stalker Leader Board 3017442961
  • VPP Admin Tools 1828439124
  • VanillaPlusPlusMap 1623711988

And every single mod using JSON to store and retrieve data I have tried.


Is a Linux issue as all this mods are working properly under Windows (tested).

At this point, I am completely lost. Can you help me?

I initially thought could be something related to my specific Linux file system, but it's a dedicated server running for months a lot of enterprise applications with no errors at all. So I assume it must be related to JsonWriteFile function.

Did you have any similar reports?

Cheers,
Micky.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Linux x64
Operating System Version
AlmaLinux release 8.7 (Stone Smilodon)
Category
General
Steps To Reproduce
  1. Set up a dedicated AlmaLinux release 8.7 server.
  2. Install Dayz 1.24 Stable for Linux.
  3. Install any mod using JSON to write and read game data, like a Leaderboard mod, by example.
  4. Run server, Error will appear after some minutes, causing server crash.

Event Timeline

RoadRat created this task.Thu, Mar 28, 1:35 PM
Geez changed the task status from New to Assigned.Thu, Mar 28, 2:48 PM
Geez assigned this task to dedmen.
Geez added subscribers: dedmen, Geez.