1. Hello, about once a week my server hang on restart. How to fix it?
    When hung:
    Code:
    Map Spawned 246 entities
    Destroying 261 old entities
        done.
    Spawning 52915 entities
        22209 / 52915
        38977 / 52915
        done.
    Enforcing SpawnPopulation Limits
        done.
    Initializing 54220 entity links
        27661 / 54220
        42770 / 54220
        done.
    Initializing 25054 stability supports
        done.
    Initializing 23990 conditional models
        done.
    Initializing 52915 entity save caches
        done.
    Facepunch.Steamworks Unity: LinuxPlayer
    Facepunch.Steamworks Os: Linux
    Facepunch.Steamworks Arch: x64
    Connected to Steam
    IOException: Sharing violation on path /home/server4977/game/server/my_server_identity/Log.EAC.txt
      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) [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)
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
      at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
      at EACServer.DoStartup () [0x00000] in <filename unknown>:0
      at ServerMgr.OpenConnection () [0x00000] in <filename unknown>:0
      at Bootstrap+<StartServer>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0
      at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0
    (Filename:  Line: -1)
    Normal start-up:
    Code:
    Map Spawned 246 entities
    Destroying 261 old entities
        done.
    Spawning 52915 entities
        18737 / 52915
        33473 / 52915
        48368 / 52915
        done.
    Enforcing SpawnPopulation Limits
        done.
    Initializing 54220 entity links
        27000 / 54220
        41777 / 54220
        done.
    Initializing 25054 stability supports
        done.
    Initializing 23990 conditional models
        done.
    Initializing 52915 entity save caches
        done.
    Facepunch.Steamworks Unity: LinuxPlayer
    Facepunch.Steamworks Os: Linux
    Facepunch.Steamworks Arch: x64
    Connected to Steam
    [AdminRadar] Took 91.092ms to cache 2814/54220 entities
    Maybe it's because AdminRadar?
     
    Last edited by a moderator: Dec 7, 2017
  2. Have you tried disabling admin radar to see? Also i have noticed that the restart will hang sometimes at this part and takes around 2-3 minutes extra to load the server. however if i close server wait 30 seconds and then start it can start alot quicker. Does the server stop loading at this stage or does it just take a while?
     
  3. Wulf

    Wulf Community Admin

    That's the Linux server, so you won't see an actual console. The first error is stating that something was trying to access that log file at the same time as the server and causing an issue trying to write to it. None of those logs show why it would hang though.