| Summary: | Unable to start EAP due to missing log file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Radovan STANCEL <rstancel> | ||||
| Component: | Scripts and Commands | Assignee: | Radovan STANCEL <rstancel> | ||||
| Status: | CLOSED EOL | QA Contact: | Marek Kopecky <mkopecky> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.4.10 | CC: | fnasser, pgier, pkremens, rstancel | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-08-19 12:47:32 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: | |||||
| Attachments: |
|
||||||
|
Description
Radovan STANCEL
2016-09-23 12:34:13 UTC
/var/log/jboss-as/console.log: Permission denied It says permission denied, not file not found. Has the server been installed by a different user than the one that has installed/run a previous version? Or run with a different user than the one that unzipped? server were installed under sudo from user rstancel. However, it is started from root user and in config is setup this: JBOSS_USER=root Another info is that the directory /var/log/jboss-as was created while startup with following permission: drwxr-xr-x. 2 root root 4096 23. zář 15.02 jboss-as Server is unzipped in following directory: JBOSS_HOME=/home/rstancel/soft/jboss-eap-6.4.10 drwxr-xr-x. 11 rstancel rstancel 4096 22. zář 12.34 jboss-eap-6.4.10 After setting 'setenforce 0' and changing command for file generating to '> $JBOSS_CONSOLE_LOG' service has started normally. So the issue is probably something with selinux File creation was blocked due to SE Linux policy. Grep from the log:
type=AVC msg=audit(1474889558.731:313): avc: denied { create } for pid=10069 comm="jboss-as-standa" name="console.log" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=0
|