Getting error while doing fresh installation on Armbian server

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: Ubuntu 22.04 LTS (ARM) (Armbian)

Product Name/Version: AMP Instance Manager v2.4.6 built 02/08/2023 20:09

Problem Description: Trying to use the install wizard but I am reciving an error when trying to install AMP. Here is the relating error:

Can't find custom attr constructor image: /opt/cubecoders/amp/plugins/ADSModule.dll mtoken: 0x0a00001e due to: Could not load file or assembly 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[Activity] Audit: Unknown/None [CreateInstance] Created instance ADS01 using ADS module on port 8080.
Can't find custom attr constructor image: /opt/cubecoders/amp/plugins/ADSModule.dll mtoken: 0x0a00001e due to: Could not load file or assembly 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Can't find custom attr constructor image: /opt/cubecoders/amp/plugins/ADSModule.dll mtoken: 0x0a00001e due to: Could not load file or assembly 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Can't find custom attr constructor image: /opt/cubecoders/amp/plugins/ADSModule.dll mtoken: 0x0a00001e due to: Could not load file or assembly 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Unhandled Exception:
Unity.Exceptions.ResolutionFailedException: Resolution of the dependency failed, type = 'GSMyAdmin.Detection', name = '(none)'.
Exception occurred while: Calling constructor GSMyAdmin.Detection().
Exception is: ArgumentException - An item with the same key has already been added. Key: Model name
-----------------------------------------------
At the time of the exception, the container was:
  Resolving GSMyAdmin.Detection,(none)
  Calling constructor GSMyAdmin.Detection()
 ---> System.ArgumentException: An item with the same key has already been added. Key: Model name
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at GSMyAdmin.Detection.GetProcessorInfo () [0x0020b] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Detection..ctor () [0x00061] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Unity.Builder.IBuilderContext)
  at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicBuildPlanGenerationContext+<>c__DisplayClass16_0.<GetBuildMethod>b__0 (Unity.Builder.IBuilderContext context) [0x00000] in <4075103c00cd4983990a67406179a866>:0
  at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicMethodBuildPlan.BuildUp (Unity.Builder.IBuilderContext context) [0x00000] in <4075103c00cd4983990a67406179a866>:0
  at Unity.Strategies.BuildPlanStrategy.PreBuildUp (Unity.Builder.IBuilderContext context) [0x000f0] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainer.ThrowingBuildUp (Unity.Builder.IBuilderContext context) [0x0001c] in <4075103c00cd4983990a67406179a866>:0
   --- End of inner exception stack trace ---
  at Unity.UnityContainer.ThrowingBuildUp (Unity.Builder.IBuilderContext context) [0x00084] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainer.Resolve (System.Type typeToBuild, System.String nameToBuild, Unity.Resolution.ResolverOverride[] resolverOverrides) [0x0003b] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainerExtensions.Resolve[T] (Unity.IUnityContainer container, Unity.Resolution.ResolverOverride[] overrides) [0x00000] in <b771391f55c449a0a753280565b775bb>:0
  at GSMyAdmin.ExtensionMethods.ResolveAndRegister[TObject,TInterface] (Unity.IUnityContainer container, Unity.Resolution.ResolverOverride[] overrides) [0x00000] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Core.Run () [0x00022] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Program.Main () [0x00005] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Unity.Exceptions.ResolutionFailedException: Resolution of the dependency failed, type = 'GSMyAdmin.Detection', name = '(none)'.
