Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

Client Auto-Update Does Not Work

Open canuckbrian opened this issue 6 years ago • 77 comments

My Setup

  • Operating System: Windows 10 1909 & 2004 Releases

  • App Version: 2.17.10

  • Installation type: exe

  • [x] I have tested with the latest version

  • [X] I can simulate the issue easily

Description

Automatic update doesn't work. User is prompted and informed that install will proceed once new client is downloaded. But nothing happens.

Current Behavior

  • User is notified that there's an update available and clicks on "INSTALL UPDATE" electron_update_notice

  • Dialog pops up letting user know they'll be notified when update is ready to be installed electron_update_notice2

  • No notification occurs, no update is installed

  • Update installer file is downloaded to "C:\Users[username]\AppData\Local\rocket-chat-updater\pending"

  • File is called "temp-rocketchat-setup-2.17.11.exe electron_updater_file_created

  • After file is downloaded it disappears

Expected Behavior

  • After updated is downloaded, the installer is started and the user is notified

Additional Info

This issue has been around a very long time. At least since I've been using Rocket.Chat which was 3 years ago now. As updates have been coming out we've been instructing users to update manually by downloading the releases through github, but this is tedious as some users don't want to take the time to do it and others don't feel comfortable installing software. It also causes confusion for people who do try, but are constantly prompted that there's an update still every time they launch the client.

canuckbrian avatar Jul 24 '20 17:07 canuckbrian

Looks like a (nicely documented) duplicate of #1205. We've also observed this issue too going back at least several months in successive version.

inovari avatar Jul 25 '20 14:07 inovari

This also appears to be similar to issue #1300

A new bit of info that I hadn't seen in the others. This may be caused by Windows Smart Screen interfering and not posting a pop-up. I manually downloaded .11 for the update and when I went to install I received a smart filter alert that Windows Defender had prevented it from running as seen below.

rocket-chat-setup-2 17 11-defender-error

So, maybe this is a false positive and breaking the install process, or the binary off github has somehow been posted with malicious content?

torrycrass avatar Aug 01 '20 20:08 torrycrass

I have had this problem for years. It silently fails, I guess--nothing happens at all except when I reboot, it again reminds me that I need to update, I tell it fine, and it tells me it will tell me when it's ready. It never is ready, apparently...

I think the background downloading is doing a disservice here, especially when it's so unreliable (read: it doesn't work at all, for anyone that I know using it). Instead, download it in the foreground, which should be pretty fast, and when it's done, let the user launch it. Maybe then, they will be able to see what error is occurring, if any.

As of now, users click ok, then forget about it, thinking it will update later, when it won't. I'm not sure why this is so hard to get right.

adipose avatar Aug 12 '20 20:08 adipose

Same Issue here. Installer/Updater just disappears.

Dimitrie23 avatar Aug 19 '20 08:08 Dimitrie23

@canuckbrian @Dimitrie23 I don't know why, but today it worked! I upgraded from 2.17.9 to 2.17.11 by auto-update feature. Please check it now.

ankar84 avatar Aug 21 '20 10:08 ankar84

@ankar84 Just tested it. Did still not work on one of our notebooks.

Edit: Same behaviour as mentioned by OP. Download works but updater disappears without a warning/error.

Dimitrie23 avatar Aug 21 '20 12:08 Dimitrie23

I'm guessing it's an asynchronous bug in electron-updater, because I've never been able to reproduce at >= 2.16.*.

@adipose

I think the background downloading is doing a disservice here, especially when it's so unreliable (read: it doesn't work at all, for anyone that I know using it). Instead, download it in the foreground, which should be pretty fast, and when it's done, let the user launch it. Maybe then, they will be able to see what error is occurring, if any.

One workaround I'm trying to code (but I haven't found time to work on it) is make it unobtrusive as Electrons apps as Visual Studio Code do: showing a small badge instead of a modal dialog.

tassoevan avatar Sep 02 '20 22:09 tassoevan

