Jeff McCune
2007-Mar-20 19:54 UTC
err: cannot create directory, parent doesn''t exist. But it does.
I just updated to 0.22.2 and am running into a strange issue. I''m starting puppetmaster, and seeing this in my error log: err: /puppetconfig/reporting/File[/Library/Puppet/Generated/Server/var/reports]/ensure: change from absent to directory failed: Cannot create /Library/Puppet/Generated/Server/var/reports; parent directory /Library/Puppet/Generated/Server/var does not exist err: /puppetconfig/metrics/File[/Library/Puppet/Generated/Server/var/rrd]/ensure: change from absent to directory failed: Cannot create /Library/Puppet/Generated/Server/var/rrd; parent directory /Library/Puppet/Generated/Server/var does not exist However: [root@manage ~]# ls -l /Library/Puppet/Generated/Server/var total 24 drwxr-x--- 2 root root 4096 Mar 20 15:39 clientbucket drwxr-xr-x 2 root root 4096 Mar 20 15:39 lib drwxr-x--- 2 root root 4096 Mar 20 15:39 logs drwxrwxrwt 2 root root 4096 Mar 20 15:39 run drwxrwxrwt 3 root root 4096 Mar 20 15:39 state drwxr-xr-x 2 root root 4096 Mar 20 15:39 templates Puppet itself creates the var directory, which also surprises me that some of those folders are world writable. This is ruby-1.8.6 on CentOS 4.4. The relevant section of puppetmasterd.conf: confdir = /Library/Puppet/Versioned/Server/complete/puppet vardir = /Library/Puppet/Generated/Server/var ssldir = /Library/Puppet/Generated/Server/SSL logdir = $vardir/logs rundir = $vardir/run templatedir = $vardir/templates plugindest = $vardir/plugins setpidfile = true statedir = $vardir/state statefile = $statedir/state.yaml graphdir = $statedir/graphs graph = true syslogfacility = daemon Cheers, -- Jeff McCune Systems Manager The Ohio State University Department of Mathematics _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Jeff McCune
2007-Mar-20 20:55 UTC
Re: err: cannot create directory, parent doesn''t exist. But it does.
Jeff McCune wrote:> I just updated to 0.22.2 and am running into a strange issue. > > I''m starting puppetmaster, and seeing this in my error log: > > err: > /puppetconfig/reporting/File[/Library/Puppet/Generated/Server/var/reports]/ensure: > change from absent to directory failed: Cannot create > /Library/Puppet/Generated/Server/var/reports; parent directory > /Library/Puppet/Generated/Server/var does not exist > err: > /puppetconfig/metrics/File[/Library/Puppet/Generated/Server/var/rrd]/ensure: > change from absent to directory failed: Cannot create > /Library/Puppet/Generated/Server/var/rrd; parent directory > /Library/Puppet/Generated/Server/var does not existSo, I uncommented the following in my puppetmasterd.conf file, and it stopped complaining. This a bug? reportdir = $vardir/reports rrddir = $vardir/rrd I''m still a bit concerned about the world writable directories. Is there a specific reason the run and state directories are mode 1777 ? Cheers, -- Jeff McCune Systems Manager The Ohio State University Department of Mathematics _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2007-Mar-20 22:27 UTC
Re: err: cannot create directory, parent doesn''t exist. But it does.
On Mar 20, 2007, at 3:55 PM, Jeff McCune wrote:> Jeff McCune wrote: >> I just updated to 0.22.2 and am running into a strange issue. >> I''m starting puppetmaster, and seeing this in my error log: >> err: /puppetconfig/reporting/File[/Library/Puppet/Generated/Server/ >> var/reports]/ensure: change from absent to directory failed: >> Cannot create /Library/Puppet/Generated/Server/var/reports; parent >> directory /Library/Puppet/Generated/Server/var does not exist >> err: /puppetconfig/metrics/File[/Library/Puppet/Generated/Server/ >> var/rrd]/ensure: change from absent to directory failed: Cannot >> create /Library/Puppet/Generated/Server/var/rrd; parent directory / >> Library/Puppet/Generated/Server/var does not exist > > So, I uncommented the following in my puppetmasterd.conf file, and > it stopped complaining. This a bug? > > reportdir = $vardir/reports > rrddir = $vardir/rrdThat certainly seems like a bug, but... Strange. I don''t know where the bug is. I guess file it, and I''ll see if I can track it down. I don''t see how all of the reports tests pass, since they use those directories.> I''m still a bit concerned about the world writable directories. Is > there a specific reason the run and state directories are mode 1777 ?I''ve been meaning to fix it for a while. Root and the puppet user both need write access, and run directories are usually the same modes as /tmp, but if these are private directories there''s no reason to have those modes. Feel free to file it as a bug. -- You can''t have everything. Where would you put it? -- Stephen Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Jeff McCune
2007-Mar-21 13:51 UTC
Re: err: cannot create directory, parent doesn''t exist. But it does.
Reported this under https://reductivelabs.com/cgi-bin/puppet.cgi/ticket/554 -- Jeff McCune The Ohio State University Department of Mathematics Systems Manager _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Apparently Analagous Threads
- Foreman -- Reporting
- Foreman / External Nodes -- Node Not found
- Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist
- multiple puppetmasters (w/ Passenger) behind load balancer
- puppetrun fails: "Certificates were not trusted"