Skip to content

Issue porting page-blob to blockblob #116

Open
@qootec

Description

@qootec

Scenario:

  • Using Windows download for 0.6.20
  • I have a vhdx uploaded to Azure. By design, it became a page blob.
  • I planned to move it to archive, but page blobs can't be archived. I wasn't aware of that...
  • I now want to use blobporter to duplicate the blob to a blockblob and remove the pageblob afterwards
    (later I want to do that on several TB of VHDX that I've uploaded)

The command I tried (with some confidential info removed):

blobporter -f "https://saMyAccount.blob.core.windows.net/system20211012/Part1/Backup%202021-10-12%20073026/complexID.vhdx" -n Part1/Backup%202021-10-12%20073026/complexID.vhdx.removeExtension -c system20211012 -t blob-blockblob

Issue (with some confidential info removed):

Files to Transfer (blob-blockblob) :
Source: saMyAccount.blob.core.windows.net/system20211012/Part1/Backup 2021-10-12 073026/complexID.vhdx Size:306184192
2021/11/12 16:08:13 -> github.com/Azure/azure-storage-blob-go/azblob.NewResponseError, /home/travis/gopath/pkg/mod/github.com/!azure/[email protected]/azblob/zz_generated_response_error.go:29
= RESPONSE ERROR (ServiceCode=InvalidBlobType) =
Description=The blob type is invalid for this operation.
RequestId:975a66aa-301e-015d-40d7-d72bfe000000
Time:2021-11-12T15:08:13.1203140Z, Details:
Code: InvalidBlobType
PUT https://saMyAccount.blob.core.windows.net/system20211012/Part1/Backup 2021-10-12 073026/complexID.vhdx?blockid=MD...someid...3D&comp=block&timeout=61
Authorization: REDACTED
Content-Length: [0]
User-Agent: [BlobPorter/0.6.20/amd64/Azure-SDK-For-Go/0.0.0 azblob/2018-03-28 Azure-Storage/0.5 (go1.11; Windows_NT)]
X-Ms-Client-Request-Id: [ad501250-2412-481d-6b73-cdcc3ddcc887]
X-Ms-Copy-Source: [saMyAccount.blob.core.windows.net/system20211012/Part1/Backup 2021-10-12 073026/complexID.vhdx?se=2021-11-12t21%3A08%3A12z&sig=REDACTED&sp=r&sr=b&sv=2018-03-28]
X-Ms-Date: [Fri, 12 Nov 2021 15:08:12 GMT]
X-Ms-Source-Range: [bytes=260046848-268435455]
X-Ms-Version: [2018-03-28]

RESPONSE Status: 409 The blob type is invalid for this operation.
Content-Length: [228]
Content-Type: [application/xml]
Date: [Fri, 12 Nov 2021 15:08:12 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [InvalidBlobType]
X-Ms-Request-Id: [975a66aa-301e-015d-40d7-d72bfe000000]
X-Ms-Version: [2018-03-28]

Analysis:

Any suggestions?
Thanks,
Johan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions