Hi Peter, please check the locale setting and set it to en_US.UTF-8
export LANG=en_US.UTF.8 Best, Martin > On 31. Aug 2018, at 20:48, Henrik Lindberg <[email protected]> wrote: > > On 2018-08-31 20:23, Peter K wrote: >> I'm getting this error when I try and create a user on osx: >> '''Error: Failed to apply catalog: undefined method `each' for >> nil:NilClass''' >> My code looks like this: >> ''' class fakeadmin2 { >> user { 'fakeadmin2': >> name => 'fakeadmin2', >> ensure => 'present', >> uid => '504', >> gid => '501', >> home => '/Users/fakeadmin2', >> } >> }''' >> ubuntu server package: puppetserver 2.8.0-1puppetlabs1 >> puppet master 4.10.9 >> puppet agent version 4.10.9 >> Any help with how to debug this would be helpful too. > > A stack trace is required to have any guess at what is going wrong. (Run > puppet apply with --trace) > > Also check here (https://puppet.com/docs/puppet/4.10/release_notes.html) for > release notes for versions newer that 4.10.9 (think we are up to 12 now). > > > - henrik > >> thx >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/7114fc76-ba6e-4ecf-a4b9-efe12f5c297b%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/7114fc76-ba6e-4ecf-a4b9-efe12f5c297b%40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout. > > > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/pmc2e2%24tdg%241%40blaine.gmane.org. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/93BD930A-5D43-4027-B1C3-184FFE82FA66%40gmail.com. For more options, visit https://groups.google.com/d/optout.
