Terraria Server LIM Error

OS Name/Version: Windows Server2019

Problem Description: My terraria server is not working properly, every time a player enters the server for a few minutes, the service will stop

This is the log of the ADS Server:

16:40:00
Managed remote instance JianDan-TShock-Terraria-Server01 at http://192.168.100.105:9011/
Authentication token for admin requested by ManageInstance on behalf of admin

16:47:56
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.
Slow method invocation: Servers took 2002ms to complete.
Slow response: ADSModule.Servers took 2002ms to complete.

16:47:57
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.

16:48:00
Instance JianDan-TShock-Terraria-Server01 has stopped
ADS logged stopped instance JianDan-TShock-Terraria-Server01 - exit code -1 (CATASTROPHIC_FAILURE)

16:48:01
:admin
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.
LIM - Failure to make API call to JianDan-TShock-Terraria-Server01: An error occurred while sending the request.

What about the logs of the TShock instance?

Hi,
This is the log content, because I am in +08 time zone, so it is different from the time recorded by ADS.

At the end of the log, I see some errors

[08:16:34] [Core Info] : Loading locale data for xx from xx.json…

[08:16:34] [Program Info] : Starting AMP version 2.4.4.0 (Decadeus), built 17/05/2023 17:54

[08:16:34] [Program Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV

[08:16:34] [Core Warning] : Current time zone is set to 中国标准时间 - It is recommended you switch to UTC+0 to avoid time-zone related issues

[08:16:34] [Program Info] : OS: Windows / x86_64

[08:16:34] [Program Info] : CPU: Intel(R) Core™ i9-10900 CPU @ 2.80GHz (10C/10T)

[08:16:34] [Program Info] : RAM: 65268MB

[08:16:34] [Program Info] : AMP Instance ID: af06b334-6f70-4d64-a1d4-df6bc97de2be

[08:16:34] [Loader Info] : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited

[08:16:34] [Core Info] : Metrics publishing is enabled at udp://localhost:12820.

[08:16:34] [Loader Info] : Loaded FileManagerPlugin by CubeCoders Limited

[08:16:34] [Loader Info] : Loaded EmailSenderPlugin by CubeCoders Limited

[08:16:34] [Loader Info] : Loaded WebRequestPlugin by CubeCoders Limited

[08:16:34] [Loader Info] : Loaded LocalFileBackupPlugin by CubeCoders Limited

[08:16:34] [Loader Info] : Loaded CommonCorePlugin by CubeCoders Limited

[08:16:34] [Loader Info] : GenericModule requests dependency steamcmdplugin…

[08:16:34] [Loader Info] : Loaded steamcmdplugin by CubeCoders Limited

[08:16:34] [Loader Info] : GenericModule requests dependency RCONPlugin…

[08:16:34] [Loader Info] : Loaded RCONPlugin by CubeCoders Limited

[08:16:35] [Core Error] : Invalid setting node: GenericModule.App.Ports.$ServerPort

[08:16:35] [Core Error] : Invalid setting node: GenericModule.App.Ports.$RESTAPIPort

[08:16:35] [Core Info] : Licence Present: AMP Professional Edition

[08:16:35] [FileManager Notice] : Using keypair with fingerprint eT9aqCoyUJPspLwNtYYQhb1JRLrVgNrNrqUHXKWzXrw=

[08:16:35] [FileManager Info] : SFTP Server started on 192.168.100.105:2234

[08:16:35] [Webserver Info] : Websockets are enabled.

[08:16:35] [Webserver Info] : Webserver started on http://192.168.100.105:9011

[08:16:35] [Webserver Info] : RouterTimer@10Hz with 2 jobs started

[08:16:35] [Core Info] : Checking for AMP updates…

[08:16:35] [Core Info] : Startup mode is StartApplication.

[08:16:35] [Generic Info] : Specified executable 'D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\TShock.Server.exe does not exist. Updating application…

[08:16:36] [Core Info] : AMP is up-to-date.

[08:17:45] [Core Activity] : Authentication attempt for user admin from 192.168.100.105

[08:17:47] [Core Activity] : Authentication success

[08:18:30] [API:admin Activity] : Changing setting Meta.GenericModule.ServerName to DanYou-Terraria

[08:18:30] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:18:30] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:18:34] [API:admin Activity] : Changing setting Meta.GenericModule.seed to

