IIRC I fixed this by consequently making all variables involved
arrays, even if they just had one member.

On 30/07/2015, Björn <[email protected]> wrote:
> Am Mittwoch, 10. September 2014 23:00:42 UTC+2 schrieb Felix.Frank:
>>
>> On 09/10/2014 12:46 PM, Stephan wrote:
>> >
>> > The other weird thing is I see this error only on AIX. On Linux it
>> > does exactly what I expect it to do. I'm using puppet 3.6.2
>>
>> Can you perhaps try another (older) Ruby version on AIX?
>>
>> It's still weird, but this might narrow down the possible causes.
>>
>
> I got the same issue with puppet 4 against a centos machine and I don't
> know ho to determine the failing module.
>
> Debug: /Stage[main]/Sysupdates::Yum/File_line[set proxy for yum]: Adding
> autorequire relationship with File[yum.conf]
> Debug: /Stage[main]/Sysupdates::Yum/File_line[disable http caching for yum]:
>
> Adding autorequire relationship with File[yum.conf]
> Debug: /Stage[main]/Yum/File[yum.conf]: Adding autorequire relationship with
>
> User[root]
> Debug: /Stage[main]/Ntp/File[ntp.conf]: Adding autorequire relationship with
>
> User[root]
> Debug: /Stage[main]/Rsyslog/File[/etc/rsyslog.d/ims.conf]: Adding
> autorequire relationship with User[root]
> Debug: /Stage[main]/Puppet_agent/File[/etc/default/puppet]: Adding
> autorequire relationship with User[root]
> Debug: /Stage[main]/Puppet_agent/File[/etc/puppet/puppet.conf]: Adding
> autorequire relationship with File[/etc/puppet]
> Debug: /Stage[main]/Puppet_agent/File[/etc/puppet/puppet.conf]: Adding
> autorequire relationship with User[root]
> Debug: /Stage[main]/Puppet_agent/File[/usr/local/bin/start_puppet]: Adding
> autorequire relationship with User[root]
> Debug: /Stage[main]/Puppet_agent/Cron[start puppet if not started]: Adding
> autorequire relationship with User[root]
> Debug: /Stage[main]/Puppet_agent/Cron[clean clientbucket]: Adding
> autorequire relationship with User[root]
> Debug: Storing state
> Debug: Stored state in 0.03 seconds
> Error: Failed to apply catalog: comparison of Array with String failed
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/list.rb:38:in
> `sort'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/list.rb:38:in `
> dearrayify'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/list.rb:48:in
> `should'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/user.rb:401:in
> `block
> (2 levels) in <module:Puppet>'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2053:in `
> instance_eval'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2053:in `block
> in autorelation'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1992:in `block
> in eachautorequire'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1991:in `each'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1991:in
> `eachautorequire'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2048:in
> `autorelation'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2078:in `
> autorequire'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:169:in
>
> `block (2 levels) in build_autorelation_dependencies'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.
> rb:168:in `each'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:168:in
>
> `block in build_autorelation_dependencies'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:167:in
>
> `each'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.
> rb:167:in `build_autorelation_dependencies'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:25:in
>
> `populate_from'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:202:in
>
> `relationship_graph'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in
> `relationship_graph'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:82:in `
> evaluate'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in
>
> `block in apply'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:153:in
> `with_destination'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in
>
> `as_logging_destination'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in
>
> `apply'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:119:in
> `block
> in apply_catalog'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:129:in `block in
>
> benchmark'
> /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:128:in
> `benchmark'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:118:in `
> apply_catalog'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:228:in
> `run_internal'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:134:in
> `block
> in run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:64:in `
> override'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:223:in `override'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:133:in
> `run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:in `block (4
>
> levels) in run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in
> `lock'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:in `block (3
>
> levels) in run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:98:in `
> with_client'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (2
>
> levels) in run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:65:in
> `run_in_fork'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:44:in `block in
>
> run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in
> `call'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in
> `controlled_run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:42:in `run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:351:in
>
> `onetime'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:328:
> in `run_command'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in
> `block
> in run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:446:in
> `exit_on_fail'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in
> `run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:in
>
> `run'
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in
>
> `execute'
> /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
> Debug: Using cached connection for https://puppet:8140
> Debug: Caching connection for https://puppet:8140
> Debug: Closing connection for https://puppet:8140
>
>
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/aK18gFX_SuI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c7a16504-9bfe-4f1d-bad8-39b4a36dac29%40googlegroups.com.
> 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/CANE1DboRrtbw-Szk2njxfDeJndau%2Bvo2MF26_Fmcy72LrK5k-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to