Hello, I''m trying to follow the guide at http://reductivelabs.com/trac/puppet/wiki/SimplestPuppetInstallRecipe , but I get a funny error when starting Puppetd: Server: sudo puppetmasterd --verbose /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS /usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME /usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY /usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION /usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG /usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY /usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL Client: biv@server:~$ sudo puppetd --verbose [sudo] password for biv: /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS [ same warnings as on the server ] /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL err: Could not create PID file: /var/run/puppet/puppetd.pid Back on the server I run "sudo puppetca --list", I get the same warnings complaining about xmlsimple.rb, and it tells me there are "No certificates to sign". When I run the client on the same machine as the server, I still get "Could not create PID". I restarted the server machine, but it doesn''t seem to help either. My guess is that there is something wrong with the client - do I need to configure anything else? I''m a bit lost from here. I''m using Ubuntu 9.04 Jaunty on all my machines and I installed puppetmaster and puppet from the repositories. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Le 12 sept. 09 à 12:58, Bogdan Bivolaru a écrit :> > Hello,Hello,> I''m trying to follow the guide at http://reductivelabs.com/trac/puppet/wiki/SimplestPuppetInstallRecipe > , but I get a funny error when starting Puppetd: > Server: > sudo puppetmasterd --verbose > /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized > constant KNOWN_OPTIONS > /usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized > constant DEF_KEY_ATTRIBUTES > /usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized > constant DEF_ROOT_NAME > /usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized > constant DEF_CONTENT_KEY > /usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized > constant DEF_XML_DECLARATION > /usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized > constant DEF_ANONYMOUS_TAG > /usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized > constant DEF_FORCE_ARRAY > /usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized > constant DEF_INDENTATION > /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized > constant DEF_KEY_TO_SYMBOL > > Client: > biv@server:~$ sudo puppetd --verbose > [sudo] password for biv: > /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized > constant KNOWN_OPTIONS > [ same warnings as on the server ] > /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized > constant DEF_KEY_TO_SYMBOL > err: Could not create PID file: /var/run/puppet/puppetd.pid > > Back on the server I run "sudo puppetca --list", I get the same > warnings complaining about xmlsimple.rb, and it tells me there are > "No certificates to sign". When I run the client on the same machine > as the server, I still get "Could not create PID". I restarted the > server machine, but it doesn''t seem to help either. > > My guess is that there is something wrong with the client - do I need > to configure anything else? I''m a bit lost from here. > > I''m using Ubuntu 9.04 Jaunty on all my machines and I installed > puppetmaster and puppet from the repositories.Actually, you''ve hit a bug in ubuntu on libxml-simple-ruby https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/296605 , the way to solve this problem is either : - download the karmic package and install it - wait for karmic Cheers, Julien> > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The warrning is beacause xmlsimple was moved (this is a guess), and for backward compatibility it was left there like require File.dirname(__FILE__) + ''/../xmlsimple.rb'' I''m guessing that puppet uses both require ''xmlsimple.rb'' and require ''lib/xmlsimple.rb''. Long story short because of the ''..'' in the above file, it seems that the file gets included twice. The easy workardound is to replace the above with> require ''xmlsimple.rb''This made things right for me (Ubuntu 9.04), but I''m not sure if it can break other ruby software (I only use puppet). Silviu Julien Garet wrote:> Le 12 sept. 09 à 12:58, Bogdan Bivolaru a écrit : > > >> Hello, >> > > Hello, > > >> I''m trying to follow the guide at http://reductivelabs.com/trac/puppet/wiki/SimplestPuppetInstallRecipe >> , but I get a funny error when starting Puppetd: >> Server: >> sudo puppetmasterd --verbose >> /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized >> constant KNOWN_OPTIONS >> /usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized >> constant DEF_KEY_ATTRIBUTES >> /usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized >> constant DEF_ROOT_NAME >> /usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized >> constant DEF_CONTENT_KEY >> /usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized >> constant DEF_XML_DECLARATION >> /usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized >> constant DEF_ANONYMOUS_TAG >> /usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized >> constant DEF_FORCE_ARRAY >> /usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized >> constant DEF_INDENTATION >> /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized >> constant DEF_KEY_TO_SYMBOL >> >> Client: >> biv@server:~$ sudo puppetd --verbose >> [sudo] password for biv: >> /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized >> constant KNOWN_OPTIONS >> [ same warnings as on the server ] >> /usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized >> constant DEF_KEY_TO_SYMBOL >> err: Could not create PID file: /var/run/puppet/puppetd.pid >> >> Back on the server I run "sudo puppetca --list", I get the same >> warnings complaining about xmlsimple.rb, and it tells me there are >> "No certificates to sign". When I run the client on the same machine >> as the server, I still get "Could not create PID". I restarted the >> server machine, but it doesn''t seem to help either. >> >> My guess is that there is something wrong with the client - do I need >> to configure anything else? I''m a bit lost from here. >> >> I''m using Ubuntu 9.04 Jaunty on all my machines and I installed >> puppetmaster and puppet from the repositories. >> > > > Actually, you''ve hit a bug in ubuntu on libxml-simple-ruby https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/296605 > , the way to solve this problem is either : > - download the karmic package and install it > - wait for karmic > > Cheers, > > Julien > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---