Solved Server map isn't saving

Discussion in 'Rust Discussion' started by xKraZ, Feb 6, 2016.

  1. im having a problem. i did server.save and its not doing anything. not saving or anything and also the map isnt "auto" saving . Any reason as why this could be. I did load the map and players from my old server as i had to get a full dedicated server as our community has grown. Any help would be nice.
     
  2. server.save does not enable autosaving, it saves the world once.
    server.saveinterval should set the time between saves inbetween seconds.
    Try adding it to the launch parameters of your server or via Auto Commands for Rust | Oxide.
    When using autocommands, make sure to remove
    "server.globalchat true",
    "server.stability false"

    from the config before loading the plugin.
    Alternatively you can also use TimedExecute for Rust | Oxide to run server.save after a set time in seconds. Set EnableTimerRepeat to true and add an entry "server.save": 300 to TimerRepeat. When using the default config, make sure to remove the entry for event.run.
     
  3. yah i have server.saveinterval already set and even when i type server.save in console it should save. i know i had gotten one error about it before it quit working it said was denied . im trying to find the error to post and show.

    here is one error i keep seeing in the log

    CAPIJobRequestUserStats - no stats data in server response, we must be up to date

    Here is the error i had gotten before it quit working .

    Code:
    UnauthorizedAccessException: Access to the path "C:\rustserver2\server\my_server_identity\save\Procedural Map_4000_616627362\0.sav" is denied.
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
      at SaveRestore+<Save>c__IteratorE.MoveNext () [0x00000] in <filename unknown>:0
    (Filename:  Line: -1)
    [DOUBLEPOST=1454795246][/DOUBLEPOST]Anyone have a clue why this could be ? i have alot fo people on the server and i would like to save it without shutting server down to fix it ???
     
  4. It could be that your map file is damaged (never ever terminate the server, let it quit!).
    What's more likely however is that the file permissions for those save files are read only.
    When did you transfer the map?
    If you transfered a map from before last update and are using it now, then it might also be that you are using a map that was generated by an incompatible procgen version (although Rust should wipe the map automatically?).
     
  5. what do you mean let it quit? like typ server.stop?
    [DOUBLEPOST=1454797370][/DOUBLEPOST]i just transfer it today . i did it last night and it worked but i resaved the map again from my old server so people wouldn't lose anything. everything is working in the map and all. its just the server will not save now.
     
  6. No, use global.quit.
    Since you can apparently read the files (booting the server with the old map worked), I'd check what permissions the save file has and if whatever user the server is running under has the right to write. It seems like the files are read-only.
    It could be that your old provider or whatever you were using set certain permissions for the game directory that limit access, and copying those files means that it won't work for your new provider.
     
  7. Wulf

    Wulf Community Admin

    "quit" is the same thing as "global.quit", the global part is assumed.
     
  8. yah i think that is correct but i think i will lost any gameplay from the last few hours since i started the server due to the map not saving. i dont know a way of fixing it without restarting the server or shuting the server down
    [DOUBLEPOST=1454800624][/DOUBLEPOST]@Wulf do y ou know of a way to do a full save manually since if i stop the server nothing will save ?
     
  9. Wulf

    Wulf Community Admin

    server.save
     
  10. yah that isnt working for me. when i input that it literally does nothing ;(

    Yet in my server console it is showing how many entities there are and its counting them , just cannot save :(
    [DOUBLEPOST=1454807605][/DOUBLEPOST]this is now solved. thank you
     
  11. How did you solved that problem?
     
  12. (Created my own thread)