GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.25k stars 813 forks source link

[BUG] Rust server map wiped during daily auto restart #3385

Open wrecktify opened 3 years ago

wrecktify commented 3 years ago

I run a daily auto restart script and after updating to the most recent LGSM, the server wiped the map with a seed of 1337 during a normal restart.

Basic info

Further Information

After updating to the latest lgsm, the config is no longer injecting +server.seed into the server command line or the +server.salt.

./RustDedicated -batchmode +server.ip 104.129.133.251 +server.port 28015 +server.tickrate 30 +server.hostname "BattleZone | Solo Only | 2X Vanilla | Wiped 3/11" +server.identity "rustserver" +server.maxplayers 100 +server.worldsize 3500 +server.saveinterval 600 +rcon.web 1 +rcon.ip 104.129.133.251 +rcon.port 28016 +rcon.password "" -logfile "/home/solo/log/server/rustserver-game-2021-03-16-07:16:20.log"

To fix, I went into my lgsm rustserver.cfg and manually added +server.seed to the command line and removed the conditional variables

To Reproduce

Steps to reproduce the behaviour:

  1. Updated LGSM to latest version
  2. Stopped rust server
  3. Started rust server
  4. +server.seed is now missing from the server command line

Expected behaviour

+server.seed being added to the command line so the server doesn't wipe to seed 1337 when no seed variable is passed over.

wrecktify commented 3 years ago

Also getting this message when starting the server

/home/solo/lgsm/functions/info_parms.sh: line 147: /home/solo/lgsm/data/rustserver-seed.txt: No such file or directory cat: /home/solo/lgsm/data/rustserver-seed.txt: No such file or directory

includes08 commented 3 years ago

mine has a seed file but doesn't seem to use the seed, instead it uses seednumber 1. While the textfile has a full random seed number.

includes08 commented 3 years ago

Duplicate of #3398 Just mentioning it here as it seems that our problems match in some ways.

@wrecktify could you post your /config-lgsm/rustserver/rustserver.cfg and ./rustserver postdetails

includes08 commented 3 years ago

v21.1.3 seems to work fine, latest version isn't.

wrecktify commented 3 years ago

Is there going to be any fix for this? I'm almost certain this was a result of the constant start parameter variable issues that plagued LGSM last week. I'll set up a new test server and confirm its still an issue.

includes08 commented 3 years ago

@wrecktify seeds seem to be broken in general, i guess we have to wait for another update again. Last one took a good few months, lets hope this one will be fixed soon.

dgibbs64 commented 3 years ago

I will be prioritising Rust wipe and seed related issues. I may also release a hotfix for it. Standby 😃

TheShellshock67 commented 3 years ago

Still is an issue in LinuxGSM - Rust - Version v21.2.3

Seedfile is there.... 1337 is used.

Wiping the server (Full Wipe) starts generating a new map... but again it is 1337.

sroland commented 2 years ago

I am also still having issues with the server.seed command in my config file. All my other custom commands produce the desired results but I am unable to set a custom seed because the command doesn't work.