vscode-azurestorage
vscode-azurestorage copied to clipboard
"UnexpectedQuit" message trying to download from storage account.
When attempting to download a file from our Azure Storage account, which used to work just fine, after selecting the destination folder, I am receiving an error that just says "UnexpectedQuit". No more information is given as to the error.
The file in question is able to be downloaded using the Azure Portal website without problem (using the same login credentials).
From the error message, it seems like it is trying to open the file in the editor. Is it possible that it's actually still downloading despite the error?
But we'll investigate why the regression has happened. Thanks for reporting this issue!
When I click on the .pdf file (in this case), it does show a message that it can't display the document in the editor. This is fine. When I then attempt to right-click and Download the file, and after selecting a destination directory, that is when the "UnexpectedQuit" message is reported.
However, if I just click on a file that can be displayed (a .json file for example), that file is correctly displayed in an editor window. BUT if I try to download (again, right-click, select destination directory), the same error is reported. So the file CAN be read, just not downloaded.
@jtsom
Sorry, but could you answer a couple of questions?
- Could you try downgrading your Azure Storage version and see if it works again?
- Are you able to upload anything to your Storage account?
- Is there any more information when you expand the error? (in the red notification pane)
Some questions about your dev environment:
- OS
- VS Code version
- Storage Account version
- Azure Accounts version
This will help us with our investigation as we can't reproduce this on our machines.
@jtsom
Sorry, but could you answer a couple of questions?
- Could you try downgrading your Azure Storage version and see if it works again?
I downgraded to the previous version (0.14.2). Now downloading (Right click - Download) seem to work. However, just clicking on a document gives an error in the notification popup, and the developer tools:
- Are you able to upload anything to your Storage account?
I haven't tried.
- Is there any more information when you expand the error? (in the red notification pane)
No, all it says is UnexpectedQuit
Some questions about your dev environment:
- OS
Windows 11 Pro 22H2
- VS Code version
Version: 1.72.0-insider (user setup)
Commit: 64bbfbf67ada9953918d72e1df2f4d8e537d340e
Date: 2022-10-04T23:17:57.431Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes
- Storage Account version
0.15.0
- Azure Accounts version
0.11.1
This will help us with our investigation as we can't reproduce this on our machines.
- Are you able to upload anything to your Storage account?
I went to try this, and I don't see a way to upload. Right clicking the folder doesn't give any "Upload" selection...
and dragging and dropping a file does nothing.
It's not super intuitive, but you can right-click a file in the File Explorer view. You'll see this context menu action:
Definitely not intuitive - I didn't expect to have to just pick a file in the explorer view - If I want to upload any fine, I'd have to add it to whatever folder I had open (or open some folder to show the files.)
Any update on this issue? As it is, this feature is unusable.
@jtsom Sorry for the delay in response.
There's no update on this yet, but there is a workaround. I'm sorry that it's very inconvenient, but maybe you can use it while we're investigating this issue.
If you downgrade both your "Azure Resources" and "Azure Storage" extensions, I think it'll work. I believe that Azure Resources
v5.5 should work with Azure Storage
v0.14.2.
Again, very sorry for the inconvenience. We'll try to prioritize getting a fix out for this issue.
The error is exceedingly rare and we've been unable to reproduce it on our end. Could you answer the following questions? It might help us get a lead to reproduce this.
- Does this error happen no matter what your destination folder is?
- If it works for other folders, what is the path that is erroring?
- Have you been able to successfully download from a different Storage Account?
- If it works for other storage accounts, what is the name of the account that is failing?
- Does this error happen no matter what your destination folder is?
Yes, destination folder has no bearing.
- If it works for other folders, what is the path that is erroring?
- Have you been able to successfully download from a different Storage Account?
No.
- If it works for other storage accounts, what is the name of the account that is failing?
Thanks for the help.
Could you attach the log files?
It should be in the .azcopy folder in your users home directory
Sorry... I missed this message. Here are the log files for a download I just attempted.
f0694c62-cc28-e347-75e7-65ec6f4aeecb-scanning.log f0694c62-cc28-e347-75e7-65ec6f4aeecb.log
Weird, it says that the file downloaded successfully in the logs.
I noticed that the download target is a .pdf. Does it fail for all file types or only for PDFs?
Weird, it says that the file downloaded successfully in the logs.
I noticed that the download target is a .pdf. Does it fail for all file types or only for PDFs?
Any file type. Also, I noticed those log files in the .azcopy are actually from the Microsoft Azure Storage Explorer application. (The stand alone application can download files just fine.)
When attempting to download using VSCode and getting the "unexpectedQuit" error, there isn't anything logged in the .azcopy folder.
Okay, well this is super bizarre. Really sorry that we can't get down to the bottom of this. Just to confirm, has downgrading the extension has been working and unblocking you?
The previous version, 0.14.2, can download the files without a problem. Guessing something that changes between that and the latest version is to blame.
Thanks.