OS Name/Version: Windows Server 2022
Product Name/Version: AMP Release “Decadeus” v2.4.3, built 14/03/2023 23:15
Problem Description:
Amp worked prior to the update. I updated, which also updated some .NET libraries, and the Amp service starts and then stops. Windows error code is Event 7034, The AMP-AMPInstance1-ADS service terminated unexpectedly.
LastAmpException.txt produces the following (for the core program):
[Error] OS: Windows (x86_64/None)
[Error] Module: ADSModule, Version: AMPService 2.4.2.0
[Error] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: d48e8e10-7b94-4c19-b2e1-ac9a3cec993c
[Error] SocketException
[Error] [0] (SocketException) : Only one usage of each socket address (protocol/network address/port) is normally permitted
[Error] at Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at Net.Sockets.Socket.Bind(EndPoint localEP)
at Net.Sockets.TcpListener.Start(Int32 backlog)
at m.Http.HttpBackend.ConnectionLoop()
[Error] --- End Exception Data ---
LastAmpException.txt produces the following (for my Bedrock Server):
[Error] --- Begin Exception Data ---
[Error] OS: Windows (x86_64/None)
[Error] Module: MinecraftModule, Version: AMP 2.4.2.0
[Error] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: 1d4391ea-5791-40e5-8a7a-e7a4aa91c580
[Error] InvalidProgramException
[Error] [0] (InvalidProgramException) : Common Language Runtime detected an invalid program.
[Error] at GSMyAdmin.WebServer.APIService.<>c.<EndAllWebsocketSessions>b__10_0(WebSession s)
at GSMyAdmin.ExtensionMethods.ForEach[T](IEnumerable`1 source, Action`1 action)
at GSMyAdmin.WebServer.LocalWebServer.Stop()
at GSMyAdmin.Core.Shutdown()
at GSMyAdmin.Core.Run()
at GSMyAdmin.Program.Main()
[Error] --- End Exception Data ---
Steps to reproduce:
- Tried to log into amp, shows service not running.
- Went to services, restart service. Service starts then stops.
- Amp core only loads when running the executable. Service spins the whole time. No other servers load.
Actions taken to resolve so far:
*I have tried to change the user for the service to the local user, Daniel, but produces the same output. I have since put it back to NETWORK SERVICE.
*Ran Windows Update
*Rebooted (multiple times)
*Repaired installation
*Tried to load AMP manually. Amp finally works, but the service does not and no other servers on the core will work either.
When loading Amp manually (not through the service, this is the log:
[00:05:44] [Program Info] : Starting AMP version 2.4.3.0 (Decadeus), built 14/03/2023 23:15
[00:05:44] [Program Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[00:05:45] [Core Warning] : Current time zone is set to Eastern Standard Time - It is recommended you switch to UTC+0 to avoid time-zone related issues
[00:05:45] [Program Info] : OS: Windows / x86_64
[00:05:45] [Program Info] : CPU: Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz (6C/12T)
[00:05:45] [Program Info] : RAM: 16338MB
[00:05:45] [Program Info] : AMP Instance ID: d48e8e10-7b94-4c19-b2e1-ac9a3cec993c
[00:05:45] [Core Debug] : Using internal login provider
[00:05:45] [ADS Debug] : Loaded 0 remote targets from Datastore
[00:05:45] [System Warning] : Assembly Newtonsoft.Json was loaded for Core via fallback handler, check plugin dependencies.
[00:05:45] [Core Info] : Loaded ADSModule version 1.0.0.0 by CubeCoders Limited
[00:05:45] [ModuleLoader Info] : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:45] [ModuleLoader Info] : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:45] [ModuleLoader Info] : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:45] [FileBackup Debug] : Read manifests for 0 backups.
[00:05:45] [ModuleLoader Info] : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:45] [ModuleLoader Info] : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[00:05:45] [Core Info] : ADSModule requests dependency InstanceManagerPlugin…
[00:05:46] [InstanceManager Debug] : Loading instances from D:\AMPDatastore2\instances.json…
[00:05:47] [InstanceManager Debug] : Loaded 4 instances.
[00:05:47] [ModuleLoader Info] : Loaded InstanceManagerPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:47] [Core Info] : ADSModule requests dependency SystemUserManagerPlugin…
[00:05:47] [ModuleLoader Info] : Loaded SystemUserManagerPlugin version 1.0.0.0 by CubeCoders Limited
[00:05:47] [FeatureManager Info] : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[00:05:47] [ADS Debug] : Found configuration repository at CubeCoders-AMPTemplates, ec280171-c67b-4cf8-923f-dc27fea91ee1
[00:05:47] [ADS Info] : Metrics server started OK on port 12820
[00:05:47] [Core Info] : ADS startup complete in 412ms
[00:05:47] [ADS Debug] : Refreshing all remote targets…
[00:05:47] [ADS Debug] : Refreshed all remote targets.
[00:05:47] [System Info] : Updating remote source CubeCoders/AMPTemplates
[00:05:47] [Core Debug] : Downloading https://github.com/CubeCoders/AMPTemplates/archive/refs/heads/main.zip, saving to C:\Users\daniel\AppData\Local\Temp\2\tmpF6E.tmp
[00:05:48] [InstanceManager Debug] : Fetching metadata for ADS from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\ADSModule\ADSModule.dll…
[00:05:48] [InstanceManager Debug] : Fetching metadata for FileManagerPlugin from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\FileManagerPlugin\FileManagerPlugin.dll…
[00:05:48] [Core Debug] : Moving C:\Users\daniel\AppData\Local\Temp\2\tmpF6E.tmp to CubeCoders-AMPTemplates.zip…
[00:05:48] [InstanceManager Debug] : Fetching metadata for EmailSenderPlugin from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\EmailSenderPlugin\EmailSenderPlugin.dll…
[00:05:48] [InstanceManager Debug] : Fetching metadata for WebRequestPlugin from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\WebRequestPlugin\WebRequestPlugin.dll…
[00:05:48] [InstanceManager Debug] : Fetching metadata for LocalFileBackupPlugin from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\LocalFileBackupPlugin\LocalFileBackupPlugin.dll…
[00:05:48] [InstanceManager Debug] : Fetching metadata for CommonCorePlugin from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\CommonCorePlugin\CommonCorePlugin.dll…
[00:05:48] [InstanceManager Debug] : Fetching metadata for Minecraft from D:\AMPDatastore2\Instances\AMPInstance1-ADS\Plugins\MinecraftModule\MinecraftModule.dll…
[00:05:48] [ModuleLoader Notice] : Using keypair with fingerprint MnHYNTY7xNLbLUsOaE2lSQQ9U5YuhH8g//X5EiCCbAw=
[00:05:48] [ModuleLoader Info] : SFTP Server started on 0.0.0.0:2223
[00:05:48] [WebServer Debug] : Using webroot: D:\AMPDatastore2\Instances\AMPInstance1-ADS\WebRoot
[00:05:48] [WebServer Info] : Websockets are enabled.
[00:05:49] [API Debug] : Building setting specification cache…
[00:05:49] [API Debug] : Setting spec cache built, 97 items added.
[00:05:49] [Core Info] : Webserver started on http://192.168.10.20:8080
[00:05:49] [WebServer Warning] : RouterTimer@10Hz with 2 jobs started
[00:05:49] [Scheduler Debug] : Scheduler timer will start in 10519ms.
[00:05:49] [System Info] : Checking for AMP updates…
[00:05:50] [Core Debug] : Successfully got update data.
[00:05:50] [System Info] : AMP is up-to-date.
[00:05:52] [RunningTasksManager Debug] : Task Updating remote sources (Fetching latest configurations…) ended: Finished
[00:05:53] [Core Debug] : Starting process D:\AMPDatastore2\Instances\AMPInstance1-ADS\AMPService.exe
[00:05:53] [Core Debug] : Working Directory: D:\AMPDatastore2\Instances\AMPInstance1-ADS
[00:05:53] [Core Debug] : Arguments: -silent -name=AMPInstance1-ADS -start
[00:06:00] [ADS Debug] : Refreshing all remote targets…
[00:06:00] [ADS Debug] : Refreshed all remote targets.
[00:06:13] [System Error] : This instance can only be started by ADS (AMP’s main web interface) - it cannot be started via the command line.
[00:06:17] [Core Debug] : Login request from 192.168.10.20 for Admin
[00:06:18] [APIService:Admin Debug] : Creating new session for Admin at 192.168.10.20 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36) API Login
[00:06:19] [API:Admin Debug] : Login success from 192.168.10.20 via 192.168.10.20 assigned session ID 59ce5062-95f0-4ac4-bd8d-04d39fdbf995
[00:06:21] [APIService Debug] : Session 59ce5062-95f0-4ac4-bd8d-04d39fdbf995 requested websockets upgrade.
[00:06:21] [ADS:Admin Debug] : Found configuration repository at CubeCoders-AMPTemplates, ec280171-c67b-4cf8-923f-dc27fea91ee1
[00:06:28] [System:Admin Error] : This instance can only be started by ADS (AMP’s main web interface) - it cannot be started via the command line.
[00:06:33] [System Error] : This instance can only be started by ADS (AMP’s main web interface) - it cannot be started via the command line.
[00:06:53] [System:Admin Error] : This instance can only be started by ADS (AMP’s main web interface) - it cannot be started via the command line.
[00:06:53] [System Error] : This instance can only be started by ADS (AMP’s main web interface) - it cannot be started via the command line.
[00:07:00] [ADS Debug] : Refreshing all remote targets…
[00:07:00] [ADS Debug] : Refreshed all remote targets.