I have been getting this error only when the world saves. Can anyine shed some light on this? Thank you!

OS: Ubuntu Server 18.04.3 64 bit
Processor: 2x 2.66ghz Intel Xenon x5650 6c Processors
RAM: 72 gig


C#:
21:48:01 Core: Using parallel save strategy
21:48:01 World: Saving...
21:48:01 Error:
21:48:01 System.DllNotFoundException: Kernel32
  at (wrapper managed-to-native) Server.FileOperations:CreateFile (string,int,System.IO.FileShare,intptr,System.IO.FileMode,int,intptr)
  at Server.FileOperations.OpenSequentialStream (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00040] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.SequentialFileWriter..ctor (System.String path, Server.SaveMetrics metrics) [0x0001e] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at (wrapper remoting-invoke-with-check) Server.SequentialFileWriter:.ctor (string,Server.SaveMetrics)
  at Server.ParallelSaveStrategy.OpenFiles () [0x00000] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.ParallelSaveStrategy.Save (Server.SaveMetrics metrics, System.Boolean permitBackgroundWrite) [0x00007] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.World.Save (System.Boolean message, System.Boolean permitBackgroundWrite) [0x00117] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.Misc.AutoSave.Save (System.Boolean permitBackgroundWrite) [0x00035] in <28f87898308f4c8d90facc4a4775a879>:0
  at Server.Misc.AutoSave.Save () [0x00000] in <28f87898308f4c8d90facc4a4775a879>:0
  at Server.Misc.ServerConsole.ProcessCommand (System.String input) [0x003a1] in <28f87898308f4c8d90facc4a4775a879>:0
  at Server.Misc.ServerConsole.ProcessCommand () [0x00039] in <28f87898308f4c8d90facc4a4775a879>:0
  at Server.Timer+DelayCallTimer.OnTick () [0x0000b] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.Timer.Slice () [0x00047] in <14a412410ffa44d6aaf2701fe75d2975>:0
  at Server.Core.Main (System.String[] args) [0x006e1] in <14a412410ffa44d6aaf2701fe75d2975>:0
21:48:01 Crash: Generating report...done
 
Last edited:
In SaveStrategy.cs in the server code a save strategy is selected. In my case DualSaveStrategy, which works under linux (Arch).
In your case it selects ParallelSaveStrategy. That code underneath uses a class SequentialFileWriter. That class tries to import kernel32 routines.
(I expect similar issues with DynamicSaveStrategy)

So a solution/workaround would be to force the strategy selection to DualSaveStrategy.
 
In SaveStrategy.cs in the server code a save strategy is selected. In my case DualSaveStrategy, which works under linux (Arch).
In your case it selects ParallelSaveStrategy. That code underneath uses a class SequentialFileWriter. That class tries to import kernel32 routines.
(I expect similar issues with DynamicSaveStrategy)

So a solution/workaround would be to force the strategy selection to DualSaveStrategy.

Thanks Max, I will check into that!
 
Back