Resolved Terraria inside Docker - Linux Server

Voops

Terrarian
I have a small cloud server that I use for personal projects, I decided to run a Terraria server on it so I could play with a friend.

The server runs fine as long as I deploy it on host, but upon attempting to run it inside a docker container the following error is thrown:

Unhandled Exception
Thread: 6 [Server Input Thread]
Culture:
Exception
: System.NullReferenceException: Object reference not set to an instance of an object
at Terraria.Main.startDedInputCallBack () [0x00017] in <4ca1e6c0de0846809f149ffc19998e7b>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] 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.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <1170fb08300b4d0db71c1d1db8555768>:0
================
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object

at Terraria.Main.startDedInputCallBack () [0x00017] in <4ca1e6c0de0846809f149ffc19998e7b>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] 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.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <1170fb08300b4d0db71c1d1db8555768>:0



If any of you has user Docker, any idea what's going on?
 
Okay it was my fault, but I will leave the thread in case someone ever encounters this problem.

I had forgotten to set the CPU and RAM limits in Docker, so it was running within a limited environment.
 
Back
Top Bottom