Bug 1497050 - Internal Server Error on Sync tab after first sync
Summary: Internal Server Error on Sync tab after first sync
Keywords:
Status: CLOSED DUPLICATE of bug 1496143
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 2.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space28
TreeView+ depends on / blocked
 
Reported: 2017-09-29 06:04 UTC by Christoph Galuschka
Modified: 2018-04-20 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-27 12:31:25 UTC
Embargoed:


Attachments (Terms of Use)
Tomcat error log (355 bytes, text/plain)
2017-09-29 06:04 UTC, Christoph Galuschka
no flags Details
updated error log and add. information that shows, the file in question is present (516 bytes, text/plain)
2017-09-29 06:07 UTC, Christoph Galuschka
no flags Details
Screenshot of server error (61.73 KB, image/png)
2017-09-29 06:08 UTC, Christoph Galuschka
no flags Details

Description Christoph Galuschka 2017-09-29 06:04:40 UTC
Created attachment 1332231 [details]
Tomcat error log

Description of problem:
The Web-GUI throws an internal server error on the sync-tab of channel repositories after a first sync attempt (no matter if the attempt failed or worked).

Version-Release number of selected component (if applicable):
2.7 GA

How reproducible:
always

Steps to Reproduce:
1. Install spacewalk 2.7 and configure with supplied scripts
2. Add channel and yum repo, attach repo to channel and press "Sync now" button on the "Sync"-Tab
3. Sync completes or failes, but GUI shows "Internal Server Error" from now on for this channels Sync-tab

Actual results:
Internal Server Error

Expected results:
Displaying the Sync tab. 

Additional info:
From tomcat

Comment 1 Christoph Galuschka 2017-09-29 06:07:15 UTC
Created attachment 1332232 [details]
updated error log and add. information that shows, the file in question is present

Comment 2 Christoph Galuschka 2017-09-29 06:08:49 UTC
Created attachment 1332233 [details]
Screenshot of server error

Comment 3 Christoph Galuschka 2017-09-29 06:12:02 UTC
The issue is SElinux related. Disabling SElinux for testing purposes, and the page works now.

ls -Z /var/log/rhn/reposync/centos-6_i386.log 
-rw-rw----. apache apache system_u:object_r:spacewalk_log_t:s0 /var/log/rhn/reposync/centos-6_i386.log

(This is the same content as in spacewalk 2.6)

Output from audit.log when calling the sync-tab:
type=AVC msg=audit(1506665282.212:775): avc:  denied  { read } for  pid=10995 comm="java" name="centos-6_i386.log" dev="dm-3" ino=100680307 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:spacewalk_log_t:s0 tclass=file
type=SYSCALL msg=audit(1506665282.212:775): arch=c000003e syscall=2 success=no exit=-13 a0=7fe6dc8e5f80 a1=0 a2=1b6 a3=3 items=0 ppid=1 pid=10995 auid=4294967295 uid=91 gid=91 euid=91 suid=91 fsuid=91 egid=91 sgid=91 fsgid=91 tty=(none) ses=4294967295 comm="java" exe="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/bin/java" subj=system_u:system_r:tomcat_t:s0 key=(null)
type=PROCTITLE msg=audit(1506665282.212:775): proctitle=2F7573722F6C69622F6A766D2F6A72652F62696E2F6A617661002D6561002D586D733235366D002D586D783235366D002D446A6176612E6177742E686561646C6573733D74727565002D446F72672E786D6C2E7361782E6472697665723D6F72672E6170616368652E7865726365732E706172736572732E5341585061727365
type=AVC msg=audit(1506665282.221:776): avc:  denied  { name_connect } for  pid=10995 comm="java" dest=25 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1506665282.221:776): arch=c000003e syscall=42 success=no exit=-13 a0=3a a1=7fe6ce4bee80 a2=10 a3=23b0 items=0 ppid=1 pid=10995 auid=4294967295 uid=91 gid=91 euid=91 suid=91 fsuid=91 egid=91 sgid=91 fsgid=91 tty=(none) ses=4294967295 comm="java" exe="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/bin/java" subj=system_u:system_r:tomcat_t:s0 key=(null)
type=PROCTITLE msg=audit(1506665282.221:776): proctitle=2F7573722F6C69622F6A766D2F6A72652F62696E2F6A617661002D6561002D586D733235366D002D586D783235366D002D446A6176612E6177742E686561646C6573733D74727565002D446F72672E786D6C2E7361782E6472697665723D6F72672E6170616368652E7865726365732E706172736572732E5341585061727365

Comment 4 Jan Dobes 2017-10-27 12:31:25 UTC
Thanks for your input. We'll continue tracking this bug in Bug 1496143.

*** This bug has been marked as a duplicate of bug 1496143 ***


Note You need to log in before you can comment on or make changes to this bug.