Assertion Failure: assert(status.ok()) ScriptFunctions.cpp line 64

  1. Beta
  2. Anything but this specific issue
  3. Server crashes when either of these are called (potentially not limited to just these two.
SetResourceKvp(key, value)
-- or
GetResourceKvpString(key)
  1. Native/Server side
  2. Have any script try to Get a server KVP or set a server KVP and the whole server crashes. (check screenshot for crash information printed to console)

Windows-Artifacts versions 10188 and 10191 are the only two I’ve tested and found this issue with.

Here is an example


CreateThread(function()
  local status = GetResourceKvpString('softmode')
  if status == nil then 
    SetResourceKvp('softmode', 'Off')
    print('set kvp string')
    status = 'Off'
    print('^3==============================================')
    print('^3==============================================')
    print('^2Grizzy softlist is ^1NOT ACTIVE.')
    print('^5==============================================')
    print('^2Currently, anyone may join.')
    print('^5==============================================')
    print('^6To toggle between Softlist and Public mode, please use /softmode [On/Off] in the server as an admin or "softmodeconsole [On/Off]" in the server console')
    print('^3==============================================')
    print('^3==============================================')
    print('^7')
  elseif status == 'On' then    
    WhiteListMessage = Config.Displays.Messages.MSG_NOT_WHITELISTED_SOFTLIST 
    TriggerEvent('grizzy:server:softloop')
  end
  TriggerEvent('grizzy:server:ToggleSoftListMode', status)
end)

Seems to potentially be an issue with rocksdb other platforms are experiencing.

I don’t know cpp at all and this is uncharted waters for me, but I’ll do what I can where I can.

Seems to be happening, potentially, on the rocksdb::RepairDB() function

@gottfriedleibniz

Solution that worked for me (I’m not sure which of these it is, so maybe do one at a time to make sure):

Clear server cache
Clear the db/default folder contents

Restart server