Jump to content

Random save file corruption


Endeer
  • Known Issue

Hello,

today is the second time this happened to a dedicated server I'm running (first time was a day before). It's a survival with a few mods (specifically Setpiece Config Revisited, No Thermal Stone Durability, Global Positions, Health Info, Wolly Logger), and nothing like this has happened over the last year it was in service.

The save file corruption gets discovered when a rollback happens, and the server then gets stuck in reboot loop. This is an excerpt from the server log:

[00:00:07]: Loading world: session/45AE6D786BB96772/0000000389   
[00:00:07]: [string "scripts/shardindex.lua"]:205: Corrupt Save file [session/45AE6D786BB96772/0000000389]
LUA ERROR stack traceback:
=[C]:-1 in (global) assert (C) <-1--1>
scripts/shardindex.lua:205 in (upvalue) OnLoadSaveDataFile (Lua) <191-210>
   file = session/45AE6D786BB96772/0000000389
   cb = function - scripts/gamelogic.lua:959
   load_success = true
   str = local savedata = {}
local tablefunctions = {}
tablefunctions["map_fn"] = function()
return {tiles="(...) [**truncated**]
   success = nil
   savedata = [string "local savedata = {}..."]:613: '}' expected near '#'
scripts/shardindex.lua:214 in () ? (Lua) <213-215>

Now when I look at the said file, it really differs from other non-broken ones by the presence of # in it.

savedata["ents"]["berrybush"] = tablefunctions["ents_berrybush_fn"]()
tablefunctions["ents_oceanfish_medium_4_fn"] = function()
return {{id=211148,x=0,data={weighable={weight=208.92},herdprefab="beefaloherd",knownlocations={locations={{y=-1.#IND,x=-1.#IND,name="home",z=-1.#IND}}}},z=0},{id=210539,x=0,data={weighable={weight=204.06},herdprefab="beefaloherd",knownlocations={locations={{y=-1.#IND,x=-1.#IND,name="home",z=-1.#IND}}}},z=0},{id=210305,x=0,data={weighable={weight=249.27},herdprefab="beefaloherd",knownlocations={locations={{y=-1.#IND,x=-1.#IND,name="home",z=-1.#IND}}}},z=0},{id=210274,x=0,data={weighable={weight=203.73},herdprefab="beefaloherd",knownlocations={locations={{y=-1.#IND,x=-1.#IND,name="home",z=-1.#IND}}}},z=0}}
end 

Both times this happened, the #IND was on the beefaloherd. First time it was day 389. Second time it was day 69.

Any ideas?


Steps to Reproduce

I don't know how to reproduce.




User Feedback


Some better tracking and testing has been added for the next hotfix. I know that wont help with your current world, but hopefully we can catch future issues at the source, instead of after the file is corrupted.

  • Like 2
  • Thanks 1
  • Big Ups 1
  • Sad Dupe 1

Share this comment


Link to comment
Share on other sites

On 2/1/2022 at 1:08 AM, ScottHansen said:

Some better tracking and testing has been added for the next hotfix. I know that wont help with your current world, but hopefully we can catch future issues at the source, instead of after the file is corrupted.

Hey, 
havin the same Issue here.
Dedicated server: Overwolrd(master) works fine but Caves files got corrupted.
Mods I shared with initial Post are  No Thermal Stone Durability, Global Positions, Health Info - and i could only think that Global Positons do actually have sth to do with loading world files.
my cave Logs:

[00:00:05]: [string "scripts/shardindex.lua"]:205: Corrupt Save file [session/C0E42C143519B5A3/0000000076]
LUA ERROR stack traceback:
    =[C]:-1 in (global) assert (C) <-1--1>
    scripts/shardindex.lua:205 in (upvalue) OnLoadSaveDataFile (Lua) <191-210>
    scripts/shardindex.lua:214 in () ? (Lua) <213-215>
    =[C]:-1 in (method) GetPersistentString (C) <-1--1>
    scripts/shardindex.lua:213 in (method) GetSaveDataFile (Lua) <212-216>
    scripts/shardindex.lua:234 in (method) GetSaveData (Lua) <218-239>
    scripts/gamelogic.lua:1087 in (upvalue) DoLoadWorld (Lua) <1078-1088>
    scripts/gamelogic.lua:1140 in (upvalue) LoadSlot (Lua) <1134-1146>
    scripts/gamelogic.lua:1213 in (upvalue) DoResetAction (Lua) <1157-1254>
    scripts/gamelogic.lua:1264 in (local) complete_callback (Lua) <1256-1265>
    scripts/upsell.lua:13 in (global) UpdateGamePurchasedState (Lua) <11-15>
    scripts/gamelogic.lua:1288 in (local) callback (Lua) <1267-1289>


Help in any way would be highly appreciated. Should i just reload seperate Save FIles? Why isnt my Master server corrupted aswell?
 

Edited by wellatrutle

Share this comment


Link to comment
Share on other sites

I wanted to add something:
Please be sure to save your worlds of dedicated servers via command. 
I dont know what Servers or what system you are using.

C_shudown(ture)
or c_save .. please look up all the commands but i couldve been the resolution for my problem.

[because i dont know how to reproduce]

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...