Red Hat Satellite 6: Manifest upload/refresh on Satellite server is failing with " Runtime Error java.lang.RuntimeException: .IOException: Permission denied at .UnixFileSystem.createFileExclusively:-2 (Katello::Errors::CandlepinError)"

Solution Unverified - Updated -

Environment

  • Red Hat Satellite 6.x
  • External Identity Management Tool : Centrify

Issue

  • Manifest Refresh on Red Hat Satellite server is failing with below error in /var/log/foreman/production.log:
2016-01-15 14:40:52 [E] Error during manifest import: {"displayMessage"=>"Runtime Error java.lang.RuntimeException: java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively:-2", "requestUuid"=>"830b19a3-e3e8-428b-b79f-3141e8301e39"}
2016-01-15 14:40:52 [E] Runtime Error java.lang.RuntimeException: java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively:-2 (Katello::Errors::CandlepinError)
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.77/app/lib/actions/middleware/propagate_candlepin_errors.rb:33:in `rescue in propagate_candlepin_errors'
  • Does Red Hat Satellite-6.x supports external authentication via Centrify ?

Resolution

  • Disable any unsupported identity management tool which is causing changes in permissions on the Red Hat satellite server and again try to upload the manifest.

Root Cause

  • A unsupported Identity Management Tool Centrify was configured with Red Hat Satellite 6.x server,which was causing changes in file permissions on the satellite server causing failure to upload/refresh manifest.
  • We have filled a Request For Feature Enhancement with engineering to make Red Hat Satellite-6.x compatible with said tool "Centrify", the Request in tracked in a private Bugzilla#1303403 .

Diagnostic Steps

  • Verify permissions and ownership on directory /var/cache/candlepin/ and /var/lib/candlepin, it should be like below:-
# ll -ldZ /var/lib/candlepin /var/cache/candlepin
drwxrwxr-x. tomcat tomcat system_u:object_r:var_t:s0       /var/cache/candlepin
drwxrwxr-x. tomcat tomcat system_u:object_r:var_lib_t:s0   /var/lib/candlepin

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.