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

Unexpected restart when installing Calibre #26291

Closed
P3t3rU5 opened this issue Aug 29, 2021 · 10 comments
Closed

Unexpected restart when installing Calibre #26291

P3t3rU5 opened this issue Aug 29, 2021 · 10 comments
Labels
Help-Wanted This is a good candidate work item from the community.
Milestone

Comments

@P3t3rU5
Copy link

P3t3rU5 commented Aug 29, 2021

Brief description of your issue

After updating Calibre the computer restarted

Steps to reproduce

winget upgrade calibre

computer suddenly restarts without any warning

from event viewer:

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
 Shutdown Type: restart
 Comment: The Windows Installer initiated a system restart to complete or continue the configuration of 'calibre 64bit'.

Expected behavior

At least some kind of warning would be nice

Actual behavior

Not to have a sudden restart out of the blue

Environment

[winget --info]
Windows Package Manager v1.0.11694
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.168
Package: Microsoft.DesktopAppInstaller v1.15.11694.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
--------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
@denelon
Copy link
Contributor

denelon commented Aug 30, 2021

Take a look at microsoft/winget-cli#229 and microsoft/winget-cli#994 I think one or both of those apply here. It's also possible the installer is actually doing the reboot, and we may not be able to prevent it.

@denelon denelon transferred this issue from microsoft/winget-cli Aug 30, 2021
@ghost ghost added the Needs: Triage label Aug 30, 2021
@denelon denelon added Help-Wanted This is a good candidate work item from the community. and removed Needs: Triage labels Aug 30, 2021
@Trenly
Copy link
Contributor

Trenly commented Nov 5, 2022

@P3t3rU5 - Is the issue still there?

@P3t3rU5
Copy link
Author

P3t3rU5 commented Nov 5, 2022

Hey @Trenly I don't even remember raising the issue to be honest, so I guess this can be closed

@Trenly
Copy link
Contributor

Trenly commented Nov 5, 2022

Close with reason: See above;

@ghost ghost closed this as completed Nov 5, 2022
@arielsalvo
Copy link

Can this be reopened?
The issue is still present and installing/upgrading without restart appears to be supported by the MSI installer being used.
Running the installer with /? shows it accepts these options to control restarts:

  • /norestart: Do not restart after the installation is complete
  • /promptrestart: Prompts the user for restart if necessary
  • /forcerestart: Always restart the computer after installation

@arielsalvo
Copy link

I can confirm overriding with /norestart will not restart the machine

❯ winget upgrade calibre.calibre --silent --override "/norestart"
Found calibre [calibre.calibre] Version 6.12.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/kovidgoyal/calibre/releases/download/v6.12.0/calibre-64bit-6.12.0.msi
  ██████████████████████████████   151 MB /  151 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 3010
Restart your PC to finish installation.

@mdanish-kh
Copy link
Contributor

@arielsalvo Can you show which version of WinGet you're on through winget --info command? This fix has made it's way into v1.4.10173.

@arielsalvo
Copy link

The versions match but I'll have to wait until the next upgrade from calibre to check if the machine reboots without the parameter (unless you can tell me how to downgrade and I'll be happy to test)

❯ winget --info
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2546
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

@mdanish-kh
Copy link
Contributor

If you want, you can install a previous version through winget by uninstalling calibre first through winget uninstall calibre and then installing a previous version (let's say 6.11.0) through winget install --id calibre.calibre --silent --version 6.11.0. You should have 6.12.0 listed as available upgrade after these steps.

Be sure to run the upgrade command with --verbose-logs (i.e., winget upgrade calibre.calibre --silent --verbose-logs). In case it still reboots for you, I would suggest creating a new issue and include the logs from the Log location shown in winget --info output.

Note: I tried all these steps myself and could not reproduce your issue. I saw from logs that /norestart was being passed to the installer .

@arielsalvo
Copy link

Completely understandable.
The last time I tried without the override param may have been with the previous winget version.
I will try downgrading and upgrading again following those instructions and, if it still happens, I will open a new issue.
Thank you very much!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help-Wanted This is a good candidate work item from the community.
Projects
None yet
Development

No branches or pull requests

5 participants