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

[Bug]: After upgrading to the latest version, it force rebooted my machine without asking for any permission to do so, resulting in data-loss once again. #4524

Closed
4 of 8 tasks
ThatCoffeeGuy opened this issue May 13, 2022 · 33 comments

Comments

@ThatCoffeeGuy
Copy link

ThatCoffeeGuy commented May 13, 2022

⚠️ Before submitting, please verify the following: ⚠️

Bug description

After upgrading to the latest version, it force rebooted my machine without asking for any permissions, resulting in data-loss once again.

Steps to reproduce

  1. Once you booted up your machine, nextcloud is going to offer the upgrade.
  2. Click on OK \ upgrade (can't exactly recall)
  3. See your machine being force-rebooted without permission, making you lose data and unsaved documents

Expected behavior

It shouldn't force-reboot my machine without permission under any circumstances.

Which files are affected by this bug

Nextcloud desktop

Operating system

Windows

Which version of the operating system you are running.

Windows 10

Package

Appimage

Nextcloud Server version

23.0.4

Nextcloud Desktop Client version

3.5.0

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@ThatCoffeeGuy
Copy link
Author

ThatCoffeeGuy commented May 13, 2022

And I am not the only one for sure.

#4377 (comment)
#4377 (comment)

@Langelus
Copy link

Can +1 this, it rebooted mine as well.

@ldoyle
Copy link

ldoyle commented May 15, 2022

+1, did not expect the reboot without further prompt or option to defer to later, interrupted my current work. Most programs manage to display an option "Now or later (manually)", which would be highly appreciated here!

@Weishaupt
Copy link

Unfortunately I had the same "experience". A forced reboot without any prompt.

The event log for me reads:

MsiInstaller:

Beginning a Windows Installer transaction: C:\Users\$USER\AppData\Roaming\Nextcloud\Nextcloud-3.5.0-x64.msi. Client Process Id: 18500.

RestartManager:

Warning: Application 'C:\Windows\explorer.exe' (pid 7664) cannot be restarted - Application SID does not match Conductor SID..

Machine restart is required.

Shutting down application or service 'Windows Explorer'.

MsiInstaller:

Windows Installer requires a system restart. Product Name: Nextcloud. Product Version: 3.4.4.20220318. Product Language: 1033. Manufacturer: Nextcloud GmbH. Type of System Restart: 1. Reason for Restart: 2.

Product: Nextcloud -- Installation completed successfully.

Windows Installer installed the product. Product Name: Nextcloud. Product Version: 3.5.0.20220502. Product Language: 1033. Manufacturer: Nextcloud GmbH. Installation success or error status: 0.

Windows Installer requires a system restart. Product Name: Nextcloud. Product Version: 3.5.0.20220502. Product Language: 1033. Manufacturer: Nextcloud GmbH. Type of System Restart: 1. Reason for Restart: 2.

Ending a Windows Installer transaction: C:\Users\$USER\AppData\Roaming\Nextcloud\Nextcloud-3.5.0-x64.msi. Client Process Id: 18500.

The Windows Installer initiated a system restart to complete or continue the configuration of 'Nextcloud'.

@Weishaupt
Copy link

Also mentioned here #831 (comment)

@ThatCoffeeGuy
Copy link
Author

3.5.1 just done the same "it may be required to reboot your machine" "OK" and just force reboots.

@Tie-fighter
Copy link

This is really not ok.

@SirScythe
Copy link

Same issue here with the latest update on Windows 11

@pfeiferocks
Copy link

The same happend to me with the last 2 updates :/

Logfile Update from 3.5.0 to 3.5.1
msi.log

@Gunsmithy
Copy link

Even clicking on the X on the prompt at boot still proceeds with the update and reboot.
The verbiage even says "may reboot" your computer but the past 2 updates at least it has.
If a reboot is truly necessary for the update, it should at least be able to deferred like any other installer does, or the update itself should be able to be deferred, as there is currently no way to do so other than ignoring the popup until you're ready.

@Gunsmithy
Copy link

Potentially fixed by this commit?

@bobbolous
Copy link

+1, same here

@Kraligor
Copy link

Same here. Could the reboot function please be disabled completely? An info "Reboot may be required to ensure full functionality" or similar after update should be enough.

@adripo
Copy link

adripo commented May 23, 2022

Still happening

@twomoses
Copy link

twomoses commented May 25, 2022

I just got the same thing... It also seemed to crash Explorer during the installation process as my task bar vanished and only CTRL-ALT-DEL or CTRL-SHIFT-ESC worked until the reboot. Definitely odd behavior in my opinion.

@francofischer
Copy link

+1

@gbakeman
Copy link

gbakeman commented Jul 4, 2022

Just had this happen with the 3.5.2 update. I've never seen Nextcloud do this before.

@LicoMonch
Copy link

LicoMonch commented Jul 4, 2022

EDIT: this comment is obsolete, see #4524 (comment)

Just had this happen with the 3.5.2 update. I've never seen Nextcloud do this before.

me too, all (at least) last three updates (triggered via settings panel) did an unauthorized reboot .. that really has to stop
it's like playing russian roulette with my data and open programs 😥

What I can read from event viewer:
The update succeeded but explorer.exe could not be restarted, so the system or installer decided somehow that a total reboot is required and did init that without asking.

I guess, there is a little switch: "ask for reboot if needed" and "reboot if needed" .. pls disable the 2nd one 😜

edit 1:
eg this here:
https://docs.microsoft.com/en-us/windows/win32/msi/standard-installer-command-line-options

I'll bet for '/passive' is set.

edit 2:
some more:

the problem was already targeted in #4566
well, at least it seems so .. dunno, if someone tested this fix

<ScheduleReboot After="InstallFinalize">(SCHEDULE_REBOOT=1) OR (NOT (UILevel=2) AND NOT (DO_NOT_REBOOT_IN_SILENT=1))</ScheduleReboot>

the above line seems to be the problem, but my know-how of msi is very limited, so I don't fully understand, what happens here and why ..

@LicoMonch
Copy link

LicoMonch commented Jul 4, 2022

EDIT: this comment is obsolete, see #4524 (comment)

just found my installer log (msi.log)
which states

MSI (s) (5C:38) [21:09:41:285]: Command Line: REBOOTPROMPT= REBOOTPROMPT=S CURRENTDIRECTORY=C:\WINDOWS\System32 CLIENTUILEVEL=2 CLIENTPROCESSID=17112
[..]
MSI (s) (5C:38) [21:09:44:229]: PROPERTY CHANGE: Adding REBOOTPROMPT property. Its value is 'S'.

see https://docs.microsoft.com/en-us/windows/win32/msi/rebootprompt
which tells you that this setting will force a reboot if the installer thinks it's needed

(edit 1)
AND

<ScheduleReboot After="InstallFinalize">(SCHEDULE_REBOOT=1) OR (NOT (UILevel=2) AND NOT (DO_NOT_REBOOT_IN_SILENT=1))</ScheduleReboot>

seems to be evaluated here to 1 (reboot needed):

MSI (s) (5C:E8) [21:09:50:043]: Doing action: ScheduleReboot
Action ended 21:09:50: InstallFinalize. Return value 1.
MSI (s) (5C:E8) [21:09:50:043]: PROPERTY CHANGE: Adding MsiRebootActionScheduled property. Its value is '1'.
Action start 21:09:50: ScheduleReboot.
Action ended 21:09:50: ScheduleReboot. Return value 1.
Action ended 21:09:50: INSTALL. Return value 1.

@LicoMonch
Copy link

A deeper search revealed #3551 where the author of #4566 states in #3551 (comment) the fix works after upgrading to 3.5.2 .. which I did today

as I did not find away to redo the update via settings panel, I'll wait for 3.5.3 and see what's happening on that update

@ThatCoffeeGuy
Copy link
Author

Today's update just did the same. Will add version later.

@ghost
Copy link

ghost commented Jul 5, 2022

Just had that experience once again (had this before and was hoping it would not happen again) with the update to Windows client version 3.5.2 on Windows 10. If this remains the default behavior the Nextclout client is not helpful, but a serious data safety risk! NOT COOL!
Additional info:

  • The update prompt basically says that the installer may ask for additional permissions during installation. That's it. Not info on an intended reboot.
  • The computer just instantly reboots after the installation has been completed.

@ghost
Copy link

ghost commented Jul 5, 2022

Apparently it should be fixed for the next updates...
"TL;DR; Expect the reboot issue to be fixed after updating to 3.5.2 and onwards." ( #3551 (comment) )

@adripo
Copy link

adripo commented Jul 5, 2022

Just had that experience once again (had this before and was hoping it would not happen again) with the update to Windows client version 3.5.2 on Windows 10. If this remains the default behavior the Nextclout client is not helpful, but a serious data safety risk! NOT COOL! Additional info:

  • The update prompt basically says that the installer may ask for additional permissions during installation. That's it. Not info on an intended reboot.
  • The computer just instantly reboots after the installation has been completed.

I can confirm, version 3.5.2 still reboots windows without a proper prompt.

@SamSirry
Copy link

SamSirry commented Jul 6, 2022

The collateral damage this caused me today is very frustrating. The incompetence in the way this installer behavior is implemented .... is hurting me.

@claucambra
Copy link
Collaborator

Hi folks, this has been fixed with #3551 and the force reboots should stop happening on updates after version 3.5.2 . Thanks all for reporting!

@LicoMonch
Copy link

I was on 3.5.2 and got 3.5.3 today.
Guess what happened at install time?

Yeah, you got it: forced reboot without a warning

It seems, that's still not fixed -.-'

@claucambra
Copy link
Collaborator

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: #3551 (comment)

@ThatCoffeeGuy
Copy link
Author

ThatCoffeeGuy commented Aug 3, 2022

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: #3551 (comment)

Thank you! Today it just force-rebooted again, so since this bugfix will only appear in the next release (???????) I am simply uninstalling it and waiting until 3.6.0.

Is there any info on when 3.6.0 will be live?

@twomoses
Copy link

twomoses commented Aug 3, 2022

@ThatCoffeeGuy, I came here with the exact same experience just a couple of minutes ago. Honestly, I'm ready to disable automatic updates, but after reading the recent comments on #3551, I will give it one last try.

This comment in particular states that this last reboot was to actually deploy the fix, and it shouldn't happen again.

@claucambra
Copy link
Collaborator

We released an interim update (3.5.4) specifically to include the patch to stop force-updating. This means that future updates should no longer force reboot. Apologies for the annoyance -- forced reboots should not happen any longer

@adripo
Copy link

adripo commented Aug 4, 2022

Thank you, let's hope to solve this issue with the next version.

@allexzander
Copy link
Contributor

allexzander commented Aug 8, 2022

We released an interim update (3.5.4) specifically to include the patch to stop force-updating. This means that future updates should no longer force reboot. Apologies for the annoyance -- forced reboots should not happen any longer

More specifically, this will start to work normally when updating from 3.5.4 and up. If you want to avoid rebooting when updating to 3.5.4, you need to run the MSI manually. The calling code is a part of the desktop client, so, it is something we have to deal with only this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests