Hi , I have installed puppet master and puppet client on the same machine using synaptic package manager. Puppet client and Puppet master are on the same machine having Ubuntu (10.10 LTS )as base operating system. root@laptop:/etc/puppet# puppetd agent --test info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': Connection refused - connect(2) err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Connection refused - connect(2) Could not retrieve file metadata for puppet://puppet/plugins: Connection refused - connect(2) err: Could not retrieve catalog from remote server: Connection refused - connect(2) warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Installed Puppet Version is 0.25.4 Can you guys help me resolving this error . -- Best Regards, Suresh Kumar Prajapati Operation Engineer(Inmobi India) E-mail: er.sureshprajapati@gmail.com Mob No: +91-8800920533 ---------------------------------------------------------------------------------------- Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! -- 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.
> > Installed Puppet Version is 0.25.4 > Can you guys help me resolving this error .Could you get the latest from repos - http://apt.puppetlabs.com/dists/maverick/main/binary-amd64/Packages And did your puppetmaster start? -- Krish OlinData.com -- 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.
On Thu, Feb 16, 2012 at 5:42 PM, krish <das.srikrishna@gmail.com> wrote:>> >> Installed Puppet Version is 0.25.4 >> Can you guys help me resolving this error . > > > Could you get the latest from repos - > http://apt.puppetlabs.com/dists/maverick/main/binary-amd64/Packages > > And did your puppetmaster start?thanx for replying... done the same installed everything from scratch using source ... Now puppet version is : root@inmobi-laptop:~# puppet --version 2.7.10 root@inmobi-laptop:~# facter --version 1.6.5 And again new error came : root@laptop:/etc/puppet# puppetd agent --test /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `expand_path'': No such file or directory - getcwd (Errno::ENOENT) from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'' from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `collect'' from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'' from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:54 from /usr/local/lib/site_ruby/1.8/puppet/application.rb:2:in `require'' from /usr/local/lib/site_ruby/1.8/puppet/application.rb:2 from /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:1:in `require'' from /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:1 from /usr/sbin/puppetd:3:in `require'' from /usr/sbin/puppetd:3> > > > -- > Krish > OlinData.com > > -- > 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. >-- Best Regards, Suresh Kumar Prajapati Linux System Admin E-mail: er.sureshprajapati@gmail.com Mob No: +91-8800920533 ---------------------------------------------------------------------------------------- Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! -- 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.
Is there anyone who can help me ? On Thu, Feb 16, 2012 at 6:17 PM, sam <er.sureshprajapati@gmail.com> wrote:> On Thu, Feb 16, 2012 at 5:42 PM, krish <das.srikrishna@gmail.com> wrote: >>> >>> Installed Puppet Version is 0.25.4 >>> Can you guys help me resolving this error . >> >> >> Could you get the latest from repos - >> http://apt.puppetlabs.com/dists/maverick/main/binary-amd64/Packages >> >> And did your puppetmaster start? > > thanx for replying... > > done the same installed everything from scratch using source ... > > Now puppet version is : > > root@inmobi-laptop:~# puppet --version > 2.7.10 > root@inmobi-laptop:~# facter --version > 1.6.5 > > And again new error came : > > root@laptop:/etc/puppet# puppetd agent --test > /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in > `expand_path'': No such file or directory - getcwd (Errno::ENOENT) > from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'' > from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `collect'' > from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:49:in `look_in'' > from /usr/local/lib/site_ruby/1.8/puppet/util/plugins.rb:54 > from /usr/local/lib/site_ruby/1.8/puppet/application.rb:2:in `require'' > from /usr/local/lib/site_ruby/1.8/puppet/application.rb:2 > from /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:1:in `require'' > from /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:1 > from /usr/sbin/puppetd:3:in `require'' > from /usr/sbin/puppetd:3 > > > >> >> >> >> -- >> Krish >> OlinData.com >> >> -- >> 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. >> > > > > -- > Best Regards, > Suresh Kumar Prajapati > Linux System Admin > E-mail: er.sureshprajapati@gmail.com > Mob No: +91-8800920533 > ---------------------------------------------------------------------------------------- > Theory is when you know all and nothing works. Practice is when all > works and nobody knows why. In this case we have put together theory > and practice: nothing works... and nobody knows why!-- Best Regards, Suresh Kumar Prajapati Linux System Admin E-mail: er.sureshprajapati@gmail.com Mob No: +91-8800920533 ---------------------------------------------------------------------------------------- Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! -- 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.
On Fri, Feb 17, 2012 at 11:50 AM, sam <er.sureshprajapati@gmail.com> wrote:> Is there anyone who can help me ?1. Why not use maverick repo. Why source? 2. Did you install all depends properly? 3. Are you doing something similar - http://projects.puppetlabs.com/issues/12494 -- Krish -- 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.
On Fri, Feb 17, 2012 at 12:08 PM, krish <das.srikrishna@gmail.com> wrote:> On Fri, Feb 17, 2012 at 11:50 AM, sam <er.sureshprajapati@gmail.com> wrote: >> Is there anyone who can help me ? > > > 1. Why not use maverick repo. Why source?Installing from source is the best method I guess and I''ve to do it on production boxes with source.> 2. Did you install all depends properly?Yes I''ve installed all the dependencies properly.> 3. Are you doing something similar - http://projects.puppetlabs.com/issues/12494The error It showing is : root@laptop:~# puppet agent --test The interpreter parameter to ''setcode'' is deprecated and will be removed in a future version. notice: /File[/var/lib/puppet/state/last_run_summary.yaml]/content: --- /var/lib/puppet/state/last_run_summary.yaml 2012-02-17 12:25:15.696246117 +0530 +++ /tmp/puppet-file20120217-1720-1hfxuso-0 2012-02-17 12:26:32.295423615 +0530 @@ -1,6 +1,6 @@ --- time: - last_run: 1329461715 + last_run: 1329461792 version: puppet: 2.7.10 config: \ No newline at end of file err: Could not send report: Connection refused - connect(2) err: Could not run Puppet configuration client: Could not retrieve local facts: undefined method `get_uptime'' for Facter::Util::Uptime:Module>> > -- > Krish > > -- > 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. >-- Best Regards, Suresh Kumar Prajapati Linux System Admin E-mail: er.sureshprajapati@gmail.com Mob No: +91-8800920533 ---------------------------------------------------------------------------------------- Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! -- 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.
Can you pastebin us a full puppetd -tdv output. -- Krish OlinData.com -- 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.
On Fri, Feb 17, 2012 at 12:39 PM, krish <das.srikrishna@gmail.com> wrote:> Can you pastebin us a full puppetd -tdv output. >Ok here you go http://pastie.org/3399696> -- > Krish > OlinData.com > > -- > 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. >-- Best Regards, Suresh Kumar Prajapati Linux System Admin E-mail: er.sureshprajapati@gmail.com Mob No: +91-8800920533 ---------------------------------------------------------------------------------------- Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! -- 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.
On Feb 17, 1:03 am, sam <er.sureshprajap...@gmail.com> wrote:> On Fri, Feb 17, 2012 at 12:08 PM, krish <das.srikris...@gmail.com> wrote: > > On Fri, Feb 17, 2012 at 11:50 AM, sam <er.sureshprajap...@gmail.com> wrote: > >> Is there anyone who can help me ? > > > 1. Why not use maverick repo. Why source? > > Installing from source is the best method I guess and I''ve to do it on > production boxes with source.Installing from source is inferior to installing via a decent package manager for multiple reasons, among them: 1) Installation from source yields poor documentation of what''s actually installed on the system 2) Installation from source limits repeatability -- what options did you enable, which installation paths did you choose, etc. 3) Installation from source offers no real dependency management 4) Software installed from source is difficult to uninstall If you want to build your own software, then go the extra step and package it up for your system''s native package manager. It''s not that hard.> The error It showing is : > > root@laptop:~# puppet agent --test > The interpreter parameter to ''setcode'' is deprecated and will be > removed in a future version.I don''t think that bit is important.> notice: /File[/var/lib/puppet/state/last_run_summary.yaml]/content: > --- /var/lib/puppet/state/last_run_summary.yaml 2012-02-17 > 12:25:15.696246117 +0530 > +++ /tmp/puppet-file20120217-1720-1hfxuso-0 2012-02-17 12:26:32.295423615 +0530 > @@ -1,6 +1,6 @@ > --- > time: > - last_run: 1329461715 > + last_run: 1329461792 > version: > puppet: 2.7.10 > config: > \ No newline at end of file > > err: Could not send report: Connection refused - connect(2)That could be your root problem. Do you perchance have a firewall blocking access to the master?> err: Could not run Puppet configuration client: Could not retrieve > local facts: undefined method `get_uptime'' for > Facter::Util::Uptime:ModuleThis looks similar: http://stackoverflow.com/questions/3798107/undefined-method-get-uptime-for-facterutiluptimemodule-nomethoderror In that case, the problem was that multiple versions of facter were installed in different places on the system. That, by the way, is a problem that can be avoided by being sure to install software only via packages, and only via a single package manager (gem must be considered a package manager, too). John -- 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.