-
Notifications
You must be signed in to change notification settings - Fork 905
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
Reboot - Pending File Rename Operations check returns true, even after reboot #1768
Comments
@astatine That is a warning by the way - if you flip on the feature for exiting on reboot detected, it will be an error and won't allow choco to continue. It would be helpful to see the full debug log to see what is triggering the pending reboot validation to flag. |
@astatine out of curiosity - which template did you choose? I don't see any of what we normally see with an issue/bug report. |
@ferventcoder I made a mistake in choosing the template; I chose
|
This is the one - @pauby is that the one you were seeing as well? |
@ferventcoder I was never able to reproduce this again and therefore never got the logs (was doing it on a Vagrant instance so rolled back). However the original message seems very similar to what I was seeing (ie. pending reboot message persisted after a reboot). |
@pauby lots of things can indicate a need for a reboot. If you run into it again, try to grab that first section of the logs that outputs the validation log - it drops into the log file at a debug level by default. It'll be helpful to know what's causing it for you. |
I got the same bug on two machines. This is one of em
|
Also in my case the |
@Megasware128 That's the one I keep seeing - it's as if the reboot doesn't actually fix up the file rename. Windows can be a weird animal. This may be one we remove from the checks if it continues to come up and not go away after reboots. |
May I toss in my $.02? In my research on identifying pending reboots for another project (https://github.com/teknowledgist/TeknowTools/tree/master/AutoReboot), I found that the pending file rename possibility occurs far more often than anyone realizes. It also is not uncommon to find the pending file name does not occur or is not cleared. As such, any script that triggers on that flag may eternally report it is "pending reboot. I removed (commented out) that check in my reboot script because of all the complaints. I would suggest that pending file renames should be ignored as a pending reboot item. I think it is likely too difficult to identify if they are "real" and it is probably rather rare that they will get in the way. Certainly if there were some way to identify if the files that are pending are ones needed for an install, then some code should be written to handle that, but I think that would be pretty messy. |
Seeing the same on my computers, Chocolatey reports a pending reboot, and the log says
@teknowledgist do you know if this issue was ever reported to MS as a bug? |
@bazzilic I do not. |
I will say though that even on machines where the rename does complete, it was not uncommon for those machines to be in "pending reboot" status after just a few days. There are just a lot more file renames going on that folks realize. |
I'm getting the same issue every time I run the
|
It's likely we'll remove the pending file rename. Last thing we want is to be the cause of a reboot loop while someone is trying to get things happy. |
@teknowledgist thank you for that! We'll probably remove the pending file renames bit as well - and it may have helped us determine one of the sources of the reboot loops that occurs with Boxstarter as well (if it is using this same logic). |
I've found this to be true as well; e.g. EVERY TIME I install an Exchange Cumulative Update it fails due to pending reboot file renaming even after multiple reboots. So I delete the registry key. |
I got the same thing. Upon inspecting the 'PendingFileRenameOperations' registry key, it only contained references to files in chocolatey's own temp directory.
Clearing the reg key and deleting the files by hand appear to have fixed it (for now). |
I've seen the same behavior. For CLI weenies: Check if you've got a pending file rename interfering with your desired operation: If you do, and you're sure you know what you're doing: |
In some scenarios, this check was causing Chocolatey to always report that the system was in a pending reboot state. Even after a reboot Chocolatey would still report that it was still pending a reboot. After discussion, it was determined that this check has a history of causing problems, and as a result, the decision was made to remove it. It will still do the check, which will now only show up in the debug log, but this check will no longer go into the overall pending reboot check.
* issue-1768: (GH-1768) Ignore file rename operations check
* stable: (GH-1768) Ignore file rename operations check
This has been committed into the stable branch, and will be released as part of 0.10.14. |
in PowerShell suppresses the |
@jihoonerd I am not sure what you are saying here. You installed the beta and it is still flagging? |
@ferventcoder Ah sorry for the confusion. The I am experiencing this issue in |
I can confirm this. Before running the |
Thanks for your suggestion, but in my Windows 10 system after running Restart-Computer in powershell the pending reboot warning is still there. I decide to wait for the 0.10.14 fix. |
I'm experiencing this on 0.10.15. |
@awslovato are you sure that it is related to the file renaming operations? The later would be expected. |
Running |
@roblapp @ferventcoder Received
|
I'm seeing this in 0.10.15 as well. About to try the Restart-Computer solution but if that works I am wondring if this could be Fast Startup related? Where a restart is not really a restart? FYI I have no PendingFileRenames when I see the issue. |
On running
choco upgrade all -y
(as Administrator), I always get a validation error as follows:I have rebooted multiple times but I can't get rid of this error. Chocolatey runs fine with this error, updating any applications as necessary. Does it look for a particular file or registry key for this validation, that has for some reason become locked?
I am running up-to-date Windows 10 x86_64, and v0.10.13 is the latest version of chocolatey as of this report. Please let me know if I need to provide any additional information.
The text was updated successfully, but these errors were encountered: