Does this make sense to anyone? Class[atg::any]/File[ABTestLicense.properties]/ensure: change from absent to present failed: Could not set present on ensure: undefined method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ init.pp:31 Here''s the offending code: file { "ABTestLicense.properties": path => "/usr/local/ATG/ATG2007.1/home/localconfig/ ABTestLicense.properties", ensure => present, mode => $mode, owner => $owner, group => $group, source => "puppet://puppet/atg/any/ABTestLicense.properties", } --~--~---------~--~----~------------~-------~--~----~ 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 Wed, Jun 18, 2008 at 2:17 PM, Jeff <joesiege@gmail.com> wrote:> > Does this make sense to anyone? > > Class[atg::any]/File[ABTestLicense.properties]/ensure: change from > absent to present failed: Could not set present on ensure: undefined > method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ > init.pp:31 > > Here''s the offending code: > > file { "ABTestLicense.properties": > path => "/usr/local/ATG/ATG2007.1/home/localconfig/ > ABTestLicense.properties", > ensure => present, > mode => $mode, > owner => $owner, > group => $group, > source => "puppet://puppet/atg/any/ABTestLicense.properties", > }You either have one of the variables un assigned or typo. in htere somewhere. Evan --~--~---------~--~----~------------~-------~--~----~ 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 Jun 18, 3:34 pm, "Evan Hisey" <ehi...@gmail.com> wrote:> On Wed, Jun 18, 2008 at 2:17 PM, Jeff <joesi...@gmail.com> wrote: > > > Does this make sense to anyone? > > > Class[atg::any]/File[ABTestLicense.properties]/ensure: change from > > absent to present failed: Could not set present on ensure: undefined > > method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ > > init.pp:31 > > > Here''s the offending code: > > > file { "ABTestLicense.properties": > > path => "/usr/local/ATG/ATG2007.1/home/localconfig/ > > ABTestLicense.properties", > > ensure => present, > > mode => $mode, > > owner => $owner, > > group => $group, > > source => "puppet://puppet/atg/any/ABTestLicense.properties", > > } > > You either have one of the variables un assigned or typo. in htere somewhere. >This fails in a similar manner: file { "ABTestLicense.properties": path => "/usr/local/ATG/ATG2007.1/home/localconfig/ ABTestLicense.properties", mode => "0444", owner => "root", group => "root", source => "puppet://puppet/atg/any/ABTestLicense.properties", ensure => present, backup => local, } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Do not use source and ensure together, it leads to undefined behavior. On Wed, Jun 18, 2008 at 12:17 PM, Jeff <joesiege@gmail.com> wrote:> > Does this make sense to anyone? > > Class[atg::any]/File[ABTestLicense.properties]/ensure: change from > absent to present failed: Could not set present on ensure: undefined > method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ > init.pp:31 > > Here''s the offending code: > > file { "ABTestLicense.properties": > path => "/usr/local/ATG/ATG2007.1/home/localconfig/ > ABTestLicense.properties", > ensure => present, > mode => $mode, > owner => $owner, > group => $group, > source => "puppet://puppet/atg/any/ABTestLicense.properties", > } > > >--~--~---------~--~----~------------~-------~--~----~ 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 Jun 18, 2008, at 2:17 PM, Jeff wrote:> Does this make sense to anyone? > > Class[atg::any]/File[ABTestLicense.properties]/ensure: change from > absent to present failed: Could not set present on ensure: undefined > method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ > init.pp:31 > > Here''s the offending code: > > file { "ABTestLicense.properties": > path => "/usr/local/ATG/ATG2007.1/home/localconfig/ > ABTestLicense.properties", > ensure => present, > mode => $mode, > owner => $owner, > group => $group, > source => "puppet://puppet/atg/any/ABTestLicense.properties", > }What''s the output when you run it with --trace? And you generally shouldn''t specify both a source and ''ensure'', as the source will trump the ensure. -- It is a very sad thing that nowadays there is so little useless information. -- Oscar Wilde --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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 Jun 18, 5:02 pm, Luke Kanies <l...@madstop.com> wrote:> On Jun 18, 2008, at 2:17 PM, Jeff wrote: > > > > > Does this make sense to anyone? > > > Class[atg::any]/File[ABTestLicense.properties]/ensure: change from > > absent to present failed: Could not set present on ensure: undefined > > method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ > > init.pp:31 > > > Here''s the offending code: > > > file { "ABTestLicense.properties": > > path => "/usr/local/ATG/ATG2007.1/home/localconfig/ > > ABTestLicense.properties", > > ensure => present, > > mode => $mode, > > owner => $owner, > > group => $group, > > source => "puppet://puppet/atg/any/ABTestLicense.properties", > > } > > What''s the output when you run it with --trace? > > And you generally shouldn''t specify both a source and ''ensure'', as the > source will trump the ensure. >It was a permissions problem. Once I changed the owner to puppet all was good. A more enlightening error message would have been helpful. Cheers, Jeff --~--~---------~--~----~------------~-------~--~----~ 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 Jun 19, 2008, at 6:50 AM, Jeff wrote:> > On Jun 18, 5:02 pm, Luke Kanies <l...@madstop.com> wrote: >> On Jun 18, 2008, at 2:17 PM, Jeff wrote: >> >> >> >>> Does this make sense to anyone? >> >>> Class[atg::any]/File[ABTestLicense.properties]/ensure: change from >>> absent to present failed: Could not set present on ensure: undefined >>> method `[]'' for nil:NilClass at /var/puppet/modules/atg/manifests/ >>> init.pp:31 >> >>> Here''s the offending code: >> >>> file { "ABTestLicense.properties": >>> path => "/usr/local/ATG/ATG2007.1/home/localconfig/ >>> ABTestLicense.properties", >>> ensure => present, >>> mode => $mode, >>> owner => $owner, >>> group => $group, >>> source => "puppet://puppet/atg/any/ABTestLicense.properties", >>> } >> >> What''s the output when you run it with --trace? >> >> And you generally shouldn''t specify both a source and ''ensure'', as >> the >> source will trump the ensure. >> > > It was a permissions problem. Once I changed the owner to puppet all > was good. A more enlightening error message would have been helpful.What file''s ownership did you have to change? -- He played the king as if afraid someone else would play the ace. --John Mason Brown --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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 -~----------~----~----~----~------~----~------~--~---
Marcin Owsiany
2008-Jun-19 18:31 UTC
[Puppet Users] Re: Strange error on ensure => present
On Thu, Jun 19, 2008 at 10:33:03AM -0500, Luke Kanies wrote:> What file''s ownership did you have to change?I think that I''ve also seen that, when the source file does not exist (or maybe is not accessible like here) on the fileserver, then you see that message on the puppet(d) side. Marcin -- Marcin Owsiany <marcin@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown --~--~---------~--~----~------------~-------~--~----~ 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, Jun 19, 2008 at 4:50 AM, Jeff <joesiege@gmail.com> wrote:> It was a permissions problem. Once I changed the owner to puppet all > was good. A more enlightening error message would have been helpful.You are definitely watching the wrong place for error messages. Permissions problems have wonderfully enlightening error messages... on the puppetmaster. Always check your puppetmaster logs. --Paul --~--~---------~--~----~------------~-------~--~----~ 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 Jun 19, 11:33 am, Luke Kanies <l...@madstop.com> wrote:> > What file''s ownership did you have to change? >I had to change the source file''s ownership. Paul is correct. The answer was indeed in my puppet master''s log. I was looking at puppetd''s --debug output. The Puppet Master was crystal clear: Jun 18 11:40:58 puppet puppetmasterd[16558]: Permission denied - /var/ puppet/modules/atg/files/ABTestLicense.properties --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---