Jump to content
  • 0

Server keeps rolling back... Please help!


Nola

Question

     So, I have my own dedicated server that is just LAN for the moment (hopefully I explained that right). Whenever I log back on it has rolled back anywhere from 30min-1hour. I log out like this...Disconnect myself through admin menu in game, close out tadst, then I close out start-redis.cmd. I don't see the point in leaving the server running since its private, but then again, I don't know how it all works.

 

     I am also under the impression that every time I shut everything down I'm restarting the server.. I have added two new vehicles (Ifrit and ghost hawk) and they never show up after I log back on. The ghost hawk showed up once and I logged out and haven't seen it since! 

 

     So, I guess my questions here are, is there a way to save the db as it is right before logging so I don't have to worry about rollbacks? And is my server being restarted correctly? 

 

     Thanks for taking the time to help me out, this is super frustrating for me, and the only problems that are keeping me from moving forward.

 

                                      And yes, I have used the search function for hours and have found nothing that helped me so please save it. 

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

You can adjust you save times in Redis.conf if you want faster saves to the database.

For instance what in redis.conf looks like:
save 900 1
save 300 10
save 60 1000
that means, save after 900 seconds if there is at least 1 change to the dataset, and after 300 seconds if there are at least 10 changes to the datasets, and 60 seconds if there are 1000 changes.
Link to comment
Share on other sites

  • 0

Redis only safes every 15 mins or so.. Make sure you see a dump.rdb appearing in your DB folder, and redis console is running without any errors.

 

When you start Redis it will read dump.rdb; if it isn't there it will start a fresh DB.

 

Shutting down Redis is something you do once per month when you're hosting; Windows patch day :)

Link to comment
Share on other sites

  • 0

 

You can adjust you save times in Redis.conf if you want faster saves to the database.

For instance what in redis.conf looks like:
save 900 1
save 300 10
save 60 1000
that means, save after 900 seconds if there is at least 1 change to the dataset, and after 300 seconds if there are at least 10 changes to the datasets, and 60 seconds if there are 1000 changes.

 

 

     Oh, now I see how redis is working.. Makes sense now. Thanks!

Link to comment
Share on other sites

  • 0

Hey folks, I am just having this issue today...server is rolling back to a set point after restarts, to some time yesterday.  I have made no edits to anything recently, and have been running build 440 since it's release without issue.  By the way, I believe this is my first post, so I'd like to thank the community for all the great content on here.

Back to the server rollbacks, I have no idea how to handle this as I just leave the redis content alone.  Haven't changed the redis.conf and I'm wondering if I should try deleting the dump.rdb?  Not certain what to do here, any ideas would be greatly appreciated.

Link to comment
Share on other sites

  • 0

First of all you should check your rpt for errors!

Deleting the dump is deleting your DB (if you also restart redis). So do not do it...

What is the size of your dump file?

Have you changed something in your scripts yesterday?

Link to comment
Share on other sites

  • 0

He-Man, thx for the response.  Dump file is 855kb.  I do have some new errors in the rpt but uncertain how to address these 

Spoiler

Error: Bone cheek_lf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone nose_tip doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_uplb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_ls doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_uplf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lc doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lwlb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lwlf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_lm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_lb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lwm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_upm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone ear_l doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone corr doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone tongue_m doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone tongue_f doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_lb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_lf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_lm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_lm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eye_upl doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eye_lwl doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_l doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_lb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_lt doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone nose_l doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_lm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone nose_r doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone forehead_r doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone forehead_m doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone forehead_l doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_rb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eye_lwr doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_r doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_rt doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_rm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_rf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone cheek_rm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_rm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_rf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eye_upr doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone eyebrow_rb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone tongue_b doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone ear_r doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone neck_l doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_uprf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone neck_r doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_uprb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_rc doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lwrb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone lip_lwrf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone neck_b doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone zig_rb doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone neck_t doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_rf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_lf doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone chin doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_rm doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw_rs doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone jaw doesn't exist in skeleton OFP2_ManSkeleton
Error: Bone headcutscene doesn't exist in skeleton OFP2_ManSkeleton

these errors continue in this fashion for what appears to be every part of the body.  there are a few other errors

Spoiler

Error in expression <[_heli] joinsilent _groupAI;
_heli call EPOCH_server_setVToken;
_heli call EPOCH>
  Error position: <EPOCH_server_setVToken;
