Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Server is crashing when starting #1329

Closed Luysita closed 7 years ago

Luysita commented 7 years ago

Hello,

My server is crashing when doing mono-sgen TerrariaServer.exe command. It's a linux dedicated server, unbuntu 16.04 LTS. I reinstalled it recently, I had unbuntu 14.04 and worked fine there.

[Server API] Error Server crashed due to an unhandled exception: System.TypeInitializationException: The type initializer for 'Terraria.Main' threw an exception. ---> System.BadImageFormatException: Could not resolve field token 0x0400289d File name: 'TerrariaServer' --- End of inner exception stack trace --- at Terraria.ProgramServer.InnerStart (System.String[] args) <0x41ffbf80 + 0x0003b> in :0

Not sure what I'm missing here, may I have help?

Thank you.

kobawan commented 7 years ago

I'm getting a similar issue. I'm running it on raspbian. This is from the ServerLog.txt: [11/26/16 20:44:51] [Server API] Verbose: TerrariaApi - Server v1.25.0.0 started. [11/26/16 20:44:51] [Server API] Verbose: Command line: /srv/terraria/tshock/TerrariaServer.exe [11/26/16 20:44:51] [Server API] Verbose: OS: Unix 4.4.26.0 (64bit: False) [11/26/16 20:44:51] [Server API] Verbose: Mono: True [11/26/16 20:44:53] [Server API] Error: Startup aborted due to an exception in the Server API initialization: System.InvalidOperationException: Plugin "TShock" has thrown an exception during initialization. ---> System.Exception: Fatal TShock initialization exception. See inner exception for details. ---> System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception. ---> System.BadImageFormatException: Could not resolve field token 0x04000493 at Newtonsoft.Json.JsonWriter.BuildStateArray () [0x0001b] in :0 at Newtonsoft.Json.JsonWriter..cctor () [0x000b3] in :0 --- End of inner exception stack trace --- at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) [0x00000] in :0 at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00015] in :0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x0000e] in :0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in :0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Newtonsoft.Json.Formatting formatting) [0x00000] in :0 at TShockAPI.ConfigFile.Write (System.IO.Stream stream) [0x00000] in <5ec3232541cf490cb4f41b990b5c1840>:0 at TShockAPI.ConfigFile.Write (System.String path) [0x0000a] in <5ec3232541cf490cb4f41b990b5c1840>:0 at TShockAPI.FileTools.SetupConfig () [0x0006f] in <5ec3232541cf490cb4f41b990b5c1840>:0 at TShockAPI.TShock.Initialize () [0x00056] in <5ec3232541cf490cb4f41b990b5c1840>:0 --- End of inner exception stack trace --- at TShockAPI.TShock.Initialize () [0x0013c] in <5ec3232541cf490cb4f41b990b5c1840>:0 at TerrariaApi.Server.PluginContainer.Initialize () [0x00006] in <253eed52a5484fe096f2a3dcec657099>:0 at TerrariaApi.Server.ServerApi.LoadPlugins () [0x0031f] in <253eed52a5484fe096f2a3dcec657099>:0 --- End of inner exception stack trace --- at TerrariaApi.Server.ServerApi.LoadPlugins () [0x0034a] in <253eed52a5484fe096f2a3dcec657099>:0 at TerrariaApi.Server.ServerApi.Initialize (System.String[] commandLineArgs, Terraria.Main game) [0x00127] in <253eed52a5484fe096f2a3dcec657099>:0 at Terraria.ProgramServer.InnerStart (System.String[] args) [0x00050] in <253eed52a5484fe096f2a3dcec657099>:0

AxisKriel commented 7 years ago

Can you post your mono --version output?

hakusaro commented 7 years ago

Do either of you still have this issue, @MrsMeowys, @kobawan, on the latest travis build?

QuiCM commented 7 years ago

Closing due to 2 weeks of no responses Please reopen if this is still occurring :)