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

Kinda of a question, bug, or maybe even a feature request regarding plexmediaserver #159

Open
brian6932 opened this issue Oct 19, 2021 · 8 comments

Comments

@brian6932
Copy link

So for some reason this package force restarts my PC whenever I install it or update it, this person in the Disquis comments of the package has the issue as well:
image_32
Either disabling this as default, or adding an argument to disable force restarts (if this is the intended behaviour), would be really nice as this package is basically unusable for me due to this issue.

@mikecole
Copy link
Owner

I looked at the meager documentation for the installer, and I see nothing that mentions restarts, or avoiding restarts. I do not believe this is a chocolatey issue because I've never seen choco force a reboot. It usually just reports that a reboot is required. I'm kind of at a loss as to how to troubleshoot this.

Is this happening every time, or is it something you can easily recreate? If so perhaps we could try updating right on the command line using the same command choco does, but removing choco from the rebooting equation.

@brian6932
Copy link
Author

brian6932 commented Oct 19, 2021

I looked at the meager documentation for the installer, and I see nothing that mentions restarts, or avoiding restarts.

Can confirm, doesn't occur with the standard updater

Is this happening every time, or is it something you can easily recreate?

Yes, and yes.

If there are any log files you need, or maybe a video of it just occuring lmk, idk if I can create a screen recording, since it prompts a restart, but I can try.

@mikecole
Copy link
Owner

mikecole commented Oct 19, 2021 via email

@brian6932
Copy link
Author

@mikecole
chocolatey.log

2021-10-19 17:02:56,286 2480 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2021-10-19 17:02:56,320 2480 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'

^This seems to be the part where it actually calls it (line 446-447)

@mikecole
Copy link
Owner

mikecole commented Oct 19, 2021 via email

@brian6932
Copy link
Author

@mikecole Can confirm, fixed in 1.24.4.508101

@mikecole
Copy link
Owner

Heyyy, great news! Happy that worked because I had no clue what to try next.

@brian6932
Copy link
Author

brian6932 commented Dec 2, 2021

Ok, so I encountered this issue again, and realized I was wrong with what I pointed out, it seems like the issue is with exit code 3010, and after a little bit of looking it seems like this exit code is responsible for forced shutdowns.

2021-12-01 22:00:58,066 15204 [DEBUG] - Command ["C:\Users\username\AppData\Local\Temp\chocolatey\plexmediaserver\1.25.0.5282\PlexMediaServer-1.25.0.5282-2edd3c44d-x86.exe" /quiet ] exited with '3010'.
2021-12-01 22:00:58,086 15204 [ERROR] - ERROR: Running ["C:\Users\username\AppData\Local\Temp\chocolatey\plexmediaserver\1.25.0.5282\PlexMediaServer-1.25.0.5282-2edd3c44d-x86.exe" /quiet ] was not successful. Exit code was '3010'. See log for possible error messages.
2021-12-01 22:00:58,087 15204 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\plexmediaserver\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '3010'.

new log files:
chocolatey.log

@brian6932 brian6932 reopened this Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants