vscode-azurestorage icon indicating copy to clipboard operation
vscode-azurestorage copied to clipboard

"UnexpectedQuit" message trying to download from storage account.

Open jtsom opened this issue 2 years ago • 16 comments

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).

image

jtsom avatar Oct 04 '22 13:10 jtsom

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!

nturinski avatar Oct 04 '22 17:10 nturinski

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 avatar Oct 04 '22 17:10 jtsom

@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.

nturinski avatar Oct 05 '22 22:10 nturinski

@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:

image

image

  • 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

image

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.

jtsom avatar Oct 06 '22 13:10 jtsom

  • 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...

image

and dragging and dropping a file does nothing.

jtsom avatar Oct 06 '22 15:10 jtsom

It's not super intuitive, but you can right-click a file in the File Explorer view. You'll see this context menu action: image

nturinski avatar Oct 10 '22 21:10 nturinski

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.)

jtsom avatar Oct 11 '22 13:10 jtsom

Any update on this issue? As it is, this feature is unusable.

jtsom avatar Oct 24 '22 16:10 jtsom

@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?

nturinski avatar Oct 31 '22 18:10 nturinski

  • 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.

jtsom avatar Oct 31 '22 18:10 jtsom

Could you attach the log files?

It should be in the .azcopy folder in your users home directory

nturinski avatar Oct 31 '22 18:10 nturinski

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

jtsom avatar Nov 11 '22 15:11 jtsom

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?

nturinski avatar Nov 11 '22 19:11 nturinski

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.

jtsom avatar Nov 11 '22 20:11 jtsom

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?

nturinski avatar Nov 16 '22 22:11 nturinski

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.

jtsom avatar Nov 17 '22 16:11 jtsom