desktop icon indicating copy to clipboard operation
desktop copied to clipboard

fix behavior on "update and restart"

Open r2evans opened this issue 4 years ago • 22 comments

Expected behaviour

On most applications, when they announce that there is an update available, "update and restart" implies a restart of the application. In the exception where it requires a restart of Windows, they tend to turnover the restart process to Windows itself, where it warns about open applications, unsaved documented, and even gives you the opportunity to cancel the restart process.

Actual behaviour

In this case, "restart and update" used to just crash explorer.exe (which, while it can be disrupting and certainly annoying, other applications are typically not force-closed). Now (Win11), pressing the button immediately goes to a black screen that says "Restarting..." and gives no such warning or cancel/save/close opportunity. Here it is no longer a nuisance, it is a data-losing, process-breaking operation.

Steps to reproduce

  1. With 3.4.3 installed, check Settings... and click on "Update and restart".

Client configuration

Client version: 3.4.3 upgrading to 3.4.4

Operating system: Win11

OS language: English

Installation path of client: C:\Program Files\Nextcloud

Server configuration

Nextcloud version: 23.0.0

Storage backend (external storage): n/a

r2evans avatar Mar 22 '22 18:03 r2evans

Really concerning how it still requires a full machine restart in 2022.

ThatCoffeeGuy avatar Mar 22 '22 20:03 ThatCoffeeGuy

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

github-actions[bot] avatar Apr 20 '22 00:04 github-actions[bot]

I feel that ignoring an issue until the bot closes it is not the best resolution. Does one of the NC developers have thoughts on this?

r2evans avatar Apr 20 '22 01:04 r2evans

I didn't experience the issue when upgrading to 3.5.0 anymore. Instead, #4305 happened. (Windows 11)

max65482 avatar May 10 '22 07:05 max65482

I got a popup that a new version is available. After it installed, my computer (win11) just did a force-reboot, ignoring all unsaved open documents.

dedors avatar May 12 '22 13:05 dedors

I got a popup that a new version is available. After it installed, my computer (win11) just did a force-reboot, ignoring all unsaved open documents.

Same for me here. On Win 10 installing Client 3.5 first closed (crashed?) the explorer and then just restarted the whole PC without a warning (or saving any documents).

raimund-schluessler avatar May 13 '22 10:05 raimund-schluessler

I also just had this problem with Windows 10. Here is the Event Log entry: The process msiexec.exe has initiated the restart of computer on behalf of user NT AUTHORITY\SYSTEM for the following reason: No title for this reason could be found Reason Code: 0x80030002 Shut-down Type: restart Comment: The Windows Installer initiated a system restart to complete or continue the configuration of 'Nextcloud'.

staples1347 avatar May 14 '22 05:05 staples1347

Yeah, I tend to think that whether or not NC desktop updates should require a reboot, I think the method being used is unforgiving (two different discussions): most times when I need a reboot for a driver update, there's a bit of back-and-forth between the OS and me saying apps are open and such, but the NC reboot process seems as if it's passed as super-urgent-reboot-right-this-minute. NC devs (notably silent on this issue), please look into softening the reboot mechanism.

r2evans avatar May 14 '22 19:05 r2evans

this behavior (rebooting without user permission) was acceptable in the days of win xp, but now it is unacceptable!🤬

Andrysky avatar May 19 '22 05:05 Andrysky

This is really not ok.

Tie-fighter avatar May 19 '22 11:05 Tie-fighter

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

github-actions[bot] avatar Jun 16 '22 16:06 github-actions[bot]

I feel that ignoring an issue until the bot closes it is not the best resolution. Does one of the NC developers have thoughts on this?

I'll continue the commentary that in the current state of OSes, In 2022 there should be no reason for an app like this to require a full restart. As examples: PowerToys and Git-for-Windows also integrate with Windows Explorer, and neither requires a restart. It is "inconvenient" (at best) that NC desktop client requires a restart allegedly for something that other tools worked out long ago.

Both of those tools are open-source, perhaps an NC-desktop dev can reach out for help and/or look at the code to see what is different? I recognize it's not always that simple, but it's a big deal to some people to have to reboot (for this) and disrupt whatever is currently running. (As an analyst, it's not uncommon for me to have processes running for days with no simple way to snapshot in an interim state. I don't believe that my use is the only or predominant use-case.)

r2evans avatar Jun 16 '22 17:06 r2evans

Today I applied the update to 3.5.2 on Windows 11, and it happend again 😠 No fix, no reaction from the developers 🙁 Edit: Ok, seems to be discussed in #3551 including dev. feedback 👍

SommerEngineering avatar Jul 04 '22 16:07 SommerEngineering

Hi folks, closing since this should be fixed for new updates on versions past 3.5.2 . Thanks for reporting!

claucambra avatar Jul 07 '22 10:07 claucambra

I just had NextCloud 3.5.3 update restart my Windows without any warning. The bug is not fixed.

jernejs avatar Jul 30 '22 07:07 jernejs

Hi folks, closing since this should be fixed for new updates on versions past 3.5.2 . Thanks for reporting!

It is not. I got prompted for 3 .5.3 update, and I pressed X to close it. It then started updating anyways, and rebooted my PC. Lost quite some work. Thanks man, great "feature".

Denizzje avatar Jul 30 '22 09:07 Denizzje

It seems like the fix for this issue was not back ported and is not a part of the 3.5 branch. This means that a fix should be present in the next release (likely 3.6.0). More here: https://github.com/nextcloud/desktop/issues/3551#issuecomment-1200101476

claucambra avatar Jul 30 '22 11:07 claucambra

3.5.4 was released today and it again rebooted my computer without any warnings.

jernejs avatar Aug 04 '22 06:08 jernejs

3.5.4 was released today and it again rebooted my computer without any warnings.

3.5.4 was explicitly released to fix this issue -- this means the reboots should stop happening on updates beyond 3.5.4

claucambra avatar Aug 04 '22 09:08 claucambra

I don't know about it being fixed. I have Nextcloud version 3.8.1 and it still asked me to restart my whole PC in order to finish the updtae.

RoyalCyan avatar Apr 24 '23 05:04 RoyalCyan