Jump to content

Harmony sharing violation

Closed 1.4.3

PPlank

I suspect this is a bit of a strange one. I have one installation of Rust (on Windows server) with 5 different server instances hanging off it - it's great at update time as I only have to update a single set of code and I'm done. The start of the batch file for each server looks like this with server.identity set to individual server folders

RustDedicated.exe -batchmode -nographics -logfile output_log.txt ^
+server.identity "PvE01" ^
+oxide.directory "\server\{server.identity}\oxide" ^

etc... It looks like this in File Explorer:-

qTGKLoZ.jpg

So for the last two days I've had this issue:-

Sharing violation on path C:\GameServers\Rust\harmony_log.txt

I think because all servers start at the same time each day, sometimes two of them try to update the harmony log at the same time and so there's a sharing violation when they both access it.

Is there anything you can do about this, or do you have any pointers as to how I can get round this issue?

Thanks.

 

 

Edited by PPlank

Share this comment


Link to comment

Okay... For future reference for people having the same problem with your plugin.

I use the TimedExecute plugin for a number of things, and this is where it comes in handy yet again. My servers all restart at 5.00am, so I added an entry for each server (in the RealTime-Timer section) to load the SkillTree plugin on each server 1 minute apart. If the plugin has already loaded directly after the restart then the load command does nothing, but if one or more servers hit the sharing access violation and the plugin start fails, it will get loaded by the TimedExecute plugin.

  "RealTime-Timer": {
    "05:16:00": "o.load SkillTree",
  },

On each of my servers I have changed the time to be a minute later, so altogether, 16, 17, 18, 19 and 20 minutes past 5.00am. I won't know if this is okay until tomorrow when the servers restart again, but hopefully that's fixed it. I'll report back here if it hasn't worked or I've had to change things.

  • Love 1

Share this comment


Link to comment

Three days later and it all seems to be working okay. The plugin has loaded on all 5 servers (sooner or later) so yes, this is closed. I will report back if it happens again and I have to tweak the load times. SkillTree seems to be the only plugin that writes or causes a write to harmony_log.txt but of course this might change as other devs create harmony plugins.

Cheers. 🙂

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.