I've already seen a couple posts about this issue but i could not get to the bottom of it yet.

Whenever my server crashes or restarts, it comes up with a crash loop.


C#:
System.IO.IOException: Invalid handle to path "/shard/[Unknown]"
  at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.IO.StreamReader.ReadBuffer () [0x000b3] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.IO.StreamReader.Read () [0x00028] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.TermInfoDriver.GetCursorPosition () [0x00048] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.TermInfoDriver.Init () [0x002d6] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.TermInfoDriver.ReadUntilConditionInternal (System.Boolean haltOnNewLine) [0x00008] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.TermInfoDriver.ReadLine () [0x00000] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.ConsoleDriver.ReadLine () [0x00000] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.Console.ReadLine () [0x00013] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_delegate_end_invoke(object,intptr)
  at (wrapper delegate-end-invoke) System.Func`1[System.String].end_invoke_TResult__this___IAsyncResult(System.IAsyncResult)
  at Server.Misc.ServerConsole.<PollCommands>m__2 (System.IAsyncResult r) [0x00000] in <a37f79c64dae45f5be4d40adac2061d2>:0
  at (wrapper managed-to-native) System.Runtime.Remoting.Messaging.AsyncResult.Invoke(System.Runtime.Remoting.Messaging.AsyncResult)
  at System.Runtime.Remoting.Messaging.AsyncResult.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <e50d21fbfba24408b2ca69b0d707999a>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <e50d21fbfba24408b2ca69b0d707999a>:0

Thisonly happens after restarts. I already tried setting CHMOD to all folders, was even thinking on disabling the auto restart and making it throught a service but for that i need to find out how to disable the auto restart, anyone have any ideas how to do so ?

Thanks all !
 
Back