My Oracle Support Banner

Spacewalk Reposync Fails With Error "File not found: /var/log/rhn/reposync/" (Doc ID 2573667.1)

Last updated on JANUARY 02, 2024

Applies to:

Linux OS - Version Oracle Linux 7.0 to Oracle Linux 7.6 with Unbreakable Enterprise Kernel [4.14.35] [Release OL7 to OL7U6]
Linux x86-64

Symptoms

After updating SPACEWALK-SELINUX-2.7.6-1.0.3.EL7 package on  spacewalk server as per Bug 29428910, facing permission issues on the reposync logs when tried to perform a "manual" sync of a software channel

below messages are observed in audit.log

type=AVC msg=audit(1553012837.715:1478): avc: denied { read } for pid=98795 comm="java" name="ol6_x86_64_spacewalk27_client.log" dev="sdc1" ino=395071 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:spacewalk_log_t:s0 tclass=file permissive=0
type=AVC msg=audit(1553088306.981:2707): avc: denied { read } for pid=98797 comm="java" name="ol7_x86_64_spacewalk27_client.log" dev="sdc1" ino=394437 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:spacewalk_log_t:s0 tclass=file permissive=0
type=AVC msg=audit(1553094889.924:2809): avc: denied { read } for pid=98799 comm="java" name="ol7_x86_64_spacewalk27_client.log" dev="sdc1" ino=394437 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:spacewalk_log_t:s0 tclass=file permissive=0

 

reposync log shows below messages

Exception:
javax.servlet.ServletException: java.lang.RuntimeException: File not found: /var/log/rhn/reposync/ol7_x86_64_spacewalk27_client.log    
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:105)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1926)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:451)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.redhat.rhn.frontend.servlets.AuthFilter.doFilter(AuthFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.