Hi folks,
I've been running open-source Puppet 3.x for years but this week I'm dabbling with a new installation of PE 2016.4. I installed from the pointy-clicky installer and so far the PE server only has itself in the inventory, but is failing to do a puppet run. It bails with this error:
Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Method call, 'dig' parameter 'data' expects a Collection value, got String at /opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42 on node puppet4-prod.resnet.bris.ac.uk
I think that manifest is something that came with PE and not something I've installed, so I've no idea where to start. Any ideas?
$tmp_mount_options = $::mountpoints.dig( '/tmp', 'options' ) |
Thanks,
Jonathan
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.
On Thu, Nov 3, 2016 at 2:52 AM, Jonathan Gazeley <Jonathan...@bristol.ac.uk> wrote:Hi folks,
I've been running open-source Puppet 3.x for years but this week I'm dabbling with a new installation of PE 2016.4. I installed from the pointy-clicky installer and so far the PE server only has itself in the inventory, but is failing to do a puppet run. It bails with this error:
Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Method call, 'dig' parameter 'data' expects a Collection value, got String at /opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42 on node puppet4-prod.resnet.bris.ac.uk
I think that manifest is something that came with PE and not something I've installed, so I've no idea where to start. Any ideas?Looking at that line in the puppet configuration it seems that we're digging into the mountpoints:
$tmp_mount_options = $::mountpoints.dig( '/tmp', 'options' ) Dig expects to be called on a collection[1], and reading the error I would assume that the fact `mountpoints` is returning a string or that the "/tmp" key within the fact is returning a string. Which is not how Facter should be behaving[2].
--Have you changed anything relating to Facter or its configuration?- Justin
Thanks,
Jonathan
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk.
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com.
puppet apply -e 'notify { "${::mountpoints}": }; notify { "${::mountpoints["/"]}": }'
Thanks,
-aj
> <mailto:puppet-users+unsub...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> --
> Peter Huene - Senior Software Engineer
> peter...@puppet.com <mailto:peter...@puppet.com> | @peterhuene
>
> --
> 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 puppet-users...@googlegroups.com
> <mailto:puppet-users+unsub...@googlegroups.com>.
On Nov 4, 2016 3:04 AM, "Jonathan Gazeley" <Jonathan...@bristol.ac.uk> wrote:
>
> Thanks for your response. Output of those commands follows:
>
> [jg4461@puppet4-prod ~]$ facter -p mountpoints
> /,/dev,/sys/kernel/security,/sys/fs/cgroup/systemd,/sys/fs/pstore,/sys/kernel/config,/sys/fs/selinux,/dev/mqueue,/dev/hugepages,/sys/kernel/debug,/boot
>
This looks like it may be coming from a custom fact that is overriding the expected built-in.
Could you run 'facter -d -p mountpoints' and see if the output mentions discovery of a mountpoints.rb or a change in fact value?
Thanks!
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/060971bb-91aa-1849-7673-cc79dd82fd4a%40bristol.ac.uk.