Ask Your Question

Cleaning the clientbucket via tidy broken in Puppet 4?

asked 2016-01-19 10:29:30 -0600

br00tal gravatar image

I used to be able to clean the clientbucket (and the reports directory) in Puppet 3 using tidy, similar to the following:

tidy { 'Clean clientbucket':
  path    => $cbucketdir,
  age     => $cbuckettidy,
  recurse => true,
  rmdirs  => true,
  backup  => false,
  type    => 'ctime',

Since I've moved to Puppet 4, this no longer seems to work. I get errors such as:

# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for
Notice: /Stage[main]/Puppetconf/Tidy[Clean clientbucket]: Tidying 195 files
Error: Failed to apply catalog: Could not find dependency File[/opt/puppetlabs/puppet/cache/clientbucket/0/9/7] for File[/opt/puppetlabs/puppet/cache/clientbucket/0/9]

Not sure what's up here. I can get the run to work if I delete the contents of the clientbucket directory and re-run puppet agent -t. There seems to have been a behavior change between 3 and 4 where now the tidy stuff runs earlier in the process, which may be mucking up the run, but I'm not really sure.

In short, what's the best method in Puppet 4 for cleaning up the reports and clientbucket directories? Thanks for any assistance!

edit retag flag offensive close merge delete


Just a note, when I comment out my the tidy stuff, the agent run resumes as normal without any need to delete anything in the clientbucket.

br00tal gravatar imagebr00tal ( 2016-01-20 07:42:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-30 10:45:16 -0600

PaulT gravatar image

This is a regression in 4.3 and was fixed in 4.4, see

I've upgraded to puppet-agent_1.4.1 (from 1.3.5) and it fixes the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-01-19 10:29:30 -0600

Seen: 825 times

Last updated: Jan 19 '16