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".
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 satellite puppetserver[33872]: /opt/puppetlabs/puppet/lib/ruby/vendor_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 satellite puppetserver[33872]: Check your env for conflicting versions of SnakeYAML 2022-06-29 11:39:52 [ERROR ] [configure] Jun 29 11:39:51 satellite puppetserver[33872]: See https://github.com/jruby/jruby/wiki/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 satellite 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.