Server works correctly, players are in-game but it doesn't do anything on "save" command. Server is running on Linux.
https://i.gyazo.com/d03cf9028c8d519593b133a3f81d7b7e.png
0.sav was modified 2016-03-06 06:24 and the time now in GMT+1 is 17:21 meaning that over 10 hours of changes are stored in server's memory and will be lost without saving.
What can I do to force server to save or avoid losing data?
https://i.gyazo.com/670cd5b622dd31c2ffa15e8fb322ae0a.png
Server is running as root and whole server directory has 777 permissions.
Edit: I found something in logs. IOException: Invalid parameter after trying to save. After that error, server never tried to save again. Any clue what to do? https://i.gyazo.com/dc8727cfced9f7d20da9b67215b95ea7.png
Rust server not saving on Linux
Discussion in 'Rust Discussion' started by Fairlight, Mar 6, 2016.
-
Wulf Community Admin
Have you tried using the server.save command?
-
[DOUBLEPOST=1457285378][/DOUBLEPOST]So is there anything I can do without restarting server and losing it all?
[DOUBLEPOST=1457289091][/DOUBLEPOST]Edit: Tried switching identites while server is working. Still doesn't want to save. -
Wanted to chime in regarding this issue.
I'm currently receiving the same issue (latest linux server, no oxide though), and I've had to rollback due to this issue.
It seems that saving works fine (I'm using a save interval of 300 seconds, FYI) for about 24 hours, and each night at around 02:00-03:00 saving simply stops.
It doesn't react to either 'save' or 'backup' commands at all, so the only option is to stop the server and restart it, rolling back to the last save.
Anything peculiar about your setup, Fairlight? I'm asking, because I've been chatting with the Rust server/linux server Slack community and everyone's linux servers are fine and nobody's heard of this issue before. My setup is somewhat special (I run it inside a Docker container), but I'm assuming it could be due to the OS, or a broken dependency due to running a 64-bit OS with 32-bit libs (for steamcmd).
EDIT: I just noticed a pattern with the issue! It seems to happen when the servers been active for a while (a day in my case), and the last player leaves. The next save happens normally, but after that there are no more saves happening, until the server is rebooted.
EDIT #2: I'm running "dpkg --add-architecture i386" as I was under the impression that steamcmd needs this, as well as two dependencies (lib32stdc++6 and lib32gcc1), but I just heard from another server owner that all they've had to do on Ubuntu 14.04 64-bit was to install lib32gcc1, nothing else. This could definitely explain issues with Rusts's (well, Unity's) saving, as it could be mixing up 32- and 64-bit libraries.
[DOUBLEPOST=1457878245,1457817321][/DOUBLEPOST]Well it wasn't that. The only last thing I can think of is that I run two RCON clients at the same time, and the issues seem to occur when I log out and run Rusty.
Here's a link to an example exception I'm getting with 'writecfg': Official Bug Reporting Megathread - Devblog 101 • /r/playrust -
I didn't experience that issue on Linux, but it'd check files ownerships and chmods. -
I wrote a bash script which automatically detects if server has stopped saving and restarts it in new console. Feel free to use it guys as this bug still hasn't been fixed.
Code:#### REMOVE ALL "#" BEFORE USING # EDIT LOCATIONS OF RustDedicated TO YOUR OWN # ADD -logFile output.txt TO YOUR SERVER PARAMETER echo Monitoring has begun. ## PRINT while true #LOOP do # DO IN LOOP if grep -q "IOException:" /home/rust/output.txt; then #SEARCH FOR IOEXCEPTION, IF FOUND THEN pkill -f ./RustDedicated # KILL SERVER echo Restarting server # PRINT mail -s "E-MAIL TITLE" [email protected] <<< "EMAIL CONTENT" #SEND EMAIL mate-terminal -e "./RustDedicated -batchmode -server.worldsize 1000 -server.seed 12 -logFile output.txt -server.identity "s"" #LAUNCH NEW SERVER #IF YOU ARE USING ANOTHER TERMINAL REPLACE "mate-terminal" WITH YOURS rm /home/rust/output.txt #REMOVE OUTPUT FILE fi done
-
-
Hi all, my English isn't very good, but i'll try to explain my problem !
Today i wanna restart my Rust Server but when the server was restarted i had a roll back of 3hours O.O
It's the first time i restart my server... And i don't want to restart any more...
So i want to know how it's possible...
Thanks for help
I hope you understand me :x -
TimedExecute for Rust | Oxide
If not it will help you can use this config with itAttached Files:
-
-
Hi, and thanks for reply. I just did your solution, but it doesn't work...
In fact, the command : server.save seems to doesn't work...
He doesn't reply me : Command not found but he do nothing...
I will being crazy