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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 7.2.4.CR2
    • Scripts
    • Documentation (Ref Guide, User Guide, etc.)
    • Blocks Testing

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              thofman Tomas Hofman
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: