Bug 1497050
| Summary: | Internal Server Error on Sync tab after first sync | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Christoph Galuschka <tigalch> | ||||||||
| Component: | WebUI | Assignee: | Grant Gainey <ggainey> | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 2.7 | CC: | jdobes | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2017-10-27 12:31:25 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 1564160 | ||||||||||
| Attachments: |
|
||||||||||
Created attachment 1332232 [details]
updated error log and add. information that shows, the file in question is present
Created attachment 1332233 [details]
Screenshot of server error
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
Thanks for your input. We'll continue tracking this bug in Bug 1496143. *** This bug has been marked as a duplicate of bug 1496143 *** |
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