[08:18:34] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:18:34] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:19:05] [API:admin Activity] : Changing setting Meta.GenericModule.$MaxUsers to 100

[08:19:05] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:19:05] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:19:35] [API:admin Activity] : Changing setting GenericModule.PerformanceConfig.SleepMode to False

[08:19:40] [API:admin Activity] : Changing setting GSMyAdmin.MonitoringSettings.ReportPhysicalMemoryAsTotal to True

[08:19:49] [API:admin Activity] : Changing setting GSMyAdmin.MonitoringSettings.ConsoleScrollback to 2880

[08:19:55] [API:admin Activity] : Changing setting RCONPlugin.ServerSettings.ServerIPBinding to 192.168.100.105

[08:20:17] [API:admin Activity] : Changing setting Meta.GenericModule.noupnp to False

[08:20:17] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:20:17] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:20:22] [API:admin Activity] : Changing setting Meta.GenericModule.noupnp to True

[08:20:22] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:20:22] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:20:35] [API:admin Activity] : Changing setting Meta.GenericModule.lang to zh_CN

[08:20:35] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:20:35] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:21:43] [API:admin Activity] : Changing setting Meta.GenericModule.secure to True

[08:21:43] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:21:43] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:22:04] [API:admin Activity] : Changing setting Meta.GenericModule.password to danyoumc

[08:22:04] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:22:04] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:22:20] [API:admin Activity] : Changing setting Meta.GenericModule.ShowBackupAutosaveMessages to False

[08:22:20] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:22:20] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:22:44] [API:admin Activity] : Changing setting Meta.GenericModule.SaveWorldOnLastPlayerExit to True

[08:22:44] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:22:44] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:23:30] [API:admin Activity] : Changing setting Meta.GenericModule.$MaxUsers to 20

[08:23:30] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:23:30] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:24:38] [API:admin Activity] : Changing setting Meta.GenericModule.MinimumPasswordLength to 0

[08:24:47] [API:admin Activity] : Changing setting Meta.GenericModule.KickProxyUsers to False

[08:24:47] [Generic:admin Warning] : Tried to merge config file ./tshock-server/tshock/config.json but the file does not exist.

[08:24:47] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:27:51] [Core Activity] : Authentication attempt for user admin from 192.168.100.105

[08:27:53] [Core Activity] : Authentication success

[08:29:06] [Core Activity] : Authentication attempt for user admin from 192.168.100.105

[08:29:06] [Core Activity] : Authentication success

[08:29:37] [Core Activity] : Authentication attempt for user admin from 192.168.100.105

[08:29:37] [Core Activity] : Authentication success

[08:30:19] [Generic Info] : Extracting D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\TShock-5.2-for-Terraria-1.4.4.9-win-x64-Release.zip to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server.…

[08:30:28] [Generic Info] : Extracting D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\dotnet\aspnetcore-runtime-6.0.22-win-x64.zip to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\dotnet…

[08:30:41] [Generic Info] : Merging config file ./tshock-server/tshock/config.json (JSON format) using Unicode (UTF-8) encoding.

