Azurestorageexplorer: Getting The blob type is invalid for this operation when uploading VHD

Created on 14 Dec 2018  路  7Comments  路  Source: microsoft/AzureStorageExplorer


Storage Explorer Version: 1.6.0
Platform/OS: Win 10 1809
Architecture: x64

Bug description
Trying to upload VHD as page blob but getting error below

Steps to Reproduce

  1. Trying to upload VHD file as page blob
  2. One file was successfully uploaded but second one receives error below for some reason

Expected Experience

Actual Experience

{
  "name": "StorageError",
  "message": "The blob type is invalid for this operation.\nRequestId:c5b16313-101e-0071-33cd-933056000000\nTime:2018-12-14T16:51:27.7323049Z",
  "stack": "StorageError: The blob type is invalid for this operation.\nRequestId:c5b16313-101e-0071-33cd-933056000000\nTime:2018-12-14T16:51:27.7323049Z\n    at Function.StorageServiceClient._normalizeError (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:1198:23)\n    at Object.StorageServiceClient._processResponse (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:744:50)\n    at Request.processResponseCallback [as _callback] (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:317:37)\n    at Request.self.callback (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:185:22)\n    at emitTwo (events.js:126:13)\n    at Request.emit (events.js:214:7)\n    at Request.<anonymous> (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:1157:10)\n    at emitOne (events.js:116:13)\n    at Request.emit (events.js:211:7)\n    at IncomingMessage.<anonymous> (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:1079:12)",
  "code": "InvalidBlobType",
  "statusCode": 409,
  "requestId": "c5b16313-101e-0071-33cd-933056000000"
}

Additional Context

This seems to be some issue with naming which Azure did not like. Any name other then AWENEUWVEDIAD01-disk1.vhd is accepted to upload but if file is named exactly like that it fails to upload through any tools to Azure (including UI)
image

Most helpful comment

Works after renaming the VHD to all lowercases. Also, I had to remove hyphens. Weird!

All 7 comments

I assume your VHD is aligned on the 512-byte boundary? Page blobs are a collection of 512-byte pages optimized for random read and write operations. The maximum size for a page blob is 8 TB. Can you please confirm?

I'm not sure what that means but as you can see it's not VHD itself but naming of the file which contributed to the issue. If file was named a certain way it would immediately fail with HTTP 409.

I renamed one of my VHD with the name you had issue with, mine uploaded just fine.

Ok, something must be in my account but this is definetely name related and not actual content. Error at the very minimum is misleading.

Works after renaming the VHD to all lowercases. Also, I had to remove hyphens. Weird!

Was there an existing Block Blob before you did the append? If so, the write will fail. You have to create an Append Blob in order to write append blocks to it.

I too was getting the "blob type is invalid" error until I renamed the file to all lower case.
Storage Explorer Version: 1.7.0
Platform/OS: Win 10 1809
Architecture: x64

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgklein picture jorgklein  路  4Comments

cbailiss picture cbailiss  路  6Comments

spboyer picture spboyer  路  4Comments

CurtMiller66 picture CurtMiller66  路  6Comments

ayon1911 picture ayon1911  路  5Comments