JBoss EAP start up with error "Caused by: java.io.FileNotFoundException: /abc/log... (Permission denied)Permission denied"
Issue
In the Linux platform, if EAP uses a customized folder to store log files or other things related to write
permission. Even, the folder has correct permission, however, EAP still can't save files in it, the error shows:
Caused by: java.io.FileNotFoundException: /abc/log... (Permission denied)
When we issue sudo service eap7-domain start
the service starts but sudo service eap7-standalone start
(after shutting down the domain service) does not start with the following error message:
[user@localhost share]$ sudo service eap7-standalone start
Starting eap7-standalone: [FAILED]
Logfile /var/opt/rh/eap7/log/wildfly/standalone/server.log exists but not writable by jboss.
[user@localhost bin]$ ./domain.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/rh/eap7/root/usr/share/wildfly
JAVA: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64/jre/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
Unable to read the logging configuration from 'file:/opt/rh/eap7/root/usr/share/wildfly/domain/configuration/logging.properties' (java.io.FileNotFoundException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration/logging.properties (Permission denied))
[Host Controller] Unable to read the logging configuration from 'file:/opt/rh/eap7/root/usr/share/wildfly/domain/configuration/logging.properties' (java.io.FileNotFoundException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration/logging.properties (Permission denied))
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.