Bug 175776
Summary: | Jonas startup failure with fresh install of RHAPSV2U1 on a machine with SELinux enabled | ||
---|---|---|---|
Product: | [Retired] Red Hat Application Server | Reporter: | Gregory Lapouchnian <glapouch> |
Component: | jonas | Assignee: | Fernando Nasser <fnasser> |
Status: | CLOSED EOL | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.0 | CC: | dbhole |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | ia64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-03-27 16:49:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gregory Lapouchnian
2005-12-14 21:03:37 UTC
This is not a consistently reproducable bug. If/when it does happen, it is on machines with SELinux enabled. It may show up during one install, and disappear if the install is attempted again -- thus providing no consistent way to reproduce. The cause of this seems to be the use of the "su" command. When SELinux is enabled on a system, one should use "runuser" instead of "su" to perform operations that require a user change. The "su" command is used in %post of the jonas-examples RPM to create the appropriate Resource Adapter (.rar) for accessing PostgreSQL. WORKAROUND: If this bug manifests itself, run the following command as root: runuser - jonas -s /bin/sh -c "cd /usr/share/jonas/rars/autoload/; . /usr/share/jonas/bin/unix/RAConfig -j jdbc_1 -dm -p /usr/share/jonas/conf/PostgreSQL1 /usr/share/jonas/rars/autoload/JOnAS_jdbcDM PostgreSQL1_DM" This will re-create the PostgreSQL1_DM rar, allowing jonas to acccess the example PostgreSQL database that is set up by the jonas-examples RPM. |