Closed tanieee28 closed 4 years ago
@tanieee28 Please help with the link of document on which above document feedback request is created. Under this repository we want to make sure any issue is linked to a doc so we can help others that may be having the same issue.
@AshokPeddakotla-MSFT I have followed the below document for deploying blob storage on IoT Edge :
https://docs.microsoft.com/en-us/azure/iot-edge/how-to-deploy-blob
@tanieee28 I followed the documentation and the config which you have provided and able to deploy module successfully without any issues. Could you please provide more detailed steps to repro your issue? Where are you seeing this error message? @arduppal Do you have any suggestions for this issue?
@tanieee28 Have you had a chance to see my response? Do let us know the requested details for further help.
Hi @AshokPeddakotla-MSFT . Sorry for delayed response.
I have also followed the same document and still when deploying the module, after module start the above mentioned error logs are coming ( Error 39987)
Let me explain the scenario again,
"storageContainersForUpload": {
"imageblob": { //local container name
"target": "imageblob" //remote container name
}
}
More Info: I am doing this on Raspberry Pi 3 ( OS - raspbian stretch) iotedge -- latest version
@tanieee28 Thanks for the details. I am assigning this to the author @arduppal for further assistance.
@arduppal Please check this issue and provide your suggestions.
@tanieee28 Have you created storage container "imageblob"? This error is to be expected on a fresh deployment when you haven't created any containers/blobs yet. The upload module is trying to push out blobs based on the configuration you specified but it looks like there is nothing to push out yet.
Let me know if you have any questions.
@tanieee28 Does the above suggestions helped you resolve the issue? Do let us know if you need further help.
@mbialecka Sorry for delayed response.
Yes, its a fresh deployment and what i was expecting is that local blob module should create the local blob container by itself and should not through above logs stating that it is not able to find it.
However, With some help i was able to resolve this by using Azure storage explorer. So, i connected the storage explorer with the local blob storage using the connection string and later created the blob container named "imageblob" from the storage explorer functionalities.
But, i am still concerned about the local blob module as its the module's work to create an internal blob container from given configs. Above solution can be a workaround but its not a solution and it will be helpful if the owner of this module fixes this in future.
Thanks
@tanieee28- Thanks for the feedback, will look at it in our next update.
@AshokPeddakotla-MSFT : Can you close this issue?
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Hi. I have the same problem on a fresh deployment. I have created a docker volume called "storagevolume". Then below is my deployment settings:
Container create options:
{ "Env": [ "LOCAL_STORAGE_ACCOUNT_NAME=localstorage", "LOCAL_STORAGE_ACCOUNT_KEY=KEY" ], "HostConfig": { "Binds": [ "storagevolume:/blobroot" ], "PortBindings": { "11002/tcp": [ { "HostPort": "11002" } ] } } }
Module twin settings:
{ "deviceAutoDeleteProperties": { "deleteOn": false, "deleteAfterMinutes": 35791, "retainWhileUploading": true }, "deviceToCloudUploadProperties": { "uploadOn": true, "uploadOrder": "OldestFirst", "cloudStorageConnectionString": "DefaultEndpointsProtocol=AZURE-STORAGE-ENDPOINT", "storageContainersForUpload": { "localblobstorage": { "target": "edgelocalstorage" } }, "deleteAfterUpload": false } }
The error I see is:
[2021-06-29 10:02:00.719] [error ] [tid 1838] [MetaStore.cc:1953] [ListBlobsInOrder] Container not found. Name:localblobstorage [2021-06-29 10:02:00.719] [error ] [tid 1838] [BlobInterface.cc:1535] [ListBlobsInOrder] ListBlobsInOrder failed. Container:localblobstorage Error:39987 [2021-06-29 10:02:01.722] [info ] [tid 1838] [BlobInterface.cc:1494] [ListBlobsInOrder] ListBlobsInOrder received. Container:localblobstorage BlobNameStart:null MaxBlobNames:1 OrderType:0 Flags:1
I can clearly see that module cannot find the source container. But isn't it module's responsibility to create that container upon start?
Yes, i agree and as from the comments from @arduppal it was expected to be added in next update. Till that time, you can create a container with the name specified ("localblobstorage") in your azureblobstorage module using azure storage explorer App. Here is the link to get the app, https://azure.microsoft.com/en-in/features/storage-explorer/
Thanks @tanieee28. Actually I was not successful in manually creating local storage via storage explorer. I will redo and if I face same issue will write here.
@arduppal, any timeline on the updated version? I'm using version 1.4.1.0.
I can't manually create container using the storage explorer. I'm using the following connection string to connect to storage account:
DefaultEndpointsProtocol=http;BlobEndpoint=http://192.168.0.102:11002/localstorage;AccountName=localstorage;AccountKey=<account-key>==;
I face the following error:
`Unable to retrieve child resources.
Details: { "name": "RestError", "message": "One of the request inputs is not valid.\nRequestId:3e3f5d3b-3fc0-4baf-9965-931bb3f569f8\nTime:2021-06-29T21:27:05.4881822Z", "stack": "RestError: One of the request inputs is not valid.\nRequestId:3e3f5d3b-3fc0-4baf-9965-931bb3f569f8\nTime:2021-06-29T21:27:05.4881822Z\n at new RestError (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@azure\core-http\dist\index.js:2362:28)\n at handleErrorResponse (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@azure\core-http\dist\index.js:3246:17)\n at C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@azure\core-http\dist\index.js:3182:18\n at processTicksAndRejections (internal/process/task_queues.js:97:5)", "code": "InvalidInput", "statusCode": 400, "request": { "streamResponseStatusCodes": {}, "url": "http://192.168.0.102:11002/?include=metadata&comp=list", "method": "GET", "headers": { "_headersMap": { "x-ms-version": { "name": "x-ms-version", "value": "2020-04-08" }, "user-agent": { "name": "user-agent", "value": "Microsoft Azure Storage Explorer, 1.19.1, win32 azsdk-js-storageblob/12.4.1 (NODE-VERSION v12.16.3; Windows_NT 10.0.18363)" }, "x-ms-client-request-id": { "name": "x-ms-client-request-id", "value": "203d8317-1183-47d7-9d6f-26b9b4f7beec" }, "x-ms-date": { "name": "x-ms-date", "value": "Tue, 29 Jun 2021 21:27:05 GMT" }, "authorization": { "name": "Authorization", "value": "SharedKey localstorage:qAgjrg6rMCNEFxQsg+cVT8czp72qnPZvl0zpffeev7Y=" }, "cookie": { "name": "Cookie", "value": "" } } },`
Yes, I checked this in my environment and saw the same error. let me try to debug this. @AshokPeddakotla-MSFT Request your help on this incase its an issue from some new updates.
Any update on this from MS? @AshokPeddakotla-MSFT @arduppal
@arminghasemazar Could you please let us know what is the error you were facing when using Azure Storage Explorer to create the container manually?
@SatishBoddu-MSFT Already wrote here.
I can't manually create container using the storage explorer. I'm using the following connection string to connect to storage account:
DefaultEndpointsProtocol=http;BlobEndpoint=http://192.168.0.102:11002/localstorage;AccountName=localstorage;AccountKey=<account-key>==;
I face the following error:
`Unable to retrieve child resources.
Details: { "name": "RestError", "message": "One of the request inputs is not valid.\nRequestId:3e3f5d3b-3fc0-4baf-9965-931bb3f569f8\nTime:2021-06-29T21:27:05.4881822Z", "stack": "RestError: One of the request inputs is not valid.\nRequestId:3e3f5d3b-3fc0-4baf-9965-931bb3f569f8\nTime:2021-06-29T21:27:05.4881822Z\n at new RestError (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@Azure\core-http\dist\index.js:2362:28)\n at handleErrorResponse (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@Azure\core-http\dist\index.js:3246:17)\n at C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@Azure\core-http\dist\index.js:3182:18\n at processTicksAndRejections (internal/process/task_queues.js:97:5)", "code": "InvalidInput", "statusCode": 400, "request": { "streamResponseStatusCodes": {}, "url": "http://192.168.0.102:11002/?include=metadata&comp=list", "method": "GET", "headers": { "_headersMap": { "x-ms-version": { "name": "x-ms-version", "value": "2020-04-08" }, "user-agent": { "name": "user-agent", "value": "Microsoft Azure Storage Explorer, 1.19.1, win32 azsdk-js-storageblob/12.4.1 (NODE-VERSION v12.16.3; Windows_NT 10.0.18363)" }, "x-ms-client-request-id": { "name": "x-ms-client-request-id", "value": "203d8317-1183-47d7-9d6f-26b9b4f7beec" }, "x-ms-date": { "name": "x-ms-date", "value": "Tue, 29 Jun 2021 21:27:05 GMT" }, "authorization": { "name": "Authorization", "value": "SharedKey localstorage:qAgjrg6rMCNEFxQsg+cVT8czp72qnPZvl0zpffeev7Y=" }, "cookie": { "name": "Cookie", "value": "" } } },`
Also having the same problem here. Creating manually the container via Storage Explorer is not an option.
Any update on this issue?
Same issue here... since the IoT device is not on my local network (it´s an Edge) I cannot use the Storage Explorer to create the container. Is there any update on this issue?
I had similar issue with storage explorer. Then i figured out the issue in my connection string, I was missing account name in blob endpoint inside connection string
Following is my connection string
DefaultEndpointsProtocol=http;BlobEndpoint=http://127.0.0.1:11002/**gatewayftpfiles**;AccountName=gatewayftpfiles;AccountKey=<ACCOUNTKEY>
Same issue for me even with account anme in blob endpoint : DefaultEndpointsProtocol=http;BlobEndpoint=http://127.0.0.1:11002/devstoreaccount11;AccountName=devstoreaccount11;AccountKey=*****
Is there any update about this issue?
@arduppal @AshokPeddakotla-MSFT
Any updates on this issue?
Any updates on this issue? @AshokPeddakotla-MSFT
@tanieee28 - When you originally filed this issue, the info you provided contained an Azure Storage account access key. The key has been edited out of the issue and replaced with the <account-key>
placeholder, but we recommend you revoke/rotate account keys to ensure that key cannot be used.
Hi, I was deploying azure storage on iot edge via marketplace image of azure storage (mcr.microsoft.com/azure-blob-storage) After deploying the container on iotedge, it was showing running but when i checked the logs i found out this :
Now, i am not sure why this is happening after following all steps from below azure docs correctly
Container Create Options :
Module Twin Settings :
Can somebody help here ?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.