Exiting from foreman-rake console produces an error Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/foreman/config/irbrc_history

Solution Verified - Updated -

Issue

  • Exiting from foreman-rake console throws below error:

    irb(main):002:0> exit
    rake aborted!
    Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/foreman/config/irbrc_history
    /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/commands/console/console_command.rb:70:in `start'
    /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/commands/console/console_command.rb:19:in `start'
    /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/commands/console/console_command.rb:102:in `perform'
    /opt/theforeman/tfm/root/usr/share/gems/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
    /opt/theforeman/tfm/root/usr/share/gems/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
    /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/command/base.rb:69:in `perform'
    /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/command.rb:46:in `invoke'
    /usr/share/foreman/lib/tasks/console.rake:5:in `block in <top (required)>'
    /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
    Tasks: TOP => console
    (See full trace by running task with --trace)
    

Environment

  • Red Hat Satellite 6.10+

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