Linux Terraria server crashes on auto save

aRealCyborg

Plantera
Hello I have been hosting a terraria 1.4 server for my friends and I.
I launch the game using tmux like the wiki recommended, it runs like it should except for 1 issue.
Everytime the game auto saves the world the server crashes and has this error, what should I do to fix this?

Code:
================
5/18/2020 5:48:51 PM: Unhandled Exception
Thread: 29 [Threadpool worker]
Culture: en-US
Exception: System.UnauthorizedAccessException: Access to the path "/srv/terraria/Worlds/Challangers_of_the_Void.wld.bak" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode) [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
  at Terraria.Utilities.FileUtilities.Write (System.String path, System.Byte[] data, System.Int32 length, System.Boolean cloud) [0x0003b] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.Utilities.FileUtilities.WriteAllBytes (System.String path, System.Byte[] data, System.Boolean cloud) [0x00000] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.IO.WorldFile.InternalSaveWorld (System.Boolean useCloudSaving, System.Boolean resetTime) [0x0012b] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.IO.WorldFile+<>c__DisplayClass56_0.<SaveWorld>b__0 () [0x00000] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.Utilities.FileUtilities.ProtectedInvoke (System.Action action) [0x00016] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.IO.WorldFile.SaveWorld (System.Boolean useCloudSaving, System.Boolean resetTime) [0x00066] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.IO.WorldFile.SaveWorld () [0x00000] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at Terraria.WorldGen.saveAndPlayCallBack (System.Object threadContext) [0x00000] in <4ca1e6c0de0846809f149ffc19998e7b>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x0000e] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <1170fb08300b4d0db71c1d1db8555768>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
================
 
sorry but bump :/
 
The error says that the access to Challangers_of_the_Void.wld.bak is denied. Maybe try to move the file to a different location where you have access to such as the default location ~/.local/share/Terraria/Worlds/?
 
The error says that the access to Challangers_of_the_Void.wld.bak is denied. Maybe try to move the file to a different location where you have access to such as the default location ~/.local/share/Terraria/Worlds/?
no I found out that there is no .bak file, so I made one and I am testing to see if it will work now.
 
fixed it by adding a .bak to the worlds folder.

close thread if you want mods.
 
Back
Top Bottom