Updated now the Web Interface crashes

OS Name/Version: Ubuntu 22.02

Product Name/Version: AMP Instance Manager v2.3.3

Problem Description:

Updated and now the web interface crashes and will not start

[02:14:57] [Core Info]            : OS: Linux / x86_64
[02:14:57] [Core Info]            : CPU: 12th Gen Intel(R) Core(TM) i9-12900K (16C/32T)
[02:14:57] [Core Info]            : AMP Instance ID: aa152756-70e0-442b-b808-29defd7ebe6d
[02:14:57] [ModuleLoader Info]    : Loaded ADSModule version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : ADSModule requests dependency InstanceManagerPlugin...
[02:14:57] [ModuleLoader Info]    : Loaded InstanceManagerPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : ADSModule requests dependency SystemUserManagerPlugin...
[02:14:57] [ModuleLoader Info]    : Loaded SystemUserManagerPlugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[02:14:57] [Core Info]            : Metrics server started OK on port 12820
[02:14:57] [ErrorReporter Error]  : Unhandled Exception: Please report this to the AMP developers.
[02:14:57] [ErrorReporter Error]  : [Error] --- Begin Exception Data ---
[Error] OS: Linux (x86_64/None)
[Error] Module: ADSModule, Version: AMP 2.3.3.0
[Error] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: aa152756-70e0-442b-b808-29defd7ebe6d
[Error] AutoMapperMappingException
[Error] [0] (AutoMapperMappingException) : Error mapping types.

Mapping types:
AMPInstanceBase -> InstanceSummary
InstanceManagerPlugin.AMPInstanceBase -> InstanceManagerPlugin.InstanceSummary

Type Map configuration:
AMPInstanceBase -> InstanceSummary
InstanceManagerPlugin.AMPInstanceBase -> InstanceManagerPlugin.InstanceSummary

Destination Member:
ApplicationEndpoints

[Error]   at InstanceManagerPlugin.InstanceSummary.CreateFrom (InstanceManagerPlugin.AMPInstanceBase BaseInstance) 
  at Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () 
  at Collections.Generic.List`1[T].AddEnumerable (Collections.Generic.IEnumerable`1[T] enumerable) 
  at Collections.Generic.List`1[T].InsertRange (Int32 index, Collections.Generic.IEnumerable`1[T] collection) 
  at Collections.Generic.List`1[T].AddRange (Collections.Generic.IEnumerable`1[T] collection) 
  at ADSModule.ModuleMain.RefreshInstances () 
  at ADSModule.ModuleMain.PostInit () 
  at GSMyAdmin.ModuleLoader.RunPostInit () 
  at GSMyAdmin.Core.Run () 
  at GSMyAdmin.Program.Main () 