_heli call EPOCH>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 52
Inventory item with given name: [ScopeAMSMarkDLC] not found
Inventory item with given name: [ScopeKHSMarkDLC] not found
Inventory item with given name: [ScopeKHSMarkDLC] not found
Inventory item with given name: [ScopeKHSMarkDLC] not found
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Weapon type with given name: [5Rnd_127x108_Mag] not found
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Weapon type with given name: [5Rnd_127x108_Mag] not found
Inventory item with given name: [ScopeAMSMarkDLC] not found
Inventory item with given name: [ScopeAMSMarkDLC] not found
Inventory item with given name: [ScopeKHSMarkDLC] not found
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Error in expression <mmob = _pAmmo select 0;
_AI addMagazine _ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error position: <_ammob;
};
_AI addWeapon _gun;
_AI addWe>
  Error Undefined variable in expression: _ammob
File x\addons\a3_epoch_sector\scripts\SUP_AI_settings.sqf, line 51
Weapon type with given name: [5Rnd_127x108_Mag] not found
Inventory item with given name: [ScopeAMSMarkDLC] not found
class HitPoints::HitFuel not found in I_HMG_01_high_F
Error in expression <MG] joinsilent _groupAI;
_staticMG call EPOCH_server_setVToken;
_staticMG call E>
  Error position: <EPOCH_server_setVToken;
_staticMG call E>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 168
Error in expression <MG] joinsilent _groupAI;
_staticMG call EPOCH_server_setVToken;
_staticMG call E>
  Error position: <EPOCH_server_setVToken;
_staticMG call E>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 168
Error in expression <MG] joinsilent _groupAI;
_staticMG call EPOCH_server_setVToken;
_staticMG call E>
  Error position: <EPOCH_server_setVToken;
_staticMG call E>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 168
Error in expression <MG] joinsilent _groupAI;
_staticMG call EPOCH_server_setVToken;
_staticMG call E>
  Error position: <EPOCH_server_setVToken;
_staticMG call E>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 168
Error in expression <MG] joinsilent _groupAI;
_staticMG call EPOCH_server_setVToken;
_staticMG call E>
  Error position: <EPOCH_server_setVToken;
_staticMG call E>
  Error Undefined variable in expression: epoch_server_setvtoken
File x\addons\a3_epoch_sector\scripts\SUP_functions.sqf, line 168
Cannot load surface info ca\data\Penetration\rubber.bisurf
Cannot load surface info ca\data\Penetration\wood.bisurf

All of these are new and did not show up in previous rpt's, from what I can tell.  Weird, rpt just littered with this stuff, and no, I made no changes yesterday (to scripts or any other file associated with the server, db, BE, etc, none since before I left town last Sunday in fact.  Redis is always running, I've never touched that piece, deliberately, aside from the initial required config edits.  Every single restart rolls back to the same point in time and location, and all the respective gear and whatnot associated with that point in time.  Freaking bizarre.

Link to comment
Share on other sites

  • 0

Error Undefined variable in expression: epoch_server_setvtoken

epoch_server_setvtoken is a core epoch code. If this is not available, ther is something wrong.

It is defined in a3_epoch_server\init\server_securityfunctions.sqf

 

Only an idea:

You have installed "Sector-Addon". Now it could be, that this addon is loading before the core Epoch Codes.

- Open a3_epoch_sector\init\fn_init.sqf and change the code to:

[] spawn {
uisleep 120;
call compile preprocessFileLineNumbers "x\addons\a3_epoch_sector\scripts\SUP_sector_init.sqf"
};

Now the sector addon will wait 120 seconds and let epoch parallel load.

 

Hope this will help! But as I said, only an idea!

Link to comment
Share on other sites

  • 0

Ok, that's a great tip...thank you!

Last night as I dug in a little deeper, I recalled I'd recently added steamcmd with appropriate startup parameters to FireDaemon.  I'd originally set this up to run as a Windows service via another route however, separate from FireDaemon.  I think the issue was that steamcmd was running twice and somehow competing for DB access and, oddly, it seemed as if with each consecutive restart, the rollback went progressively farther back in time.  I stopped that service in FireDaemon on this suspicion and the rollbacks are no longer occurring.  Rookie mistake. :ohmy:

I think I will implement your suggestion however, since that seems to make sense to me as a good practice for such an addon.  Thanks again for the assist He-Man!

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
  • Discord

×
×
  • Create New...