I don't get it, are you saying after 2.16 the issue is fixed in some way? That would be great...

adipose avatar Sep 03 '20 14:09 adipose

Still have this issue for update to 3.0.0.

ComBin avatar Oct 01 '20 14:10 ComBin

So, I too have finally had a chance to test this again, and my 2.17.7 is failing the auto-update to 3.0. So, no fix has occurred.

What steps were taken to fix it before, because it doesn't seem to be working!

adipose avatar Oct 01 '20 17:10 adipose

Same here from 2.17.11 to 3.0.1. It will be downloaded locally as mentioned above but the installer/updater never appears.

seppultra avatar Oct 02 '20 06:10 seppultra

I think it's fixed only in 3.0.0 so don't expect it magic work in 2.17.11 3.0.0 => 3.0.1 image image

ankar84 avatar Oct 02 '20 09:10 ankar84

Nope, upgrade 3.0.0 => 3.0.1 does not work for me. I have a per user installation (i.e. in AppData/Local).

xmedeko avatar Oct 02 '20 11:10 xmedeko

Nope, upgrade 3.0.0 => 3.0.1 does not work for me. I have a per user installation (i.e. in AppData/Local).

Mine was system wide installation and required Administrator credentials. But was successful.

ankar84 avatar Oct 02 '20 11:10 ankar84

Auto-update of Windows client still does not work. Same symptoms like the original description of this issue.

Attempted: 3.0.1 => 3.0.2. Windows 10 version: 2004. System-wide RC client installation.

It seems that this is only an issue on newer Windows 10 builds, hence the appearance that it was fixed (reading the comment of @ankar84 above). I might be wrong, but I suspect that it worked for ankar84 because he is running RC on an older windows version.

Currently to me this is the most annoying RC client bug, for multiple reasons:

  • it confuses end-users by promising an update which never takes place;
  • it annoys users by repeatedly offering to update on every RC client start (unless choosing to "skip this version");
  • most users do not feel comfortable to manually download and run the new installer over the existing installation.

luciancoman-simplica avatar Oct 03 '20 12:10 luciancoman-simplica

I think @alc123ng could be right. Successful update was not on most modern Windows release (I can clarify version on Monday). Today I try update 3.0.1 => 3.0.2 on my home laptop on Windows 10 2004 and it was not successful. Here some details Update screen and information about update process - that's good image image Here is a new file C:\Users\ankar84\AppData\Local\rocketchat-updater\pending\temp-rocketchat-setup-3.0.2.exe for distributive download image After file temp-rocketchat-setup-3.0.2.exe was downloaded system start search prowershell.exe to execute command powershell.exe -NoProfile -NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature 'C:\Users\ankar84\AppData\Local\rocketchat-updater\pending\temp-rocketchat-setup-3.0.2.exe' | ConvertTo-Json -Compress | ForEach-Object { [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($_)) }" I think that command was successful and issue not here And here is something not normal image For some reason file temp-rocketchat-setup-3.0.2.exe not transform to file rocketchat-setup-3.0.2.exe but temp file deleted image I try to search Windows Event logs for something strange, but couldn't find anything.

ankar84 avatar Oct 03 '20 15:10 ankar84

Windows 10 1803 - Update works perfect image image image

ankar84 avatar Oct 05 '20 01:10 ankar84

Same for me. Just tells me 3.0.0 is available, then 3.0.1 now this morning 3.0.2. Give me the option to skip or install. When I select install it does not. I get this error message every morning and I'm on version 2.17.11

KeithStreeter avatar Oct 06 '20 12:10 KeithStreeter

3.0.2=>3.0.3 failed on W10 1809 image image Then it's gone image

ankar84 avatar Oct 14 '20 00:10 ankar84

Same issue with 3.0.2 -> 3.0.3, Win 10 (64 ) Build 2004.

fuzsin avatar Oct 14 '20 14:10 fuzsin