[Error] ArgumentException
[Error] [1] (ArgumentException) : An item with the same key has already been added. Key: CustomPort
[Error]   at Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, Collections.Generic.InsertionBehavior behavior) 
  at Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) 
  at Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (Collections.Generic.IEnumerable`1[T] source, Func`2[T,TResult] keySelector, Func`2[T,TResult] elementSelector, Collections.Generic.IEqualityComparer`1[T] comparer) 
  at Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (Collections.Generic.IEnumerable`1[T] source, Func`2[T,TResult] keySelector, Func`2[T,TResult] elementSelector) 
  at InstanceManagerPlugin.LocalInstanceManager.GetEndpointForInstancePlugin (InstanceManagerPlugin.AMPInstanceBase instance, String Plugin, String FallbackDisplayName, String PreferredDisplayName) 
  at InstanceManagerPlugin.LocalInstanceManager.GetApplicationEndpoints (InstanceManagerPlugin.AMPInstanceBase instance) 
  at InstanceManagerPlugin.LocalInstanceManager.GetApplicationEndpoints (Guid instanceId) 
  at InstanceManagerPlugin.LocalAMPInstance.get_ApplicationEndpoints () 
[Error] --- End Exception Data ---
[Warning] Last error was raised less than 60 minutes ago, error report will not be submitted.

[02:14:57] [ErrorReporter Info]   : ####################################
[02:14:57] [ErrorReporter Info]   : #         Self Diagnostics         #
[02:14:57] [ErrorReporter Info]   : ####################################
[02:14:57] [ErrorReporter Info]   : AMP Diagnostics could not establish a solution for this exception.

Steps to reproduce:

Update to latest version in ubuntu 22.02
Run ampinstmgr -s ADS01
Run ampinstmgr -i ADS01

Actions taken to resolve so far:

Rebooted, Tried Updating again, Shutting Down instance then restartting instance, updating package through apt-get

I have the same problem.
OS Name/Version: Debian GNU/Linux 10 (buster)
Product Name/Version: AMP Instance Manager v2.3.3

Log:

[04:53:37] [Core Warning]         : Current time zone is set to CET - Servers should ideally be UTC to avoid time-zone related issues
[04:53:37] [Core Info]            : OS: Linux / x86_64
[04:53:37] [Core Info]            : CPU: AMD Ryzen 3 2200G (4C/4T)
[04:53:37] [Core Info]            : AMP Instance ID: fc3213d3-90cd-44d3-a7bf-ca88cb66571e
[04:53:39] [ModuleLoader Info]    : Loaded ADSModule version 1.0.0.0 by CubeCoders Limited
[04:53:39] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:40] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:40] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:41] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:41] [ModuleLoader Info]    : ADSModule requests dependency InstanceManagerPlugin...
[04:53:41] [ModuleLoader Info]    : Loaded InstanceManagerPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:41] [ModuleLoader Info]    : ADSModule requests dependency SystemUserManagerPlugin...
[04:53:41] [ModuleLoader Info]    : Loaded SystemUserManagerPlugin version 1.0.0.0 by CubeCoders Limited
[04:53:42] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[04:53:42] [Core Info]            : Metrics server started OK on port 12820
[04:53:43] [ErrorReporter Error]  : Unhandled Exception: Please report this to the AMP developers.
[04:53:43] [ErrorReporter Error]  : [Error] --- Begin Exception Data ---
[Error] OS: Linux (x86_64/None)
[Error] Module: ADSModule, Version: AMP 2.3.3.0
[Error] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: fc3213d3-90cd-44d3-a7bf-ca88cb66571e
[Error] AutoMapperMappingException
[Error] [0] (AutoMapperMappingException) : Error mapping types.

Mapping types:
AMPInstanceBase -> InstanceSummary
InstanceManagerPlugin.AMPInstanceBase -> InstanceManagerPlugin.InstanceSummary

Type Map configuration:
AMPInstanceBase -> InstanceSummary
InstanceManagerPlugin.AMPInstanceBase -> InstanceManagerPlugin.InstanceSummary

Destination Member:
ApplicationEndpoints

[Error]   at InstanceManagerPlugin.InstanceSummary.CreateFrom (InstanceManagerPlugin.AMPInstanceBase BaseInstance) 
  at Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () 
  at Collections.Generic.List`1[T].AddEnumerable (Collections.Generic.IEnumerable`1[T] enumerable) 
  at Collections.Generic.List`1[T].InsertRange (Int32 index, Collections.Generic.IEnumerable`1[T] collection) 
  at Collections.Generic.List`1[T].AddRange (Collections.Generic.IEnumerable`1[T] collection) 
  at ADSModule.ModuleMain.RefreshInstances () 
  at ADSModule.ModuleMain.PostInit () 
  at GSMyAdmin.ModuleLoader.RunPostInit () 
  at GSMyAdmin.Core.Run () 
  at GSMyAdmin.Program.Main () 
[Error] ArgumentException
[Error] [1] (ArgumentException) : An item with the same key has already been added. Key: CustomPort
[Error]   at Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, Collections.Generic.InsertionBehavior behavior) 
  at Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) 
  at Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (Collections.Generic.IEnumerable`1[T] source, Func`2[T,TResult] keySelector, Func`2[T,TResult] elementSelector, Collections.Generic.IEqualityComparer`1[T] comparer) 
  at Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (Collections.Generic.IEnumerable`1[T] source, Func`2[T,TResult] keySelector, Func`2[T,TResult] elementSelector) 
  at InstanceManagerPlugin.LocalInstanceManager.GetEndpointForInstancePlugin (InstanceManagerPlugin.AMPInstanceBase instance, String Plugin, String FallbackDisplayName, String PreferredDisplayName) 
  at InstanceManagerPlugin.LocalInstanceManager.GetApplicationEndpoints (InstanceManagerPlugin.AMPInstanceBase instance) 
  at InstanceManagerPlugin.LocalInstanceManager.GetApplicationEndpoints (Guid instanceId) 
  at InstanceManagerPlugin.LocalAMPInstance.get_ApplicationEndpoints () 
[Error] --- End Exception Data ---
[Warning] Last error was raised less than 60 minutes ago, error report will not be submitted.

[04:53:43] [ErrorReporter Info]   : ####################################
[04:53:43] [ErrorReporter Info]   : #         Self Diagnostics         #
[04:53:43] [ErrorReporter Info]   : ####################################
[04:53:43] [ErrorReporter Info]   : AMP Diagnostics could not establish a solution for this exception.

Looking into it. Do you guys all have custom ports added to some of your instances?

I have the same issue (Posted on DC) and yes I have custom ports on 2 of 2 MC Java instances (for dynmap and geyser)

I’ve identified the issue. Custom Ports were all given the same node name of “CustomPort” which doesn’t work with the new ports/nodes system. I’m going to release a stealth update (do ampinstmgr --nocache upgradeall in about 45 minutes) which fixes this by replacing them with unique names.

2 Likes

Hi Mike, that worked. Thank you very much for your time and support.