I have missing or corrupted files in Puppet Enterprise or Bolt that were originally provided by an installation package.
Version and installation information
Puppet Enterprise version: any
Installation type: any
Bolt version: any
Solution
Puppet software can stop functioning correctly if files are missing or corrupted. If the files were originally provided by an installation package, you can restore them by reinstalling the package. The commands vary based on your OS.
Note: This solution only applies to software that ships in packages. It does not apply to containerized products like Puppet Application Manager.
Linux
In the terminal, run the appropriate command.
- RedHat:
yum reinstall <PACKAGE NAME>
- Debian:
apt reinstall <PACKAGE NAME>
- SLES:
zypper install –force <PACKAGE NAME>
Windows
To get the product code or package ID of the Puppet Agent package from the registry and instruct msiexec
to run a repair option replacing missing files, run the following in Windows PowerShell:
$RegistryKeys = @( "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*","HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" ) $InstalledMSIs = Get-ItemProperty $RegistryKeys -ErrorAction SilentlyContinue $PuppetAgent = $InstalledMSIs | Where { $_.DisplayName -Like "*Puppet Agent*" } msiexec.exe /qn /fp $PuppetAgent.PSChildName
Add a progress bar
Reinstalling packages on Windows takes a few minutes. To add a progress bar, run the following:
msiexec.exe /fp $PuppetAgent.PSChildName
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles