Bug #945
Ruby does not like unsigned UIDs
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | OSX | |||
| Target version: | - | |||
| Affected Puppet version: | 0.25.5 | Branch: | ||
| Keywords: | ||||
| Votes: | 1 |
Description
I created user and group for puppet manually and invoked puppetmasterd with this commandline:
sudo puppetmasterd --confdir /Users/mgm/svn/testbed-automation/conf -v
I got puppet errors:
err: Tried to get gid field for silly id 4294967294 err: /puppetconfig/reporting/File[/opt/puppet/var/reports]/ensure: change from absent to directory failed: Could not find group 4294967294 err: Tried to get gid field for silly id 4294967294 err: /puppetconfig/metrics/File[/opt/puppet/var/rrd]/ensure: change from absent to directory failed: Could not find group 4294967294 err: Tried to get gid field for silly id 4294967294 err: /puppetconfig/main/File[/opt/puppet/var/log]/ensure: change from absent to directory failed: Could not find group 4294967294 err: Tried to get gid field for silly id 4294967294 err: /puppetconfig/ca/File[/Users/mgm/svn/testbed-automation/conf/ssl/ca]/ensure: change from absent to directory failed: Could not find group 4294967294
and ruby error:
bignum too big to convert into @long'
The directories look like this:
mgm$ ls -l /opt/puppet/var/ total 0 drwxr-xr-x 2 root admin 68 3 Dez 14:17 lib drwxr-x--- 2 puppet admin 68 3 Dez 14:17 log drwxr-x--- 2 puppet admin 68 3 Dez 14:17 reports drwxr-xr-x 2 puppet admin 68 3 Dez 14:17 rrd drwxrwxrwt 2 root admin 68 3 Dez 14:17 run drwxrwxrwt 2 root admin 68 3 Dez 14:17 state
and this:
ls -l conf/ total 40 -rw-r--r-- 1 mgm mgm 2 29 Nov 13:13 autosign.conf -rw-r--r-- 1 mgm mgm 228 29 Nov 13:13 fileserver.conf -rw-r--r-- 1 mgm mgm 3239 29 Nov 13:13 hosts.pp drwxr-xr-x 14 mgm mgm 476 3 Dez 13:24 manifests -rw-r--r-- 1 mgm mgm 164 29 Nov 13:13 puppetca.conf -rw-r--r-- 1 mgm mgm 168 29 Nov 13:13 puppetmasterd.conf drwxrwx--x 7 root mgm 238 3 Dez 14:17 ssl
History
Updated by Luke Kanies over 4 years ago
Is anyone else having this problem?
The issue clearly seems related to the negative UIDs on a 64bit system, but I don’t see any
nobodyusers or anything that would have those negative IDs.
Updated by Luke Kanies over 4 years ago
- Status changed from 1 to Closed
- 7 set to worksforme
I can’t reproduce this problem, and no one else seems to have having it.
Updated by achemze - over 4 years ago
i’m having a problem similar to this as i upgraded to 0.23.2 from 0.22.4. However, this is on a tiger machine running 10.4.10. Was there any solution to this problem in other tickets?
Updated by Patrick McNeal over 2 years ago
- Assignee deleted (
Puppet Community) - Affected Puppet version set to 0.25.1
I’m seeing something similar on my Mac OS X 10.6.2 Server:
bash-3.2# /usr/sbin/puppetmasterd --mkusers Could not prepare for execution: Got 28 failure(s) while initializing: Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from absent to directory failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from root to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/yaml to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from root to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/reports to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from root to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/rrd to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from root to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/bucket to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from root to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/log to 4294967294: integer 4294967294 too big to convert to `int'
Updated by James Turnbull over 2 years ago
- Category set to OSX
- Status changed from Closed to Re-opened
- Affected Puppet version changed from 0.25.1 to 0.25.2
I can replicate this on Snow Leopard:
Could not prepare for execution: Got 17 failure(s) while initializing: Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/reports to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/log to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/bucket to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/yaml to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/rrd to 4294967294: integer 4294967294 too big to convert to `int'
Updated by James Turnbull over 2 years ago
Here’s a fuller debug and trace:
rhizome:puppet root# puppetmasterd --verbose --no-daemonize --debug --trace debug: Failed to load library 'selinux' for feature 'selinux' debug: Failed to load library 'shadow' for feature 'libshadow' debug: Failed to load library 'ldap' for feature 'ldap' debug: Puppet::Type::User::ProviderLdap: feature ldap is missing debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderDirectoryservice: Executing '/usr/bin/dscl -plist . -list /Users' debug: Puppet::Type::User::ProviderDirectoryservice: Executing '/usr/bin/dscl -plist . -read /Users/puppet' debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/yaml]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/manifests]: Autorequiring File[/etc/puppet] debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/bucket]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/reports]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/puppet/rrd]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/log/masterhttp.log]: Autorequiring File[/var/puppet/log] err: Tried to get name field for silly id 4294967294 debug: /File[/var/puppet/rrd]: Changing group debug: /File[/var/puppet/rrd]: 1 change(s) err: Tried to get name field for silly id 4294967294 /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/file/group.rb:118:in `sync' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:54:in `go' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:72:in `forward' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:120:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:85:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:207:in `eval_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:296:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:295:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:142:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 err: /File[/var/puppet/rrd]/group: change from wheel to puppet failed: failed to chgrp /var/puppet/rrd to 4294967294: integer 4294967294 too big to convert to `int' err: Tried to get name field for silly id 4294967294 debug: /File[/var/puppet/reports]: Changing group debug: /File[/var/puppet/reports]: 1 change(s) err: Tried to get name field for silly id 4294967294 /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/file/group.rb:118:in `sync' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:54:in `go' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:72:in `forward' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:120:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:85:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:207:in `eval_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:296:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:295:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:142:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 err: /File[/var/puppet/reports]/group: change from wheel to puppet failed: failed to chgrp /var/puppet/reports to 4294967294: integer 4294967294 too big to convert to `int' err: Tried to get name field for silly id 4294967294 debug: /File[/var/puppet/bucket]: Changing group debug: /File[/var/puppet/bucket]: 1 change(s) err: Tried to get name field for silly id 4294967294 /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/file/group.rb:118:in `sync' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:54:in `go' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:72:in `forward' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:120:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:85:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:207:in `eval_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:296:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:295:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:142:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 err: /File[/var/puppet/bucket]/group: change from wheel to puppet failed: failed to chgrp /var/puppet/bucket to 4294967294: integer 4294967294 too big to convert to `int' err: Tried to get name field for silly id 4294967294 debug: /File[/var/puppet/log]: Changing group debug: /File[/var/puppet/log]: 1 change(s) err: Tried to get name field for silly id 4294967294 /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/file/group.rb:118:in `sync' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:54:in `go' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:72:in `forward' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:120:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:85:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:207:in `eval_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:296:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:295:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:142:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 err: /File[/var/puppet/log]/group: change from wheel to puppet failed: failed to chgrp /var/puppet/log to 4294967294: integer 4294967294 too big to convert to `int' notice: /File[/var/puppet/log/masterhttp.log]: Dependency file[/var/puppet/log] has 1 failures warning: /File[/var/puppet/log/masterhttp.log]: Skipping because of failed dependencies err: Tried to get name field for silly id 4294967294 debug: /File[/var/puppet/yaml]: Changing group debug: /File[/var/puppet/yaml]: 1 change(s) err: Tried to get name field for silly id 4294967294 /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/file/group.rb:118:in `sync' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:54:in `go' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction/change.rb:72:in `forward' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:120:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:113:in `apply_changes' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:85:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:207:in `eval_resource' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:296:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:403:in `thinmark' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util.rb:402:in `thinmark' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:295:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `collect' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/transaction.rb:289:in `evaluate' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:142:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 err: /File[/var/puppet/yaml]/group: change from wheel to puppet failed: failed to chgrp /var/puppet/yaml to 4294967294: integer 4294967294 too big to convert to `int' debug: Finishing transaction 2176973880 with 5 changes /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:646:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/resource/catalog.rb:155:in `apply' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:642:in `use' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/sync.rb:229:in `synchronize' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/util/settings.rb:624:in `use' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/puppetmasterd.rb:151:in `run_setup' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in `exit_on_fail' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:216:in `run' /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/puppetmasterd:66 /usr/bin/puppetmasterd:19:in `load' /usr/bin/puppetmasterd:19 Could not prepare for execution: Got 15 failure(s) while initializing: Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/rrd to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/reports to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/bucket to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/log to 4294967294: integer 4294967294 too big to convert to `int'; Tried to get name field for silly id 4294967294; Tried to get name field for silly id 4294967294; change from wheel to puppet failed: failed to chgrp /var/puppet/yaml to 4294967294: integer 4294967294 too big to convert to `int'
Updated by Gary Larizza over 2 years ago
- File trace.rtf added
- Affected Puppet version changed from 0.25.2 to 0.25.4
I’m running 10.5.8 and setting up a demo box (brand new install, not upgraded). I’ve got Facter 1.5.7 and Puppet 0.25.4 running. I’ve created a puppet user and group on the box and ran ‘puppetmasterd —verbose —no-daemonize —debug —trace’ – I’m attaching the trace I captured (which is much like James').
Let me revise this – it runs perfectly fine on 10.5.8 server, but 10.5.8 client gives the above errors. I’m assuming there (or I) may be missing dependencies with the Client OS.
Updated by Stefan Goethals about 2 years ago
- File puppetmaster.txt added
- Affected Puppet version changed from 0.25.4 to 0.25.5
Running OS X 10.6.3 and having the same problem with 0.25.5 installed via gem
Attached the output of root# puppetmasterd —confdir . -v —no-daemonize —trace —debug
Updated by Todd Zullinger almost 2 years ago
I think this may be caused by http://redmine.ruby-lang.org/issues/show/1068
I ran into it just now on CentOS 5 (ruby 1.8.5 (2006-08-25) [x86_64-linux]) and on Fedora 12 (ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]). I have a user account for nfsnobody with uid 4294967294.
Perl, python, and coreutils (chown) have no problems with this uid. But puppet, or ruby rather, chokes on it:
$ cat /tmp/test.pp
file { '/tmp/test.pp':
ensure => present,
owner => 'nfsnobody',
}
$ sudo puppet --verbose --debug --trace /tmp/test.pp
[...]
err: Tried to get name field for silly id 4294967294
debug: //File[/tmp/test.pp]: Changing owner
debug: //File[/tmp/test.pp]: 1 change(s)
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/owner.rb:137:in `sync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:54:in `go'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:72:in `forward'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:120:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:113:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:113:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:85:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:251:in `eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:250:in `eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:296:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:295:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:132:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/bin/puppet:71
err: //File[/tmp/test.pp]/owner: change from tmz to 4294967294 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'
debug: Finishing transaction 23456256699900 with 1 changes
$ ruby -r etc -e 'nobody = Etc.getpwnam("nfsnobody"); p nobody; Process.uid = nobody.uid'
#
-e:1:in `uid=': integer 4294967294 too big to convert to `int' (RangeError)
from -e:1
Updated by James Turnbull almost 2 years ago
- Subject changed from puppetmasterd does not run with leopard to Ruby does not like unsigned UIDs
- Status changed from Re-opened to Accepted
- Target version set to 49
Be good if someone could confirm this was the upstream issue.
Updated by James Turnbull over 1 year ago
- Target version deleted (
49)
Updated by Leo Simons over 1 year ago
I ran into the same / a similar error: it seems puppet auto-created the user puppet and the group puppet, but it did not specify a numeric user id / group id. The workaround that worked for me is to manually add those IDs, and then retry. I.e.
sudo dscl . append /Users/puppet UniqueID 502
sudo dscl . append /Groups/puppet PrimaryGroupID 21
sudo chown -R puppet:puppet /var/run/puppet
sudo chown -R puppet:puppet /etc/puppet/ssl
sudo /usr/local/sbin/puppetmasterd --no-daemonize --debug --verbose
Updated by Nigel Kersten over 1 year ago
- Status changed from Accepted to Closed