Stephan
2014-Sep-10 10:46 UTC
[Puppet Users] How can I trace "comparison of String with Array failed" error to actual values?
Hi All, I'm getting the following error: Error: Got an uncaught exception of type ArgumentError: comparison of String with Array failed /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/property/list.rb:38:in `sort' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/property/list.rb:38:in `dearrayify' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/property/list.rb:48:in `should' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type/user.rb:365:in `block (2 levels) in <module:Puppet>' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1962:in `instance_eval' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1962:in `block in autorequire' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1940:in `block in eachautorequire' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1939:in `each' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1939:in `eachautorequire' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/type.rb:1957:in `autorequire' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/graph/relationship_graph.rb:168:in `block in build_autorequire_dependencies' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/graph/relationship_graph.rb:167:in `each' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/graph/relationship_graph.rb:167:in `build_autorequire_dependencies' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/graph/relationship_graph.rb:25:in `populate_from' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/resource/catalog.rb:195:in `relationship_graph' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/transaction.rb:141:in `relationship_graph' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/transaction.rb:55:in `evaluate' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/resource/catalog.rb:167:in `block in apply' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util/log.rb:149:in `with_destination' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/transaction/report.rb:112:in `as_logging_destination' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/resource/catalog.rb:166:in `apply' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/configurer.rb:117:in `block in apply_catalog' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util.rb:161:in `block in benchmark' /opt/freeware/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util.rb:160:in `benchmark' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/configurer.rb:116:in `apply_catalog' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/configurer.rb:191:in `run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:47:in `block (4 levels) in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent/locker.rb:20:in `lock' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:47:in `block (3 levels) in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:117:in `with_client' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:44:in `block (2 levels) in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:82:in `run_in_fork' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:43:in `block in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:179:in `call' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:179:in `controlled_run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/agent.rb:41:in `run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application/agent.rb:355:in `onetime' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application/agent.rb:321:in `run_command' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:371:in `block (2 levels) in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:477:in `plugin_hook' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:371:in `block in run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util.rb:479:in `exit_on_fail' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/application.rb:371:in `run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util/command_line.rb:137:in `run' /opt/freeware/lib/ruby/vendor_ruby/2.0.0/puppet/util/command_line.rb:91:in `execute' /opt/freeware/bin/puppet:8:in `<main>' I'm seeing this error only when I try to realize a virtual defined resource: User::Config <| title == "joedoe" |> 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 How can I trace this error a bit better? I would like to see which actual string it tries to compare against which array, just to get a better idea of the issue. So, in general, how can I do that? I've tried running the agent with --debug and --trace, but that didn't get me much closer. Thanks in advance Stephan -- 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/75cdbc99-174a-46f1-a6c7-a1d5a38694d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.