Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update never finishes downloading #2347

Open
JordyGit opened this issue Dec 3, 2021 · 10 comments
Open

Update never finishes downloading #2347

JordyGit opened this issue Dec 3, 2021 · 10 comments
Assignees
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. ExemptFromDailyDRIReport

Comments

@JordyGit
Copy link

JordyGit commented Dec 3, 2021

Version

V4.14.0
image

Describe the bug

On startup the emulator asks me to update and gives me 3 options where I selected the option to download/install the new version now. The window with "Downloading..." and a Dismiss button appears. There is no more feedback about the download (no download speed, no progress feedback, nothing) and it keeps this way. I left this for a whole day untouched and it still didn't complete. The only thing I can do is dismissing it with that button.

To Reproduce

  1. Have an older emulator version (V4.14.0)
  2. On Startup it will ask to update its version, select to do that now
  3. Downloading window appears but never finishes (bug)

Expected behavior

Download window should give feedback about the download, for example the progress as a percentage.
If something is/goes wrong it should give feedback instead of doing nothing.

Screenshots

image

@JordyGit JordyGit added the Bug Your classic code defect label Dec 3, 2021
@dmvtech dmvtech added Bot Services equired for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Dec 3, 2021
@dmvtech
Copy link
Collaborator

dmvtech commented Dec 3, 2021

Not sure if related, but when I select Check for update..., I get no response from UI at all. Currently running 4.14.0.

@anishprasad01
Copy link
Contributor

The same issue occurred for me as well when attempting to upgrade from 4.14.0. I ended up uninstalling it, downloading the installer for the latest version, and reinstalling to get to 4.14.1.

@axelsrz
Copy link
Member

axelsrz commented Dec 3, 2021

Hello @tonyanziano could you take a look at this?

@benbrown
Copy link

benbrown commented Dec 6, 2021

@JordyGit We are taking a look into this today.

@tonyanziano
Copy link
Contributor

I've repro'd this on my end, and I found the following error message which seems to be the culprit:

An error occurred in the updater's "update-available" event handler: Error: There was an error while trying to download the latest update: Error: ENOENT: no such file or directory, open 'C:\Users\tonya\AppData\Local\Programs\Bot Framework Emulator\resources\app-update.yml'

I'm unclear on why this is an issue now when it never was before. I would assume that it has something to do with the Electron upgrade, but this issue is present in 4.14.0 which is still on the older version of Electron.

@tonyanziano
Copy link
Contributor

As a workaround for now, you can go to your Emulator installation directory, and create a file called app-update.yml at the path:

<Emulator-install-dir>/resources/app-update.yml

with the content:

updaterCacheDirName: '@bfemulatormain-updater'

I just tested an update after adding this file, and it seems to have unblocked the update and everything worked as expected.

@tonyanziano
Copy link
Contributor

Note to fixer: We need to have this file generated as part of our build pipeline. Either by manually copying it in or by getting electron-builder to generate it again.

@tonyanziano tonyanziano added the customer-replied-to Required for internal reporting. Do not delete. label Dec 6, 2021
@ivorb
Copy link

ivorb commented Jul 7, 2022

Still hitting this issue, and it's impacting certification courses on MS Learn. Any updates on a fix?

@JordyGit
Copy link
Author

JordyGit commented Jul 7, 2022

@ivorb there is a workaround commented here: #2347 (comment)

@ivorb
Copy link

ivorb commented Jul 7, 2022

@JordyGit understood, that works or reinstalling with newer version works, but not a good experience for our learners doing labs. Is the idea that future versions won't hit this, and this issue for 4.14.0 is a won't fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. ExemptFromDailyDRIReport
Projects
None yet
Development

No branches or pull requests

8 participants