I hit this issue while trying to migrate nimbuspm, and wanted to raise it here (I’ll also put it in github) as a question to see what we should do?
Running this:
./AMSMigrate assets -s 2b461b25-f7b4-4a22-90cc-d640a14b5471 -g johndeu_DO_NOT_DELETE -n nimbuspm -o https://pohhsustoragetest.blob.core.windows.net/ -t test/${AssetName}-stream-dash --skip-migrated False --copy-nonstreamable False --working-dir /datadrive/AMSMigrate
AMSMigrate hit this exception and exited:
[05:26:02 Info] Migrating asset: 02479cd2-82cc-4d46-8276-1c8cbddd1bef (container asset-02479cd2-82cc-4d46-8276-1c8cbddd1bef) ...
Asset Migration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 630/2159 Assets 29% 00:04:59 ⣯
Unhandled exception: Azure.RequestFailedException: The specified container does not exist.
RequestId:8f874d35-201e-0021-4793-b0a279000000
Time:2023-07-07T05:26:02.3324457Z
Status: 404 (The specified container does not exist.)
ErrorCode: ContainerNotFound
Content:
ContainerNotFound
The specified container does not exist.
RequestId:8f874d35-201e-0021-4793-b0a279000000
Time:2023-07-07T05:26:02.3324457Z
Headers:
Vary: Origin
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 8f874d35-201e-0021-4793-b0a279000000
x-ms-client-request-id: deec121d-dc41-45a3-b6c5-b4cfdc252692
x-ms-version: 2022-11-02
x-ms-error-code: ContainerNotFound
Date: Fri, 07 Jul 2023 05:26:01 GMT
Content-Length: 225
Content-Type: application/xml
at Azure.Storage.Blobs.ContainerRestClient.GetPropertiesAsync(Nullable1 timeout, String leaseId, CancellationToken cancellationToken) at Azure.Storage.Blobs.BlobContainerClient.GetPropertiesInternal(BlobRequestConditions conditions, Boolean async, CancellationToken cancellationToken) at Azure.Storage.Blobs.BlobContainerClient.GetPropertiesAsync(BlobRequestConditions conditions, CancellationToken cancellationToken) at AMSMigrate.Ams.AssetMigrationTracker.GetMigrationStatusAsync(BlobContainerClient container, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/AssetMigrationTracker.cs:line 68 at AMSMigrate.Ams.AssetMigrator.MigrateAsync(MediaServicesAccountResource account, BlobServiceClient storage, MediaAssetResource asset, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/AssetMigrator.cs:line 144 at AMSMigrate.Ams.AssetMigrator.<>c__DisplayClass6_0.<<MigrateAsync>b__1>d.MoveNext() in /home/pohhsu/z/azure-media-migration/ams/AssetMigrator.cs:line 89 --- End of stack trace from previous location --- at AMSMigrate.Ams.AssetMigrator.<>c__DisplayClass6_0.<<MigrateAsync>b__0>d.MoveNext() in /home/pohhsu/z/azure-media-migration/ams/AssetMigrator.cs:line 89 --- End of stack trace from previous location --- at AMSMigrate.Ams.BaseMigrator.MigrateInBatches[T](AsyncPageable
1 pageable, List1 filteredList, Func
2 processBatch, Int32 batchSize, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/BaseMigrator.cs:line 61
at AMSMigrate.Ams.BaseMigrator.MigrateInBatches[T](AsyncPageable1 pageable, List
1 filteredList, Func2 processBatch, Int32 batchSize, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/BaseMigrator.cs:line 57 at AMSMigrate.Ams.AssetMigrator.MigrateAsync(MediaServicesAccountResource account, AsyncPageable
1 assets, List1 filteredList, ChannelWriter
1 writer, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/AssetMigrator.cs:line 87
at AMSMigrate.Ams.AssetMigrator.MigrateAsync(CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/ams/AssetMigrator.cs:line 76
at AMSMigrate.Program.MigrateAssetsAsync(GlobalOptions globalOptions, AssetOptions assetOptions, CancellationToken cancellationToken) in /home/pohhsu/z/azure-media-migration/Program.cs:line 186
at AMSMigrate.Program.<>c__DisplayClass0_0.<
b__1>d.MoveNext() in /home/pohhsu/z/azure-media-migration/Program.cs:line 55
--- End of stack trace from previous location ---
at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<b__0>d.MoveNext()
The Asset name is this: 02479cd2-82cc-4d46-8276-1c8cbddd1bef
It turns out the container (asset-02479cd2-82cc-4d46-8276-1c8cbddd1bef) is non-existing…
So wondering if this is okay to exit as is? Or we need to add code to catch this exception and then just fail and continue? (also will raise issue in github)