AMP
AMP copied to clipboard
Changing instance settings from the manager giving an error
Bug Report
System Information
- Operating System: Ubuntu 20.04 (Management Server, Game Server) Windows 10 (Game Server)
- AMP version and build date: AMP Release "Triton"v2.3.2.12, built 05/05/2022 18:13
- Which AMP release stream you're using: Mainline
I confirm:
- [x] that I have searched for an existing bug report for this issue.
- [x] that I am using the latest available version of AMP.
- [x] that my operating system is up-to-date.
Symptoms
- What are you trying to do?
- I'm trying to change settings for instances on my instance manager
- What are you expecting to happen?
- I'm expecting the instances to be updated
- What is actually happening? ('Nothing' is not an acceptable answer!)
- I'm getting the following error
Returned exception from API call ADSModule/UpdateInstanceInfo
NullReferenceException
[0] (NullReferenceException) : Object reference not set to an instance of an object
at InstanceManagerPlugin.RemoteInstanceManager.ReconfigureInstance (Guid instanceId, ModuleShared.RunningTask Task) at ADSModule.WebMethods.UpdateInstanceInfo (String InstanceId, String FriendlyName, String Description, Boolean StartOnBoot, Boolean Suspended, Boolean ExcludeFromFirewall, Boolean RunInContainer, Int32 ContainerMemory, InstanceManagerPlugin.ContainerMemoryPolicy MemoryPolicy, Single ContainerMaxCPU) at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest)
Reproduction
I installed AMP on two Ubuntu 20.04 VMs and one Windows 10 (latest update) VM. One Ubuntu machine is supposed to be the manager.
All worked fine for a couple of days but if I now try to change for example the "Start on Boot" toggle switch I get the error presented above. If I try changing ports of an instance nothing happens at all.
I'm still able to create and delete instances from the manager instance.
Workaround is possible
I am still able to change the settings if I use the "Manage" button and manage the instances on their dedicated panel. Might be a configuration error on my side but if I can get around reinstalling I would appreciate it.
What have I tried already?
I tried using a snapshot from a few days ago. Used the ampinstmgr --nocache upgradeall command Used different browser to test and always cleared the cache I also changed the "Monitoring.LogLevel" to "0" in the AMPConfig.conf but haven't seen more information on that error
Is this still giving you issues in the latest version of AMP?
Yes, starting and stopping works and if I change something it looks like it works, but after ctrl + f5 it's back to the previous settings.
If i change the description i get the "Unable to reconfigure instance" popup.
I am having the exact same issue. Nearly new installation.

Running Ubuntu 20.04 on controller and 20.04 on Instance.
Newest build 2.4.0.2
From console:
Returned exception from API call ADSModule/UpdateInstanceInfo NullReferenceException [0] (NullReferenceException) : Object reference not set to an instance of an object at InstanceManagerPlugin.RemoteInstanceManager.ReconfigureInstance (Guid instanceId, ModuleShared.RunningTask Task) at ADSModule.WebMethods.UpdateInstanceInfo (String InstanceId, String FriendlyName, String Description, Boolean StartOnBoot, Boolean Suspended, Boolean ExcludeFromFirewall, Boolean RunInContainer, Int32 ContainerMemory, InstanceManagerPlugin.ContainerMemoryPolicy MemoryPolicy, Single ContainerMaxCPU) at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest)
Fixed in 2406 (available in Nightly)