After restarting my ADS all of the managed instances that is has on it disappear.
Managed Instance Issue
- 36 Views
- Last Post 2 days ago
Not enough information. See the following : https://support.cubecoders.com/thread/read-me-first-how-to-get-an-answer-quickly/
OS Name/Version: Windows Server 2016
Product Name/Version: AMP 18.104.22.168
Problem Description: After restarting my ADS all of the managed instances that is has on it disappear, I'm able to connect back to them if I recreate the instances in the same order that I created them in the first place.
Steps to reproduce: Step 1: Create an instance, in my case I have a Minecraft server and an Ark server. Step 2: Restart ADS from the AMP instance manager
Actions taken to resolve so far: I have recreated all of my instances including my ADS instance.
Unfortunately by recreating the instances again you've put your self in a situation where the issue can't be diagnosed.
The information on the instances is stored in the "Instances.json" file in the datastore directory, make sure that ADS has full read/write access to the directory and to that file. Also make sure that you don't have the GUI IM and ADS running at the same time or they can overwrite the datastore of the other.
This is the issue I keep running into...
[InstanceManager:aldun Error] : Failed to write instance data: System.UnauthorizedAccessException: Access to the path 'D:\AMP\instances.json' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at InstanceManagerPlugin.LocalInstanceManager.SaveLocalInstances()
I have verified the permission on instances.json and the entire directory.
That's why - the owner needs to be whatever user is running the instances, which if you're running them as services is NETWORK SERVICE. It's why the guide says not to use the Administrator user as it can cause this issue.