Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22879

[7.4.z] Default settings of jboss-eap-rhel.sh doesn't work on RHEL8

XMLWordPrintable

      Default settings of jboss-eap-rhel.sh doesn't work on RHEL8. EAP service is not started.

      Script is unable to access to "/log" folder on RHEL8, see the details from "journalctl --since=today --unit=jboss-eap-rhel":

      Oct 08 12:54:31 rhel8-medium-2609 jboss-eap-rhel.sh[7044]: Starting jboss-eap: /etc/rc.d/init.d/jboss-eap-rhel.sh: line 104: /var/log/jboss-eap/console.log: Permission denied
      Oct 08 12:54:31 rhel8-medium-2609 jboss-eap-rhel.sh[7044]: /etc/rc.d/init.d/jboss-eap-rhel.sh: line 113: /var/log/jboss-eap/console.log: Permission denied
      

      Workarounds:

      1. manually set permissions to proper EAP log folders (by default jboss-eap):
        mkdir -p /var/log/jboss-eap
        chmod 777 /var/log/jboss-eap
        touch /var/log/jboss-eap/console.log
        chmod 777 /var/log/jboss-eap/console.log
        
      2. Use different path to console logs:
        echo "JBOSS_CONSOLE_LOG=/tmp/user/console.log" >> /home/hudson/hudson_workspace/workspace/mkopecky/jboss-eap-7.3/bin/init.d/jboss-eap.conf
        echo "JBOSS_CONSOLE_LOG=/tmp/user/console.log" >> /etc/default/jboss-eap.conf

            gtrivedi@redhat.com Gaurav Trivedi
            gtrivedi@redhat.com Gaurav Trivedi
            Martin Svehla Martin Svehla
            Martin Svehla Martin Svehla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: