Issue #16109 has been updated by Gary Larizza.

Status changed from Needs More Information to Duplicate

I ran into this today trying to setup Puppet on 10.8 using envpuppet and 
3.0.0-rc5

<pre>

Macintosh:puppet gary$ sudo envpuppet puppet apply ~/Desktop/laptop_config.pp 
--modulepath ~/src -v --trace
Info: Loading facts in /Users/gary/src/facter/lib/facter/application.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/architecture.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/arp.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/augeasversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/blockdevices.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/Cfkey.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/domain.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ec2.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/facterversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/filesystems.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/fqdn.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/hardwareisa.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/hardwaremodel.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/hostname.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/id.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/interfaces.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ipaddress.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ipaddress6.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/kernel.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/kernelmajversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/kernelrelease.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/kernelversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ldom.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbdistcodename.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbdistdescription.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbdistid.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbdistrelease.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbmajdistrelease.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/lsbrelease.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/macaddress.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/macosx.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/manufacturer.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/memory.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/netmask.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/network.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/operatingsystem.rb
Info: Loading facts in 
/Users/gary/src/facter/lib/facter/operatingsystemrelease.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/osfamily.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/path.rb
Info: Loading facts in 
/Users/gary/src/facter/lib/facter/physicalprocessorcount.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/processor.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ps.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/puppetversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/rubysitedir.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/rubyversion.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/selinux.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/ssh.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/timezone.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/uniqueid.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/uptime.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/uptime_days.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/uptime_hours.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/uptime_seconds.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/version.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/virtual.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/vlans.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/xendomains.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/zfs_version.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/zonename.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/zones.rb
Info: Loading facts in /Users/gary/src/facter/lib/facter/zpool_version.rb
Warning: Found multiple default providers for vcsrepo: bzr, hg, cvs, svn, git; 
using bzr
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `string' for nil:NilClass
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:323
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:149
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:177
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:581
/Users/gary/src/puppet/lib/puppet/provider/nameservice.rb:200
/Users/gary/src/puppet/lib/puppet/type/user.rb:355
/Users/gary/src/puppet/lib/puppet/settings.rb:731
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:45
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:40
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:93
/Users/gary/src/puppet/lib/puppet/settings.rb:867
/Users/gary/src/puppet/lib/puppet/settings.rb:864
/Users/gary/src/puppet/lib/puppet/settings.rb:864
/Users/gary/src/puppet/lib/puppet/settings.rb:926
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:230
/Users/gary/src/puppet/lib/puppet/settings.rb:920
/Users/gary/src/puppet/lib/puppet/configurer.rb:55
/Users/gary/src/puppet/lib/puppet/application/apply.rb:264
/Users/gary/src/puppet/lib/puppet/application/apply.rb:264
/Users/gary/src/puppet/lib/puppet/application/apply.rb:213
/Users/gary/src/puppet/lib/puppet/application/apply.rb:146
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/application.rb:436
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/util.rb:513
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/util/command_line.rb:76
/Users/gary/src/puppet/bin/puppet:10
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `string' for nil:NilClass
undefined method `string' for nil:NilClass
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:323
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:149
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:177
/Users/gary/src/puppet/lib/puppet/provider/nameservice/directoryservice.rb:581
/Users/gary/src/puppet/lib/puppet/provider/nameservice.rb:200
/Users/gary/src/puppet/lib/puppet/type/user.rb:355
/Users/gary/src/puppet/lib/puppet/settings.rb:731
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:45
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:40
/Users/gary/src/puppet/lib/puppet/settings/file_setting.rb:93
/Users/gary/src/puppet/lib/puppet/settings.rb:867
/Users/gary/src/puppet/lib/puppet/settings.rb:864
/Users/gary/src/puppet/lib/puppet/settings.rb:864
/Users/gary/src/puppet/lib/puppet/settings.rb:926
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:230
/Users/gary/src/puppet/lib/puppet/settings.rb:920
/Users/gary/src/puppet/lib/puppet/configurer.rb:55
/Users/gary/src/puppet/lib/puppet/application/apply.rb:264
/Users/gary/src/puppet/lib/puppet/application/apply.rb:264
/Users/gary/src/puppet/lib/puppet/application/apply.rb:213
/Users/gary/src/puppet/lib/puppet/application/apply.rb:146
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/application.rb:436
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/util.rb:513
/Users/gary/src/puppet/lib/puppet/application.rb:342
/Users/gary/src/puppet/lib/puppet/util/command_line.rb:76
/Users/gary/src/puppet/bin/puppet:10
</pre>

Looking at the stacktrace, the line in the directoryservice.rb file points 
RIGHT back to the broken password code that doesn't work on 10.8.  I presume 
was on 10.8 as well?

Indeed, testing out my branch 
<https://github.com/glarizza/puppet-1/tree/feature/osx_dscl_providers/optimization>
 with envpuppet, this error goes away.  I'm going to say this is a dup of  
#12833 but it's manifesting with this error.
----------------------------------------
Bug #16109: Puppet fails on OSX 3.0.0rc3
https://projects.puppetlabs.com/issues/16109#change-70764

Author: James Turnbull
Status: Duplicate
Priority: Normal
Assignee: James Turnbull
Category: OSX
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


<pre>
Debug: Failed to load library 'shadow' for feature 'libshadow'
Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist
Debug: Puppet::Type::User::ProviderPw: file pw does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
Debug: Puppet::Type::User::ProviderUser_role_add: file usermod does not exist
Debug: Executing '/usr/bin/dscl -plist . -list /Users'
Debug: Executing '/usr/bin/dscl -plist . -read /Users/puppet'
Debug: Executing '/usr/bin/plutil -convert xml1 -o /dev/stdout 
/var/db/dslocal/nodes/Default/users/puppet.plist'
Debug: Converting binary plist to XML
Debug: Executing: 'plutil -convert xml1 -o - -'
Debug: Converting XML values to a hash.
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :master, :ssl, :metrics]: undefined method `string' for 
nil:NilClass
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:330
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:156
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:184
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:588
/Library/Ruby/Site/1.8/puppet/provider/nameservice.rb:200
/Library/Ruby/Site/1.8/puppet/type/user.rb:355
/Library/Ruby/Site/1.8/puppet/settings.rb:746
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:45
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:40
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:93
/Library/Ruby/Site/1.8/puppet/settings.rb:882
/Library/Ruby/Site/1.8/puppet/settings.rb:879
/Library/Ruby/Site/1.8/puppet/settings.rb:879
/Library/Ruby/Site/1.8/puppet/settings.rb:941
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:230
/Library/Ruby/Site/1.8/puppet/settings.rb:935
/Library/Ruby/Site/1.8/puppet/application/master.rb:226
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/application.rb:436
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/util.rb:529
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/util/command_line.rb:74
/usr/bin/puppet:10
Error: Could not prepare for execution: Could not create resources for managing 
Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: 
undefined method `string' for nil:NilClass
undefined method `string' for nil:NilClass
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:330
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:156
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:184
/Library/Ruby/Site/1.8/puppet/provider/nameservice/directoryservice.rb:588
/Library/Ruby/Site/1.8/puppet/provider/nameservice.rb:200
/Library/Ruby/Site/1.8/puppet/type/user.rb:355
/Library/Ruby/Site/1.8/puppet/settings.rb:746
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:45
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:40
/Library/Ruby/Site/1.8/puppet/settings/file_setting.rb:93
/Library/Ruby/Site/1.8/puppet/settings.rb:882
/Library/Ruby/Site/1.8/puppet/settings.rb:879
/Library/Ruby/Site/1.8/puppet/settings.rb:879
/Library/Ruby/Site/1.8/puppet/settings.rb:941
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:230
/Library/Ruby/Site/1.8/puppet/settings.rb:935
/Library/Ruby/Site/1.8/puppet/application/master.rb:226
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/application.rb:436
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/util.rb:529
/Library/Ruby/Site/1.8/puppet/application.rb:340
/Library/Ruby/Site/1.8/puppet/util/command_line.rb:74
/usr/bin/puppet:10
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to