Terry
2010-Nov-25 10:14 UTC
[Puppet Users] Problem starting puppetd for the first time (Could not create resources ...)
Hi,,, I have a strange problem when installing puppet client 2.6.3 on a node. I have installed facter-1.3.8-4 and ruby-1.8.6-8. When I start puppetd as a normal user everything behaves normally. A .puppet directory is installed under $HOME and ssl key is installed under $HOME/.puppet/ssl.. I sign the certificat on the puppet master and the client is working fine. However I cannot change system files, so I have to run puppetd as root. Here is where the problem starts. I ssh in as root, set up the same environment variables (i.e LD_LIBRARY_PATH, PATH etc.) as the normal user. When i run: puppetd -v --listen --no-daemonize --verbose I get: warning: iconv doesn''t seem to support UTF-8/UTF-16 conversions err: Could not create resources for managing Puppet''s files and directories in sections [:main, :agent, :ssl]: Could not find a default provider for user err: Could not create resources for managing Puppet''s files and directories in sections [:main, :ssl]: Could not find a default provider for user info: Creating a new SSL key for host err: Could not request certificate: Cannot save host; parent directory /etc/puppet/ssl/private_keys does not exist So no directory is created under /etc/puppet , no ssl key. I have googled but cannot find any solution.. Anybody have a clue? I''am running on AIX 5.3 /terry -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Terry
2010-Nov-26 07:42 UTC
[Puppet Users] Re: Problem starting puppetd for the first time (Could not create resources ...)
On Nov 25, 11:14 am, Terry <mv2...@hotmail.com> wrote:> Hi,,, > > I have a strange problem when installing puppet client 2.6.3 on a > node. > I have installed facter-1.3.8-4 and ruby-1.8.6-8. > > When I start puppetd as a normal user everything behaves normally. > A .puppet directory is installed under $HOME and ssl key is installed > under $HOME/.puppet/ssl.. I sign the certificat on the puppet master > and the client is working fine. >Anyway, I found a walkaround. I copied the $HOME/.puppet/var directory (from the normal user) to /etc/puppet. Restarted the daemons and it worked. It still goves me error messages in debug mode, but it does work. This is strange behavior. Output in debug mode - running puppetrun from master: notice: triggered run err: Could not create resources for managing Puppet''s files and directories in sections [:main, :ssl, :agent]: Could not find a default provider for user err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate parameter ''group'' for on File[/etc/sudoers] at /etc/ puppet/manifests/classes/sudo.pp:8 on node xxxxx notice: Using cached catalog info: Applying configuration version ''1290755839'' -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.