Exception occurred while: Calling constructor GSMyAdmin.Detection().
Exception is: ArgumentException - An item with the same key has already been added. Key: Model name
-----------------------------------------------
At the time of the exception, the container was:
  Resolving GSMyAdmin.Detection,(none)
  Calling constructor GSMyAdmin.Detection()
 ---> System.ArgumentException: An item with the same key has already been added. Key: Model name
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at GSMyAdmin.Detection.GetProcessorInfo () [0x0020b] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Detection..ctor () [0x00061] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Unity.Builder.IBuilderContext)
  at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicBuildPlanGenerationContext+<>c__DisplayClass16_0.<GetBuildMethod>b__0 (Unity.Builder.IBuilderContext context) [0x00000] in <4075103c00cd4983990a67406179a866>:0
  at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicMethodBuildPlan.BuildUp (Unity.Builder.IBuilderContext context) [0x00000] in <4075103c00cd4983990a67406179a866>:0
  at Unity.Strategies.BuildPlanStrategy.PreBuildUp (Unity.Builder.IBuilderContext context) [0x000f0] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainer.ThrowingBuildUp (Unity.Builder.IBuilderContext context) [0x0001c] in <4075103c00cd4983990a67406179a866>:0
   --- End of inner exception stack trace ---
  at Unity.UnityContainer.ThrowingBuildUp (Unity.Builder.IBuilderContext context) [0x00084] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainer.Resolve (System.Type typeToBuild, System.String nameToBuild, Unity.Resolution.ResolverOverride[] resolverOverrides) [0x0003b] in <4075103c00cd4983990a67406179a866>:0
  at Unity.UnityContainerExtensions.Resolve[T] (Unity.IUnityContainer container, Unity.Resolution.ResolverOverride[] overrides) [0x00000] in <b771391f55c449a0a753280565b775bb>:0
  at GSMyAdmin.ExtensionMethods.ResolveAndRegister[TObject,TInterface] (Unity.IUnityContainer container, Unity.Resolution.ResolverOverride[] overrides) [0x00000] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Core.Run () [0x00022] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
  at GSMyAdmin.Program.Main () [0x00005] in <d67c7ed3e3b84d8f9d5b4bef0db76172>:0
Can't find custom attr constructor image: /opt/cubecoders/amp/plugins/ADSModule.dll mtoken: 0x0a00001e due to: Could not load file or assembly 'SQLite-net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[Error] Configuration Failed: AMP configuration failed with return code 1
[Info] Instance creation failed. Reason: "AMP configuration failed with return code 1"
Failed to create default instance.
Aborting...

Steps to reproduce:

  • Using a Orange Pi board which uses a RK3588 ARM cpu
  • Then used the bash <(wget -qO- getamp.sh) command
  • Default username admin
HTTPS setup:                    No
Install Java:                   Yes
Configure CPx2:                 No
  • Accept the above from summary and install

Actions taken to resolve so far:
Tried searching online within the forum for any similar experiences but I cannot find any.

Looks like an incompatibility with either the output lscpu or the contents of /proc/cpuinfo - AMP has never been tested on this hardware platform so I’ll have to look into it. Arelscpu and /sys/devices/system/cpu/possible present on your system?

Hi, sorry about the delayed reply.

lscpu does exist on the system and heres the output:

Architecture:           aarch64
  CPU op-mode(s):       32-bit, 64-bit
  Byte Order:           Little Endian
CPU(s):                 8
  On-line CPU(s) list:  0-7
Vendor ID:              ARM
  Model name:           Cortex-A55
    Model:              0
    Thread(s) per core: 1
    Core(s) per socket: 4
    Socket(s):          1
    Stepping:           r2p0
    CPU max MHz:        1800.0000
    CPU min MHz:        408.0000
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimd
                        dp
  Model name:           Cortex-A76
    Model:              0
    Thread(s) per core: 1
    Core(s) per socket: 2
    Socket(s):          2
    Stepping:           r4p0
    CPU max MHz:        2400.0000
    CPU min MHz:        408.0000
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimd
                        dp
Caches (sum of all):
  L1d:                  384 KiB (8 instances)
  L1i:                  384 KiB (8 instances)
  L2:                   2.5 MiB (8 instances)
  L3:                   3 MiB (1 instance)
Vulnerabilities:
  Itlb multihit:        Not affected
  L1tf:                 Not affected
  Mds:                  Not affected
  Meltdown:             Not affected
  Mmio stale data:      Not affected
  Retbleed:             Not affected
  Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:           Mitigation; __user pointer sanitization
  Spectre v2:           Vulnerable: Unprivileged eBPF enabled
  Srbds:                Not affected
  Tsx async abort:      Not affected

For /sys/devices/system/cpu/possible, that file does exist.

Aah I see why. AMPs system detection doesn’t handle the situation where there are two CPUs but they are different models because of a BIG.little setup. I’ll have to make an adjustment for this.

I’ve made the change so it’ll be in the next update. AMP will only be able to detect the first listed CPU in this circumstance but it’ll make things work properly.

Hi Mike,

Thank you so much for your amazing support. When could I expect this change to go live?

A new update has been released with this change in.

You can apply it by switching over to the amp user:

sudo su - amp

And then updating everything:

ampinstmgr upgradeall

Then starting it up:

ampinstmgr startall

This should allow it to start on your hardware.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.