Error: "found character that cannot start any token while scanning"

Solution Verified - Updated -

Issue

  • The following error was found on Satellite 6
foreman-rake katello:reindex --trace
** Invoke katello:reindex (first_time)
** Invoke environment (first_time)
** Execute environment
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
undefined method `each' for nil:NilClass
  • Then after running the following trace, the next error was observed.
# foreman-rake apipie:cache --trace
** Invoke apipie:cache (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
(/usr/share/foreman/config/initializers/../email.yaml): found character that cannot start any token while scanning for the next token at line 6 column 3
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:203:in `parse'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:203:in `parse_stream'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:151:in `parse'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:127:in `load'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:297:in `block in load_file'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:297:in `open'
/opt/rh/ruby193/root/usr/share/ruby/psych.rb:297:in `load_file'
/usr/share/foreman/config/initializers/email.rb:6:in `<top (required)>'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:587:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:587:in `block in <class:Engine>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'

Environment

  • Red Hat Satellite 6.1.8 (From recent upgrade)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content