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 : 

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post

[master]
certname=im1a9.internetmemory.org
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,

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/6tN8xBwlx1EJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to