foreman-rake console fails to start with error "Psych::SyntaxError: (<unknown>): did not find expected key"
Issue
-
Execution of
foreman-rake consolecommand fails with the following error:# foreman-rake console --trace rake aborted! Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 37 column 2 /usr/share/ruby/psych.rb:456:in `parse' /usr/share/ruby/psych.rb:456:in `parse_stream' /usr/share/ruby/psych.rb:390:in `parse' /usr/share/ruby/psych.rb:277:in `load' /usr/share/foreman/config/boot_settings.rb:9:in `<top (required)>' /usr/share/foreman/config/settings.rb:1:in `require_relative' /usr/share/foreman/config/settings.rb:1:in `<top (required)>' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require' /usr/share/gems/gems/activesupport-6.0.6/lib/active_support/dependencies.rb:324:in `block in require' /usr/share/gems/gems/activesupport-6.0.6/lib/active_support/dependencies.rb:291:in `load_dependency' /usr/share/gems/gems/activesupport-6.0.6/lib/active_support/dependencies.rb:324:in `require' /usr/share/foreman/config/application.rb:26:in `<top (required)>' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require' /usr/share/foreman/Rakefile:1:in `<top (required)>' /usr/share/gems/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load' /usr/share/gems/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load_rakefile' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:703:in `raw_load_rakefile' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:104:in `block in load_rakefile' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:103:in `load_rakefile' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:82:in `block in run' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:80:in `run' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' /usr/bin/rake:23:in `load' /usr/bin/rake:23:in `<main>'
Environment
Red Hat Satellite 6.12 and above
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.