Linux Dedicated Server - Failed to load language file?

Civlac

Terrarian
Hey everybody. When launching the Terraria Dedicated Server, it returns:

Code:
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Text.RegularExpressions.Match' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Text.RegularExpressions.Group' threw an exception. ---> 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) <0x403f6c40 + 0x00053> in <filename unknown>:0
  at System.Text.RegularExpressions.Match..cctor () <0x403f6bd0 + 0x0004f> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Text.RegularExpressions.RegexRunner.Scan (System.Text.RegularExpressions.Regex regex, System.String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout) <0x403f6000 + 0x002fb> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Run (Boolean quick, Int32 prevlen, System.String input, Int32 beginning, Int32 length, Int32 startat) <0x403f5850 + 0x001a3> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 startat) <0x403f57c0 + 0x00047> in <filename unknown>:0
  at System.Text.RegularExpressions.RegexReplacement.Replace (System.Text.RegularExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.Regex regex, System.String input, Int32 count, Int32 startat) <0x403f52c0 + 0x00087> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat) <0x403f5240 + 0x00043> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator) <0x403f5170 + 0x00077> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.ProcessCopyCommandsInTexts () <0x403f4e20 + 0x0019f> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.LoadLanguage (Terraria.Localization.GameCulture culture) <0x403eae10 + 0x0003f> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.SetLanguage (Terraria.Localization.GameCulture culture) <0x403eacc0 + 0x00057> in <filename unknown>:0
  at Terraria.Program.LaunchGame (System.String[] args, Boolean monoArgs) <0x403e9e10 + 0x000ff> in <filename unknown>:0
  at Terraria.LinuxLaunch.Main (System.String[] args) <0x403c2d50 + 0x000cb> in <filename unknown>: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.RegularExpressions.Group' threw an exception. ---> 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) <0x403f6c40 + 0x00053> in <filename unknown>:0
  at System.Text.RegularExpressions.Match..cctor () <0x403f6bd0 + 0x0004f> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Text.RegularExpressions.RegexRunner.Scan (System.Text.RegularExpressions.Regex regex, System.String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout) <0x403f6000 + 0x002fb> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Run (Boolean quick, Int32 prevlen, System.String input, Int32 beginning, Int32 length, Int32 startat) <0x403f5850 + 0x001a3> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Match (System.String input, Int32 startat) <0x403f57c0 + 0x00047> in <filename unknown>:0
  at System.Text.RegularExpressions.RegexReplacement.Replace (System.Text.RegularExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.Regex regex, System.String input, Int32 count, Int32 startat) <0x403f52c0 + 0x00087> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat) <0x403f5240 + 0x00043> in <filename unknown>:0
  at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator) <0x403f5170 + 0x00077> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.ProcessCopyCommandsInTexts () <0x403f4e20 + 0x0019f> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.LoadLanguage (Terraria.Localization.GameCulture culture) <0x403eae10 + 0x0003f> in <filename unknown>:0
  at Terraria.Localization.LanguageManager.SetLanguage (Terraria.Localization.GameCulture culture) <0x403eacc0 + 0x00057> in <filename unknown>:0
  at Terraria.Program.LaunchGame (System.String[] args, Boolean monoArgs) <0x403e9e10 + 0x000ff> in <filename unknown>:0
  at Terraria.LinuxLaunch.Main (System.String[] args) <0x403c2d50 + 0x000cb> in <filename unknown>:0

Currently running Ubuntu 16.04.2 LTS,
using Mono JIT compiler version 4.2.1
Hardware includes a FX-8300 with 16GB ram.

This bug occurs with 1.3.5.1 and 1.3.5.2. I have run previous versions of Terraria with success, so this update must've brought the problem with it.

If anybody else is encountering this problem, leave a comment! Also if you have any recommendations feel free to leave them for me to try!
 
I actually referred him to make a thread here rather than the PM we had previously, as PMs are prohibitive towards being easily shared with others. I want to run it by the other devs and they can see it here better, but that will likely be on Monday.
 
I Can confirm that the issue still stands.

I'm not even getting to the "World Creation" Screen in ubuntu 16.04.
@OP Updating mono does nothing.

After reading through the hundreds of issues with Terraria at the moment, it's best that we wait for an official update on the matter. [Though using TShock seems to work flawlessly but I want to run a vanilla server, not modded]

Good luck!

~~~~~#Munkeywaxx#~~~~~
 
I had also the same problem getting "Failed to load language file: Terraria.Localization.Content.en-US.NPCs.json" by updating from 1.3.3.4 to 1.3.5.3
I started the server with:
screen mono tModLoaderServer.exe

The solution is to start the server via the .bin file without mono as follows:
screen ./TerrariaServer.bin.x86_64

make sure that the .bin is executable
For 32 bit systems use:
screen ./TerrariaServer.bin.x86

I can confirm that the Linux server 1.3.5.3 runs with the tModLoader.Linux.v0.10.1 with CalamityModV1.2.1.7 using the following to start it:
screen ./tModLoaderServer.bin.x86_64

make sure that the .bin is executable
 
Same issue here. Ubuntu Server 16.04 LTS, 1353 Terraria Server (Linux folder) and tModLoader (Linux build).
Using the Windows builds just gives missing kernel32.dll.
 
Back
Top Bottom