Short story: Why is it like this?

David Arbirk 20 Reputation points
2025-08-28T12:08:45.8933333+00:00

This article reads like an elaborate joke:
invalid-blob-or-block-content-or-invalid-block-list

My story:
Working with azure.. I wanted to upload a large file so I installed the azure cli and tried. Hmm authentication errors. Fix fix, try again error.

Ask chat-gpt ah large files use azcopy. Install azcopy boom, lets go. panic: runtime error: invalid memory address or nil pointer dereference (I have not seen that in a looong time lol)

Chat-gpt: Try sas key (time limited key) ... Error 400 The specified blob or block content is invalid.

 

start googling.. first article (I didn't believe it):

Yes that is a normal error after failed upload. Your options are:

  • wait for the garbagecollector to come by in SEVEN days!?!?!?! Wait seven days for the uncommitted blocklist to be cleaned up by garbage collection.
  • magic

I made a new container and everything worked 🤯

 

M$ christ wtf get a grip

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
{count} votes

1 answer

Sort by: Most helpful
  1. David Arbirk 20 Reputation points
    2025-08-28T15:02:41.4266667+00:00

    So when I had setup azcopy I got the error below. After that I tried with a temporary "SAS"-key. That worked, but now I had the issue with the blocking un-committed blob.

    My main issue in all of this are the unspecific error descriptions. And why are there no indication of issues on the azure portal - surely a warning and a "flush un-committed" button could be made.

    
    C:\Users\<REMOVED>\Downloads\azcopy_windows_amd64_10.30.0\azcopy_windows_amd64_10.30.0> .\azcopy.exe login --tenant-id <REMOVED>
    INFO: Authentication is required. To sign in, open the webpage https://microsoft.com/devicelogin and enter the code <REMOVED> to authenticate.
    INFO: Login succeeded.
    C:\Users\<REMOVED>\Downloads\azcopy_windows_amd64_10.30.0\azcopy_windows_amd64_10.30.0> .\azcopy.exe copy "C:\Users\<REMOVED>\Downloads\xxx.xxx" "https://<REMOVED>.blob.core.windows.net/<REMOVED>" --recursive
    INFO: Scanning...
    INFO: Autologin not specified.
    INFO: Authenticating to destination using Azure AD
    INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support
    
    Job <REMOVED> has started
    Log file is located at: C:\Users\<REMOVED>\.azcopy\<REMOVED>.log
    
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal 0xc0000005 code=0x0 addr=0x10 pc=0x1423ed5]
    
    goroutine 330 [running]:
    github.com/Azure/azure-storage-azcopy/v10/ste.(*destReauthPolicy).Do(0xc000090298, 0xc00711a740)
            D:/a/_work/1/s/ste/destReauthPolicy.go:63 +0x1f5
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00711a700)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-storage-azcopy/v10/ste.statsPolicy.Do({}, 0xc00711a700)
            D:/a/_work/1/s/ste/xferStatsPolicy.go:175 +0x3b
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00710f520)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-storage-azcopy/v10/ste.logPolicy.Do({{{0xb2d05e00, 0x0}, 0xc00034c750, 0xc00034c768}, 0xc000680780, 0xc0006807b0, 0xc0006807e0}, 0xc00711a6c0)
            D:/a/_work/1/s/ste/xferLogPolicy.go:164 +0x4c5
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00711a680)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-storage-azcopy/v10/ste.(*retryNotificationPolicy).Do(0xc0014d37e0?, 0xc00711a680)
            D:/a/_work/1/s/ste/xferRetryNotificationPolicy.go:64 +0x2a
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00711a600)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime.telemetryPolicy.Do({{0xc00030c900?, 0x1912a20?}}, 0xc00711a600)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/runtime/policy_telemetry.go:70 +0x1b4
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00711a5c0)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime.includeResponsePolicy(0xc00711a5c0)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/runtime/policy_include_response.go:19 +0x1c
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.PolicyFunc.Do(0x5?, 0x5?)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:216 +0x19
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.(*Request).Next(0xc00711a580)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/request.go:146 +0xf0
    github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported.Pipeline.Do({{0xc00046b980?, 0x0?, 0x0?}}, 0x13a2239?)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.18.1/internal/exported/pipeline.go:76 +0x45
    github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated.(*BlockBlobClient).StageBlock(0xc00034c708, {0x1d1ce10?, 0xc0004cb170?}, {0xc00b12c2a0?, 0x1b003a8ab40?}, 0x1b003a82ef8?, {0x1d1a9e0?, 0xc0006fe360?}, 0xc000060020?, 0x0, ...)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.6.2/internal/generated/zz_blockblob_client.go:554 +0xcb
    github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob.(*Client).StageBlock(0xc00034c720, {0x1d1ce10, 0xc0004cb170}, {0xc00b12c2a0, 0x30}, {0x1d1a9e0, 0xc0006fe360}, 0xc0014d3d38)
            C:/Users/<REMOVED>/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v1.6.2/blockblob/client.go:221 +0x275
    github.com/Azure/azure-storage-azcopy/v10/ste.(*blockBlobUploader).GenerateUploadFunc.(*blockBlobUploader).generatePutBlock.func2()
            D:/a/_work/1/s/ste/sender-blockBlobFromLocal.go:104 +0x31a
    github.com/Azure/azure-storage-azcopy/v10/ste.(*blockBlobUploader).GenerateUploadFunc.(*blockBlobUploader).generatePutBlock.createSendToRemoteChunkFunc.createChunkFunc.func4(0x5f5e100?)
            D:/a/_work/1/s/ste/sender.go:207 +0x294
    github.com/Azure/azure-storage-azcopy/v10/ste.(*jobMgr).chunkProcessor(0xc0005c7008, 0xa3)
            D:/a/_work/1/s/ste/mgr-JobMgr.go:1055 +0xab
    created by github.com/Azure/azure-storage-azcopy/v10/ste.(*jobMgr).poolSizer in goroutine 59
            D:/a/_work/1/s/ste/mgr-JobMgr.go:957 +0x236
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.