blushiemagic / MagicStorage

A tModLoader mod for Terraria
MIT License
178 stars 101 forks source link

"Error on Message Terraria.MessageBuffer" - Dedicated MP on Linux - Chunk goes away and breaks the world #69

Open Tony322 opened 6 years ago

Tony322 commented 6 years ago

I am running the latest version of this mod (0.4.3.3) on a dedicated server on my linux machine. Server works great and me and my friend have had 0 issues. We just reached the point of which we can craft magic storage stuff. I place a heart and a basic storage. They are connected, tried both wire and without wire (directly touching). It says 0/0 and I cant place any items. When both me and my friend relog, the whole chuck is gone. I literal hole in the world. Fortunately I had backup on the world, but yeah. Tried again and the same thing happened :(

Using terraria dedi server version 1353 and tmodloader v0.10.1.5 and mod version 0.4.3.3 on both client and server. The error in console says: "Error on Message Terraria.MessageBuffer" and displays when placing magicstorage blocks. At least the storage ones. The actual server log file is empty tho.

wouterdebruijn commented 5 years ago

Hi,

I got this exact problem on my server to. If you need any testing let me know. You can actually fix it if you remove the block, I used the prison tool from luiafk to "overwrite" the block.

Version: V1.3.5.2 TModloaderV: v0.10.1.5

wouterdebruijn commented 5 years ago

Hi,

I tried some stuff. If you want to run a server right now on Linux you can use mono to run the windows tModLoaderServer.exe. It uses the same locations as tModLoaderServerx86(_64) so you only need to install mono.

Do this at your own risk! Make backups and all that kind of stuff.

Tony322 commented 5 years ago

Hi,

I tried some stuff. If you want to run a server right now on Linux you can use mono to run the windows tModLoaderServer.exe. It uses the same locations as tModLoaderServerx86(_64) so you only need to install mono.

Do this at your own risk! Make backups and all that kind of stuff.

Have you tested this? Its a huge pain to re-configure my service and everything so Id rather not have to do it just for it to fail again xd Thanks for the suggestion.

wouterdebruijn commented 5 years ago

Hi, I tried some stuff. If you want to run a server right now on Linux you can use mono to run the windows tModLoaderServer.exe. It uses the same locations as tModLoaderServerx86(_64) so you only need to install mono. Do this at your own risk! Make backups and all that kind of stuff.

Have you tested this? Its a huge pain to re-configure my service and everything so Id rather not have to do it just for it to fail again xd Thanks for the suggestion.

Yeah, I have run this for 3 days on a debian 9 machine, haven't had a problem. It still gives the error "Error on Message Terraria.MessageBuffer" in the log, but everything works fine.

I installed the mono-complete package and ran the tModLoaderServer.exe file. with mono tModLoaderServer.exe. It uses the same directory as the normal launcher, so you will be able to load your world just like that. I do recommend making a backup first.

Tony322 commented 5 years ago

Hi, I tried some stuff. If you want to run a server right now on Linux you can use mono to run the windows tModLoaderServer.exe. It uses the same locations as tModLoaderServerx86(_64) so you only need to install mono. Do this at your own risk! Make backups and all that kind of stuff.

Have you tested this? Its a huge pain to re-configure my service and everything so Id rather not have to do it just for it to fail again xd Thanks for the suggestion.

Yeah, I have run this for 3 days on a debian 9 machine, haven't had a problem. It still gives the error "Error on Message Terraria.MessageBuffer" in the log, but everything works fine.

I installed the mono-complete package and ran the tModLoaderServer.exe file. with mono tModLoaderServer.exe. It uses the same directory as the normal launcher, so you will be able to load your world just like that. I do recommend making a backup first.

Thanks a lot good sir. Will give it a go when I get the motivation back. I lost motivation to play as soon as I figured I cant use this mod xD People on the Tmodloader forums says its a network message limit causing this, but if your suggestion fixes it, that just cant be the reason. Good job finding this "fix" and sharing it!

wouterdebruijn commented 5 years ago

No problem, I have been running it like that since my last post about it. Still works great.

Tony322 commented 5 years ago

No problem, I have been running it like that since my last post about it. Still works great.

Im not able to run the tModLoaderServer.exe using Mono. It complains about Kernel32.dll is not found. Running the Tshock server works with mono, but not tModLoader. Do you know what's wrong?

wouterdebruijn commented 5 years ago

Did you use the mono-complete package? What kind of system are you running?

Tony322 commented 5 years ago

Did you use the mono-complete package? What kind of system are you running?

Yes, I installed mono-complete. Running ubuntu server 16.04.5 LTS x86_64

Maybe im just confused which versions to use.. I mean terraria dedicated server got Linux, Mac and Windows version and tModLoader also got Linux, Windows and Mac versions. Dont know which to use for it to run on mono, im guessing im just using the wrong version or something. Also, do I need the complete game installed as well?

If you could tell me which versions you used of tmodloader and the dedi server, and if you have the game installed in same folder, please let me know. I must be missing something. Also, do you use Tshock?

wouterdebruijn commented 5 years ago

I will send you the details in a couple hours. I am at work at the moment. You can hear from me soon.

Tony322 commented 5 years ago

I will send you the details in a couple hours. I am at work at the moment. You can hear from me soon.

Thanks buddy, I really do appreciate it.

wouterdebruijn commented 5 years ago

I will send you the details in a couple hours. I am at work at the moment. You can hear from me soon.

Thanks buddy, I really do appreciate it.

Hi, sorry I am getting back at this a bit later than planned. What works for me, just downloading the 1353 Terraria Server (https://terraria.gamepedia.com/Server#Downloads) and the linux version of tModLoader (https://forums.terraria.org/index.php?threads/1-3-tmodloader-a-modding-api.23726/)

From the Terraria Server Download I use the files inside the Linux folder.

I do not use Tshock.

wouterdebruijn commented 5 years ago

I tested running the Windows versions of both files and got the kernel dll error. Try using the Linux versions. I do not know why there is a tModLoaderServer.exe in the linux versions but it works.

wouterdebruijn commented 5 years ago

Here is a list of all the files in my Terraria server directory:

> drwxr-xr-x 5 wouter wouter     4096 Dec  1 18:26 .
drwxr-xr-x 5 wouter wouter     4096 Dec  1 18:14 ..
-rw-r--r-- 1 wouter wouter   872448 Dec  1 18:25 FNA.dll
-rw-r--r-- 1 wouter wouter     1329 Dec  1 18:25 FNA.dll.config
-rw-r--r-- 1 wouter wouter   253440 Dec  1 18:26 Ionic.Zip.Reduced.dll
-rw-r--r-- 1 wouter wouter   160256 Dec  1 18:26 MP3Sharp.dll
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:26 ModCompile
-rw-r--r-- 1 wouter wouter   271360 Dec  1 18:26 Mono.Cecil.dll
-rw-r--r-- 1 wouter wouter   226816 Dec  1 18:25 Mono.Posix.dll
-rw-r--r-- 1 wouter wouter   335872 Dec  1 18:25 Mono.Security.dll
-rw-r--r-- 1 wouter wouter     1254 Dec  1 18:26 README.txt
-rw-r--r-- 1 wouter wouter   129536 Dec  1 18:25 System.Configuration.dll
-rw-r--r-- 1 wouter wouter   948736 Dec  1 18:25 System.Core.dll
-rw-r--r-- 1 wouter wouter  2146304 Dec  1 18:25 System.Data.dll
-rw-r--r-- 1 wouter wouter   452608 Dec  1 18:25 System.Drawing.dll
-rw-r--r-- 1 wouter wouter   107008 Dec  1 18:25 System.Numerics.dll
-rw-r--r-- 1 wouter wouter   988160 Dec  1 18:25 System.Runtime.Serialization.dll
-rw-r--r-- 1 wouter wouter   133120 Dec  1 18:25 System.Security.dll
-rw-r--r-- 1 wouter wouter  3051008 Dec  1 18:25 System.Windows.Forms.dll
-rw-r--r-- 1 wouter wouter      543 Dec  1 18:25 System.Windows.Forms.dll.config
-rw-r--r-- 1 wouter wouter   133632 Dec  1 18:25 System.Xml.Linq.dll
-rw-r--r-- 1 wouter wouter  3340288 Dec  1 18:25 System.Xml.dll
-rw-r--r-- 1 wouter wouter  2514944 Dec  1 18:25 System.dll
-rw-r--r-- 1 wouter wouter 12390912 Dec  1 18:26 Terraria.exe
-rw-r--r-- 1 wouter wouter    33619 Dec  1 18:26 Terraria.exe.config
-rw-r--r-- 1 wouter wouter     5631 Dec  1 18:25 Terraria.png
-rw-r--r-- 1 wouter wouter      601 Dec  1 18:25 TerrariaServer
-rw-r--r-- 1 wouter wouter 14310647 Dec  1 18:25 TerrariaServer.bin.x86
-rw-r--r-- 1 wouter wouter 17497051 Dec  1 18:25 TerrariaServer.bin.x86_64
-rw-r--r-- 1 wouter wouter 10674176 Dec  1 18:25 TerrariaServer.exe
-rw-r--r-- 1 wouter wouter   164864 Dec  1 18:25 WindowsBase.dll
-rw-r--r-- 1 wouter wouter   177410 Dec  1 18:25 changelog.txt
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:25 lib
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:25 lib64
-rw-r--r-- 1 wouter wouter     2382 Dec  1 18:25 monoconfig
-rw-r--r-- 1 wouter wouter    34107 Dec  1 18:25 monomachineconfig
-rw-r--r-- 1 wouter wouter  3791872 Dec  1 18:25 mscorlib.dll
-rw-r--r-- 1 wouter wouter       63 Dec  1 18:25 open-folder
-rw-r--r-- 1 wouter wouter     2999 Dec  1 18:26 tModLoaderInstaller.jar
-rw-r--r-- 1 wouter wouter      668 Dec  1 18:26 tModLoaderServer
-rw-r--r-- 1 wouter wouter 14310647 Dec  1 18:26 tModLoaderServer.bin.x86
-rw-r--r-- 1 wouter wouter 17497051 Dec  1 18:26 tModLoaderServer.bin.x86_64
-rw-r--r-- 1 wouter wouter 12377088 Dec  1 18:26 tModLoaderServer.exe
Tony322 commented 5 years ago

Here is a list of all the files in my Terraria server directory:

> drwxr-xr-x 5 wouter wouter     4096 Dec  1 18:26 .
drwxr-xr-x 5 wouter wouter     4096 Dec  1 18:14 ..
-rw-r--r-- 1 wouter wouter   872448 Dec  1 18:25 FNA.dll
-rw-r--r-- 1 wouter wouter     1329 Dec  1 18:25 FNA.dll.config
-rw-r--r-- 1 wouter wouter   253440 Dec  1 18:26 Ionic.Zip.Reduced.dll
-rw-r--r-- 1 wouter wouter   160256 Dec  1 18:26 MP3Sharp.dll
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:26 ModCompile
-rw-r--r-- 1 wouter wouter   271360 Dec  1 18:26 Mono.Cecil.dll
-rw-r--r-- 1 wouter wouter   226816 Dec  1 18:25 Mono.Posix.dll
-rw-r--r-- 1 wouter wouter   335872 Dec  1 18:25 Mono.Security.dll
-rw-r--r-- 1 wouter wouter     1254 Dec  1 18:26 README.txt
-rw-r--r-- 1 wouter wouter   129536 Dec  1 18:25 System.Configuration.dll
-rw-r--r-- 1 wouter wouter   948736 Dec  1 18:25 System.Core.dll
-rw-r--r-- 1 wouter wouter  2146304 Dec  1 18:25 System.Data.dll
-rw-r--r-- 1 wouter wouter   452608 Dec  1 18:25 System.Drawing.dll
-rw-r--r-- 1 wouter wouter   107008 Dec  1 18:25 System.Numerics.dll
-rw-r--r-- 1 wouter wouter   988160 Dec  1 18:25 System.Runtime.Serialization.dll
-rw-r--r-- 1 wouter wouter   133120 Dec  1 18:25 System.Security.dll
-rw-r--r-- 1 wouter wouter  3051008 Dec  1 18:25 System.Windows.Forms.dll
-rw-r--r-- 1 wouter wouter      543 Dec  1 18:25 System.Windows.Forms.dll.config
-rw-r--r-- 1 wouter wouter   133632 Dec  1 18:25 System.Xml.Linq.dll
-rw-r--r-- 1 wouter wouter  3340288 Dec  1 18:25 System.Xml.dll
-rw-r--r-- 1 wouter wouter  2514944 Dec  1 18:25 System.dll
-rw-r--r-- 1 wouter wouter 12390912 Dec  1 18:26 Terraria.exe
-rw-r--r-- 1 wouter wouter    33619 Dec  1 18:26 Terraria.exe.config
-rw-r--r-- 1 wouter wouter     5631 Dec  1 18:25 Terraria.png
-rw-r--r-- 1 wouter wouter      601 Dec  1 18:25 TerrariaServer
-rw-r--r-- 1 wouter wouter 14310647 Dec  1 18:25 TerrariaServer.bin.x86
-rw-r--r-- 1 wouter wouter 17497051 Dec  1 18:25 TerrariaServer.bin.x86_64
-rw-r--r-- 1 wouter wouter 10674176 Dec  1 18:25 TerrariaServer.exe
-rw-r--r-- 1 wouter wouter   164864 Dec  1 18:25 WindowsBase.dll
-rw-r--r-- 1 wouter wouter   177410 Dec  1 18:25 changelog.txt
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:25 lib
drwxr-xr-x 2 wouter wouter     4096 Dec  1 18:25 lib64
-rw-r--r-- 1 wouter wouter     2382 Dec  1 18:25 monoconfig
-rw-r--r-- 1 wouter wouter    34107 Dec  1 18:25 monomachineconfig
-rw-r--r-- 1 wouter wouter  3791872 Dec  1 18:25 mscorlib.dll
-rw-r--r-- 1 wouter wouter       63 Dec  1 18:25 open-folder
-rw-r--r-- 1 wouter wouter     2999 Dec  1 18:26 tModLoaderInstaller.jar
-rw-r--r-- 1 wouter wouter      668 Dec  1 18:26 tModLoaderServer
-rw-r--r-- 1 wouter wouter 14310647 Dec  1 18:26 tModLoaderServer.bin.x86
-rw-r--r-- 1 wouter wouter 17497051 Dec  1 18:26 tModLoaderServer.bin.x86_64
-rw-r--r-- 1 wouter wouter 12377088 Dec  1 18:26 tModLoaderServer.exe

Once again, thanks for the reply. I really appreciate it. Aldoh, now I tried both Linux versions of tModLoader and the dedicated server using your provided links, and I still can't run it. Aldoh, I do not get the Kernel32 error anymore. I got an error I saw someone else had on the forums as well without a solution.

Failed` to load language file: Terraria.Localization.Content.en-US.Items.json

Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Text.Regula rExpressions.Match' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Text.RegularExpressions.Group' threw an except ion. ---> System.MissingMethodException: Method 'Array.Empty' not found. --- End of inner exception stack trace --- at System.Text.RegularExpressions.Match..ctor (System.Text.RegularExpressions. Regex regex, Int32 capcount, System.String text, Int32 begpos, Int32 len, Int32 startpos) <0x41123c40 + 0x00053> in :0 at System.Text.RegularExpressions.Match..cctor () <0x41123bd0 + 0x0004f> in :0 --- End of inner exception stack trace --- at System.Text.RegularExpressions.RegexRunner.Scan (System.Text.RegularExpress ions.Regex regex, System.String text, Int32 textbeg, Int32 textend, Int32 textst art, Int32 prevlen, Boolean quick, TimeSpan timeout) <0x41123000 + 0x002fb> in < filename unknown>:0 at System.Text.RegularExpressions.Regex.Run (Boolean quick, Int32 prevlen, Sys tem.String input, Int32 beginning, Int32 length, Int32 startat) <0x41122880 + 0x 001a3> in :0 at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 star tat) <0x411227f0 + 0x00047> in :0 at System.Text.RegularExpressions.RegexReplacement.Replace (System.Text.Regula rExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.Regex rege x, System.String input, Int32 count, Int32 startat) <0x411222f0 + 0x00087> in :0 at System.Text.RegularExpressions.Regex.Replace (System.String input, System.T ext.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat) <0x 41122270 + 0x00043> in :0 at System.Text.RegularExpressions.Regex.Replace (System.String input, System.T ext.RegularExpressions.MatchEvaluator evaluator) <0x411221a0 + 0x00077> in :0 at Terraria.Localization.LanguageManager.ProcessCopyCommandsInTexts () <0x4112 1e70 + 0x0017b> in :0 at Terraria.Localization.LanguageManager.LoadLanguage (Terraria.Localization.G ameCulture culture) <0x41117e80 + 0x0003f> in :0 at Terraria.Localization.LanguageManager.SetLanguage (Terraria.Localization.Ga meCulture culture) <0x41117d30 + 0x00057> in :0 at Terraria.Program.LaunchGame (System.String[] args, Boolean monoArgs) <0x411 16e10 + 0x00147> in :0 at Terraria.LinuxLaunch.Main (System.String[] args) <0x410eff50 + 0x00127> in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Text.RegularExpressions.Match' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Text.Regula rExpressions.Group' threw an exception. ---> System.MissingMethodException: Meth od 'Array.Empty' not found. --- End of inner exception stack trace --- at System.Text.RegularExpressions.Match..ctor (System.Text.RegularExpressions. Regex regex, Int32 capcount, System.String text, Int32 begpos, Int32 len, Int32 startpos) <0x41123c40 + 0x00053> in :0 at System.Text.RegularExpressions.Match..cctor () <0x41123bd0 + 0x0004f> in :0 --- End of inner exception stack trace --- at System.Text.RegularExpressions.RegexRunner.Scan (System.Text.RegularExpress ions.Regex regex, System.String text, Int32 textbeg, Int32 textend, Int32 textst art, Int32 prevlen, Boolean quick, TimeSpan timeout) <0x41123000 + 0x002fb> in < filename unknown>:0 at System.Text.RegularExpressions.Regex.Run (Boolean quick, Int32 prevlen, Sys tem.String input, Int32 beginning, Int32 length, Int32 startat) <0x41122880 + 0x 001a3> in :0 at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 star tat) <0x411227f0 + 0x00047> in :0 at System.Text.RegularExpressions.RegexReplacement.Replace (System.Text.Regula rExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.Regex rege x, System.String input, Int32 count, Int32 startat) <0x411222f0 + 0x00087> in :0 at System.Text.RegularExpressions.Regex.Replace (System.String input, System.T ext.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat) <0x 41122270 + 0x00043> in :0 at System.Text.RegularExpressions.Regex.Replace (System.String input, System.T ext.RegularExpressions.MatchEvaluator evaluator) <0x411221a0 + 0x00077> in :0 at Terraria.Localization.LanguageManager.ProcessCopyCommandsInTexts () <0x4112 1e70 + 0x0017b> in :0 at Terraria.Localization.LanguageManager.LoadLanguage (Terraria.Localization.G ameCulture culture) <0x41117e80 + 0x0003f> in :0 at Terraria.Localization.LanguageManager.SetLanguage (Terraria.Localization.Ga meCulture culture) <0x41117d30 + 0x00057> in :0 at Terraria.Program.LaunchGame (System.String[] args, Boolean monoArgs) <0x411 16e10 + 0x00147> in :0 at Terraria.LinuxLaunch.Main (System.String[] args) <0x410eff50 + 0x00127> in :0

Tony322 commented 5 years ago

Sweet mate! I figured it out! Previously I installed mono-complete from the default repos, but now I uninstalled and followed the install guide on their website where I had to add a new repo and stuff. Installed mono-complete again and now it works! Thanks a bunch mate <3 <3 <3 <3

wouterdebruijn commented 5 years ago

Sweet mate! I figured it out! Previously I installed mono-complete from the default repos, but now I uninstalled and followed the install guide on their website where I had to add a new repo and stuff. Installed mono-complete again and now it works! Thanks a bunch mate <3 <3 <3 <3

No problem! I'm glad it worked! Have fun playing!

Tony322 commented 5 years ago

Sweet mate! I figured it out! Previously I installed mono-complete from the default repos, but now I uninstalled and followed the install guide on their website where I had to add a new repo and stuff. Installed mono-complete again and now it works! Thanks a bunch mate <3 <3 <3 <3

No problem! I'm glad it worked! Have fun playing!

Nevermind xD Server loads and runs, but crashes as soon as I connect :P

This is what it says on startup:

Your mono runtime and class libraries are out of sync. The out of sync library is: /home/tony/terraria/System.dll

When you update one from git you need to update, compile and install the other too. Do not report this as a bug unless you're sure you have updated correctly: you probably have a broken mono install. If you see other errors or faults after this message they are probably related and you need to fix your mono install first.

And the error on login:

Unhandled Exception: System.IO.IOException: Unable to read data from the transport connection: Attempted to access a missing method.. ---> System.MissingMethodException: Attempted to access a missing method. at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00017] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x0003f] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult result) [0x00000] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x0005f] in <6c7c03f48a9747c8a644da4f63a34480>:0 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x000b1] in <6c7c03f48a9747c8a644da4f63a34480>:0 at Terraria.Net.Sockets.TcpSocket.ReadCallback (System.IAsyncResult result) [0x00023] in :0 at System.Net.Sockets.SocketAsyncResult+cAnonStorey0.<>m0 (System.Object _) [0x00000] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 at System.Threading.ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Unable to read data from the transport connection: Attempted to access a missing method.. ---> System.MissingMethodException: Attempted to access a missing method. at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00017] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x0003f] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult result) [0x00000] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x0005f] in <6c7c03f48a9747c8a644da4f63a34480>:0 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x000b1] in <6c7c03f48a9747c8a644da4f63a34480>:0 at Terraria.Net.Sockets.TcpSocket.ReadCallback (System.IAsyncResult result) [0x00023] in :0 at System.Net.Sockets.SocketAsyncResult+cAnonStorey0.<>m0 (System.Object ) [0x00000] in <6c7c03f48a9747c8a644da4f63a34480>:0 at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <0f8aeac9d63d4b8aa575761bb4e65b79>:0

Do you mind telling me which mono verison you have? I have mono-complete (5.16.0.220-0xamarin4+ubuntu1604b1

wouterdebruijn commented 5 years ago

try running apt update and apt upgrade.

Tony322 commented 5 years ago

try running apt update and apt upgrade.

I did. I figured the server tried to use the local System. .dll's that came with the server. I removed those and it worked. Guess it find those by itself :D Now i'm in-game, with mods and best of all... drum roll* Magic Storage works!!! :D :D :D <3 <3 <3

wouterdebruijn commented 5 years ago

Nice! Good to hear that it all worked out.

chvolkmann commented 5 years ago

@ElectroGamez Thanks a ton, running it with mono worked perfectly! @Tony322 Could you mark this issue as resolved?

Fadenfire commented 5 years ago

This issue shouldn't be marked as resolved, as it is a bug that needs to be fixed. Running the server using a different mono install is just a work around. Here is my theory about what's actually happening and how to fix it (although using a different mono install works too).

xenoswift commented 4 years ago

I wanted to say thank you to you guys troubleshooting this; I also experienced an issue attempting to start a vanilla Terraria server on CentOS 6. After getting the Mono files installed, the server would start successfully but on connectng it would crash, with Mono stating the system files are out of sync. After doing what @Tony322 did and I deleted all the included System*.dll files, the server stopped crashing on connection. I doubt this contributes to solving any other potential mod or chunk issues, but for anyone in the future that google's this same problem with crashing on connecting I hope this thread helps.