[08:30:41] [Generic Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

[08:30:41] [Generic Info] : Merging config file ./tshock-server/tshock/config.json (JSON format) using Unicode (UTF-8) encoding.

[08:30:41] [Generic Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

Created new 8401x2401 DefaultCollection`1 for source: System.Void Terraria.Main::.cctor()

[OTAPI] Starting up (OTAPI PC Server,3.1.20,a82d3e8,ModFw:1.1.7).

TerrariaAPI Version: 2.1.0.0 (Protocol v1.4.4.9 (279), OTAPI 1.4.4.9)

[TShock] Info World path has been set to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\Worlds

[TShock] Info Config path has been set to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\tshock

[TShock] Info Log path has been set to tshock/logs

Port overridden by startup argument. Set to 6666

Startup parameter overrode maximum player slot configuration value.

TShock 5.2.0.0 (Intensity) now running.

AutoSave Enabled

Backups Enabled

Welcome to TShock for Terraria!

TShock comes with no warranty & is free software.

You can modify & distribute it under the terms of the GNU GPLv3.

[Server API] Info Plugin TShock v5.2.0.0 (by The TShock Team) initiated.

Terraria Server v1.4.4.9

Resetting game objects

Creating world - Seed: 1941852680 Width: 8400, Height: 2400, Evil: -1, IsExpert: False

Generating world terrain

Adding sand

Generating ocean sand

Generating hills

Putting dirt behind dirt

Placing rocks in the dirt

Placing dirt in the rocks

Adding clay

Making random holes

Generating small caves

Generating large caves

Generating surface caves

Adding snow

Generating jungle

Adding more grass

Desertification

Generating floating islands

Adding mushroom patches

Chiseling marble

Growing granite

Placing mud in the dirt

Adding silt

Adding shinies

Adding webs

Creating underworld

Making the world bloody

Adding water bodies

Generating mountain caves

Creating beaches

Adding gems

Gravitating sand

Forming the depths

Cleaning up dirt backgrounds

Placing altars

Creating jungle ruins

Creating hornet nests

Settling liquids

Smoothing the world

Creating waterfalls

Weathering caverns

Placing life crystals

Placing statues

Hiding treasure

Hiding more treasure

Hiding jungle treasure

Hiding water treasure

Growing spider caves

Mossification

Making cave walls

Growing rich mahogany

Placing breakables

Placing hellforges

Spreading grass

Felling trees

Placing traps

Placing objects

Planting sunflowers

Planting trees

Planting herbs

Planting weeds

Growing vines

Planting flowers

Planting mushrooms

Settling liquids

Settling liquids

Growing cacti

Clean up

Generating structures

Growing water plants

Disarming broken traps

Final clean up

Saving world…

Saving world data:

Validating world save:

Resetting game objects

Loading world data:

Settling liquids

Terraria Server v1.4.4.9

Listening on port 6666

Type ‘help’ for a list of commands.

A password for this server was set in config.json and is being used.

Login before join enabled. Users may be prompted for an account specific password instead of a server password on connect.

Login using UUID enabled. Users automatically login via UUID.

A malicious server can easily steal a user’s UUID. You may consider turning this option off if you run a public server.

To setup the server, join the game and type /setup 6418112

This token will display until disabled by verification. (/setup)

: Server started

[08:32:42] [API:admin Activity] : Stopping the application.

Shutting down safely. To force shutdown, send SIGINT (CTRL + C) again.

Saving world…

Saving world data:

Validating world save:

Backing up world file

World saved.

Server console interrupted!

Saving before exit…

Saving world…

Saving world data:

Validating world save:

[08:34:59] [API:admin Activity] : Starting the application.

[08:34:59] [Generic:admin Info] : Merging config file ./tshock-server/tshock/config.json (JSON format) using Unicode (UTF-8) encoding.

[08:34:59] [Generic:admin Info] : Writing config file ./tshock-server/tshock/motd.txt using Unicode (UTF-8) encoding.

Created new 8401x2401 DefaultCollection`1 for source: System.Void Terraria.Main::.cctor()

[OTAPI] Starting up (OTAPI PC Server,3.1.20,a82d3e8,ModFw:1.1.7).

TerrariaAPI Version: 2.1.0.0 (Protocol v1.4.4.9 (279), OTAPI 1.4.4.9)

[TShock] Info World path has been set to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\Worlds

[TShock] Info Config path has been set to D:\AMP_Server\Server_Data\Instances\JianDan-TShock-Terraria-Server01\tshock-server\tshock

[TShock] Info Log path has been set to tshock/logs

TShock was improperly shut down. Please use the exit command in the future to prevent this.

Port overridden by startup argument. Set to 6666

Startup parameter overrode maximum player slot configuration value.

TShock 5.2.0.0 (Intensity) now running.

AutoSave Enabled

Backups Enabled

Welcome to TShock for Terraria!

TShock comes with no warranty & is free software.

You can modify & distribute it under the terms of the GNU GPLv3.

[Server API] Info Plugin TShock v5.2.0.0 (by The TShock Team) initiated.

Terraria Server v1.4.4.9

Resetting game objects

Loading world data:

Settling liquids

Terraria Server v1.4.4.9

Listening on port 6666

Type ‘help’ for a list of commands.

A password for this server was set in config.json and is being used.

Login before join enabled. Users may be prompted for an account specific password instead of a server password on connect.

Login using UUID enabled. Users automatically login via UUID.

A malicious server can easily steal a user’s UUID. You may consider turning this option off if you run a public server.

TShock Notice: setup-code.txt is still present, and the code located in that file will be used.

To setup the server, join the game and type /setup 6418112

This token will display until disabled by verification. (/setup)

: Server started

192.168.100.1:62984 is connecting…

192.168.100.1:5184 is connecting…

卯秀 has joined.

192.168.100.1:30786 is connecting…

Eagle-IOS has joined.

Eagle-IOS: 嗨

卯秀: 哈喽呀

192.168.100.1:47012 is connecting…

Eagle-IOS: 我挂机

卯秀: 嗯呢

卯秀: 我也挂会

[08:40:00] [Core Activity] : Authentication attempt for user admin from 192.168.100.105

[08:40:02] [Core Activity] : Authentication success

192.168.100.1:58874 is connecting…

salt_cuts has joined.

卯秀: 敌人呢

卯秀: 挂了咩

卯秀: 好玩

Backing up world…

Saving world…

Saving world data:

Validating world save:

World saved.

World backed up.

Saving world…

Saving world data:

Validating world save:

Backing up world file

192.168.100.1:1337 is connecting…

MOYUking has joined.

[08:45:45] [API:admin Activity] : Adding interval trigger ‘Stop-Server-2235-0635’

卯秀: 这皮肤好有意思

MOYUking: 我是CKL

[08:46:43] [API:admin Activity] : Adding interval trigger ‘Start-Server-2335-0735’

卯秀: 我脑袋上为什么有小鸟

salt_cuts: 鸟法杖

[08:47:38] [API:admin Activity] : Adding interval trigger ‘Auto-Backup-1900-0300’

卯秀: 原来如此

[08:47:51] [ErrorReporter:admin Error] : Unhandled Exception: This will be automatically reported to the AMP developers.

[08:47:51] [ErrorReporter:admin Error] : [Error] — Begin Exception Data —

[Error] OS: Windows (x86_64/None)

[Error] Module: GenericModule, Version: AMP 2.4.4.0

[Error] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV

[Error] Instance ID: af06b334-6f70-4d64-a1d4-df6bc97de2be

[Error] IOException

[Error] [0] (IOException) : Unknown error “16389”.

[Error] at IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at IO.__ConsoleStream.Write(Byte buffer, Int32 offset, Int32 count)

at IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)

at IO.StreamWriter.Write(Char buffer, Int32 index, Int32 count)

at IO.TextWriter.SyncTextWriter.WriteLine(String value)

at Console.WriteLine(String value)

at GSMyAdmin.Logger.WriteLog(LogLevels level, String message, ConsoleColor fg, ConsoleColor bg)

at GSMyAdmin.Logger.ConsoleOutput(RawString message)

at GenericModule.GenericApp.HandleOutput(String data)

at Diagnostics.Process.OutputReadNotifyUser(String data)

at Diagnostics.AsyncStreamReader.FlushMessageQueue()

at Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()

at Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)

[Error] — End Exception Data —

[08:47:51] [ErrorReporter:admin Info] : Uploading error report…

[08:47:52] [ErrorReporter:admin Info] : Done!

[08:47:52] [ErrorReporter:admin Info] : ####################################

[08:47:52] [ErrorReporter:admin Info] : # Self Diagnostics #

[08:47:52] [ErrorReporter:admin Info] : ####################################

[08:47:52] [ErrorReporter:admin Info] : AMP Diagnostics could not establish a solution for this exception.

You need to update AMP. Following the update guide in this discourse

OK, thank you for your help