Hi all,
I have configured Puppet master to use stored configurations with Mysql, but when i run the agent, it looks like using sqlite3 instead of mysql :
# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Got 1 failure(s) while initializing: change from 0644 to 0660 failed: failed to set mode 644 on /var/lib/puppet/state/clientconfigs.sqlite3: Operation not permitted - /var/lib/puppet/state/clientconfigs.sqlite3
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Here is the error from puppetmaster log :
puppet-master[32559]: (/File[/var/lib/puppet/state/clientconfigs.sqlite3]/mode) change from 0644 to 0660 failed: failed to set mode 644 on /var/lib/puppet/state/clientconfigs.sqlite3: Operation not permitted - /var/lib/puppet/state/clientconfigs.sqlite3
puppet-master[32559]: Cached catalog for xxxx failed: Got 1 failure(s) while initializing: change from 0644 to 0660 failed: failed to set mode 644 on /var/lib/puppet/state/clientconfigs.sqlite3: Operation not permitted - /var/lib/puppet/state/clientconfigs.sqlite3
i dont know why puppet try to modify this file "/var/lib/puppet/state/clientconfigs.sqlite3" since i'm using stored configurations with Mysql.
So how to solve/debug this problem ?
I have installed version 2.7 of Puppet :
# puppetmasterd -V
2.7.13
here is my puppet.conf :
ssldir=/var/lib/puppet/ssl
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
reports=http,store,tagmail,foreman
storeconfigs = true
dbadapter = mysql
dbuser = puppet
dbname = puppet
dbpassword = xxxx
dbserver = localhost
dbsocket = /var/run/mysqld/mysqld.sock
downcasefacts = true
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
Regards,