I sometimes have this issue on one particular node, the cause is that the 
Yum database gets corrupted on that node sometimes. I've built this Puppet 
Task to repair the database when it happens:

#!/bin/bash
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
yum clean all
yum check-update
if [ $? == 100 ]; then
  exit 0
fi


On Wednesday, October 16, 2019 at 6:28:56 PM UTC+2, Ashwinkumar Kandasamy 
wrote:
>
> Hi all,
>  In my puppet enterprise machine when ever i run the puppet agent -t 
> command it shows below error,
>  # puppet agent -t
> Info: Using configured environment 'production'
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> Info: Retrieving locales
> Info: Loading facts
> Error: Cannot collect packages for Puppet::Type:[image: 
> :package:]:ProviderYum 
> provider; Failed to list packages
> Info: Caching catalog for ,puppetmaster>
> Info: Applying configuration version '1571212307'
> Error: Could not prefetch package provider 'yum': Failed to list packages
> Error: Failed to apply catalog: Failed to list packages
>
>
> PE version -2019.0
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/79441ea7-6f87-4afd-b0c6-28de8e26ac1c%40googlegroups.com.

Reply via email to