AMPINSTMGR [Error] Failed to read instance data

OS Name/Version: Debian 10.7.0

Product Name/Version: v2.4.6.4

Problem Description:

I am receiving an error when I try to start AMPINSTMGR.

[Error] Failed to read instance data; System.NullReferenceException: Object reference not set to and instance of an object at InstanceManagerPlugin.LocalInstanceManager.GetLocalInstances (System.String AlternateDefsPath) [0x00lf5] in <5c2c29a9f8lc460584925e6a5140ec35>:0

I’ve reviewed the instances.jason and AMPConfig.conf but dont see any objects directly relating to this error. Everything in the instances.json points to the correct location to find the AMPConfig.conf file.

This may be due to an unexpected power outage. Reviewed log file for 10/5 and last version check was 8am which was after outage. Fairly sure all system clocks are in alignment, made some changes to files and correct time stamp was recorded. No logs recorded since.

Actions taken to resolve so far:
I’ve made sure my drives are mounted and readable
Replaced the ADS01 instance folder with a recent backup
Replaced the instances.json file with the most recent .bak file

I’m at a loss here, any help or guidance is greatly appreciated.

Update

I performed an install, got the web instance back. Posting my console from reinstall. Just stops at the last waiting statement.
Any advice to get the instances back or just try piecing the files one by one?

Installation Summary:

AMP System user: Already exists
Instance Manager: Already installed
HTTPS setup: No
Install Docker: No
Install 32-bit libraries: Yes
Install Java: Yes

Ready to install AMP. Press ENTER to continue or CTRL+C to cancel.

Installing AMP…
amp already exists. Skipping…
Updating System…
Installing prerequisites…
Installing Java for Minecraft…
Installing 32-bit dependencies for srcds…
AMP instance manager already installed. Skipping…
Adding firewall rules…
Adding firewall rule for port 8080 (AMP Management Instance) via iptables…
Creating default instance…
[Info] AMP Instance Manager v2.4.6.4 built 07/09/2023 18:03
[Info] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] Failed to read instance data: System.NullReferenceException: Object reference not set to an instance of an object
at InstanceManagerPlugin.LocalInstanceManager.GetLocalInstances (System.String AlternateDefsPath) [0x001f5] in <5c2c29a9f81c460584925e6a5140ec35>:0
[Notice] AMP Service port ranges have not been specified, using any available…
[Notice] Application Service port ranges have not been specified, using any available…
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.
[Info] Downloading AMP from https://downloads.cubecoders.com/AMP/Mainline/20231005.1/AMP_x86_64.zip
[##################################################] ETA 00:00:00 @3.32 MB/sec
[Info] Complete
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.
[19:38:43] [Logger Info] : Starting AMP version 2.4.6.6 (Decadeus), built 05/10/2023 11:56
[19:38:43] [Logger Info] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[19:38:44] [Logger Info] : Loading configuration from provisionargs.kvp…
[19:38:44] [Logger Info] : Running in a QEMU KVM environment.
[19:38:44] [Logger Info] : Deleting 24 old log files…
[19:38:44] [Logger Warning] : Current time zone is set to EST - It is recommended you switch to UTC+0 to avoid time-zone related issues
[19:38:44] [Logger Info] : OS: Linux / x86_64
[19:38:44] [Logger Info] : CPU: Common KVM processor (10C/10T)
[19:38:44] [Logger Info] : RAM: 96678MB
[19:38:44] [Logger Info] : AMP Instance ID: xxx
[19:38:44] [Core Info] : Performing first-time setup for this instance, please wait…
[19:38:44] [Logger Info] : Loaded ADSModule version 1.0.0.0 by CubeCoders Limited
[19:38:44] [Logger Info] : Loaded FileManagerPlugin by CubeCoders Limited
[19:38:44] [Logger Info] : Loaded EmailSenderPlugin by CubeCoders Limited
[19:38:44] [Logger Info] : Loaded WebRequestPlugin by CubeCoders Limited
[19:38:44] [Logger Info] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[19:38:44] [Logger Info] : Loaded CommonCorePlugin by CubeCoders Limited
[19:38:44] [Logger Info] : ADSModule requests dependency InstanceManagerPlugin…
[19:38:45] [Logger Info] : Loaded InstanceManagerPlugin by CubeCoders Limited
[19:38:45] [Logger Info] : ADSModule requests dependency SystemUserManagerPlugin…
[19:38:45] [Logger Info] : Loaded SystemUserManagerPlugin by CubeCoders Limited
[19:38:46] [Core Info] : AMP has completed its first time setup. Saving settings and shutting down.
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.
[Info] Instance created successfully!
[Info] Starting Instance: ‘ADS01’
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.
[Info] Waiting for AMP instance to start…
[Notice] AMP instance ADS01 is now running.
[Info] Instance started in new session. Run ‘ampinstmgr View ADS01’ to view this instances live output.
[Info] ## Please browse to the instance to complete first-time setup. ##
[Info] Please visit http://192.168.1.242:8080 or http://x.x.x.x:8080 to continue setup.
[Warning] – Careful! Don’t press CTRL+C to copy, that will abort the setup. Use Ctrl+Insert instead. –
[Info] Waiting for user to complete first-time setup in browser…

2nd Update

After reinstallation and creation of a new instances.json file the web server would open, I decided to try using a .bak file that was a few revisions earlier. This worked and restored my AMP to a known good state prior to my adding of a new datastore. I must have a discrepancy with a file location of the 2nd datastore which is causing ampinstmgr to return the error and refuse to launch. During the setup of the additional drive I must have not fully had the mounting location and auto mount configured. This was evident when reviewing drives in the GUI. I edited my fstab to what I thought was correct and everything looked ok but still did not launch.

Now I’m off to work on the configuring of the directory structure. Hope this helps someone in the future.

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