Satellite 6 : Hammer fails with error "parse': ( <unknown> ): mapping values are not allowed in this context at line 2 column 9 (Psych::SyntaxError)"

Solution Verified - Updated -

Issue

  • Hammer fails with below error:
# hammer organization list
/opt/rh/rh-ruby22/root/usr/share/ruby/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 2 column 9 (Psych::SyntaxError)
    from /opt/rh/rh-ruby22/root/usr/share/ruby/psych.rb:370:in `parse_stream'
    from /opt/rh/rh-ruby22/root/usr/share/ruby/psych.rb:318:in `parse'
    from /opt/rh/rh-ruby22/root/usr/share/ruby/psych.rb:245:in `load'
    from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/settings.rb:37:in `load_from_file'
    from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/settings.rb:20:in `block in load_from_paths'
    from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/settings.rb:16:in `each'
    from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/lib/hammer_cli/settings.rb:16:in `load_from_paths'
    from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.11/bin/hammer:49:in `<top (required)>'
    from /usr/bin/hammer:23:in `load'
    from /usr/bin/hammer:23:in `<main>'

Environment

  • Red Hat Satellite v 6.x
  • Hammer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.