Red Hat Satellite Installation or upgrade fails with the error "LoadError: load error: psych -- java .lang.RuntimeException: BUG: we can not copy embedded jar to temp directory".

Solution Verified - Updated -

Issue

  • Installing or upgrading Red Hat Satellite server fails with the below error:

    2022-06-29 11:39:52 [ERROR ] [configure] Jun 29 11:39:51 usydinp51294 puppetserver[33872]: /opt/puppetlabs/puppet/lib/ruby/vend
    or_ruby/puppet/network/format_handler.rb:1: warning: The Psych YAML extension failed to load.
    2022-06-29 11:39:52 [ERROR ] [configure] Jun 29 11:39:51 usydinp51294 puppetserver[33872]: Check your env for conflicting versi
    ons of SnakeYAML
    2022-06-29 11:39:52 [ERROR ] [configure] Jun 29 11:39:51 usydinp51294 puppetserver[33872]: See https://github.com/jruby/jruby/w
    iki/FAQs#why-does-the-psych-yaml-extension-fail-to-load-in-my-environment
    2022-06-29 11:39:52 [ERROR ] [configure] Jun 29 11:39:51 usydinp51294 puppetserver[33872]: LoadError: load error: psych -- 
    java.lang.RuntimeException: BUG: we can not copy embedded jar to temp directory
    

Environment

  • Red Hat Satellite/Capsule 6.x.
  • Puppet 5 and above.

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