OS Name/Version: Windows 11
Product Name/Version: (Always use the full version number - not ‘Latest’) AMP v2.6.0.6
Problem Description:
Receiving errors when trying to upgrade instances via ampinstmgr
C:\Windows\System32>ampinstmgr update ADS01
[Info/1] AMP Instance Manager v2.6.0.8 built 22/01/2025 16:56
[Info/1] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Info/1] Stopping Instance: 'ADS01'
[Info/1] Stopping instance ADS01...
[Info/1] Waiting for instance to stop...
[Info/6] Instance ADS01 has stopped.
[Info/6] Upgrading instance ADS01
[Warning/4] Failed to extract archive entry: Plugins/ - Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\'.
[Error/4] DirectoryNotFoundException
[Error/4] [0] (DirectoryNotFoundException) : Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\'.
[Error/4] at Microsoft.Platform.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Platform.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
[Warning/4] Failed to extract archive entry: Plugins/TerrariaModule/ - Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\TerrariaModule\'.
[Error/4] DirectoryNotFoundException
[Error/4] [0] (DirectoryNotFoundException) : Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\TerrariaModule\'.
[Error/4] at Microsoft.Platform.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Platform.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
[Warning/4] Failed to extract archive entry: Plugins/TerrariaModule/WebRoot/ - Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\TerrariaModule\WebRoot\'.
[Error/4] DirectoryNotFoundException
[Error/4] [0] (DirectoryNotFoundException) : Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\TerrariaModule\WebRoot\'.
[Error/4] at Microsoft.Platform.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Platform.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
[Warning/4] Failed to extract archive entry: Plugins/InstanceManagerPlugin/ - Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\InstanceManagerPlugin\'.
[Error/4] DirectoryNotFoundException
[Error/4] [0] (DirectoryNotFoundException) : Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\InstanceManagerPlugin\'.
[Error/4] at Microsoft.Platform.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Platform.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
at ModuleShared.Utilities.ExtractZipArchiveAsync(String archivePath, String destinationPath, String currentEntryPath, String newEntryPath, String[] skipFiles, Boolean overwriteExisting, Boolean deleteArchive, RunningTask extractTask)
[Warning/4] Failed to extract archive entry: Plugins/FileManagerPlugin/ - Could not find a part of the path 'C:\AMPDatastore\Instances\ADS01\Plugins\FileManagerPlugin\'.
[Info/4] Upgrade successful
Steps to reproduce:
- Launch Command Prompt in Administrator mode
*Execute command ampinstmgr upgrade ADS01
Actions taken to resolve so far:
-Updated ampinstmgr using latest ampsetup.msi file
-Ran repair using ampsetup.msi file
-Restarted system