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

Default settings of jboss-eap-rhel.sh doesn't work on RHEL8

    XMLWordPrintable

    Details

    • Target Release:
    • Story Points:
      3
    • Workaround Description:
      Hide

      Update permissions of the jboss-eap-rhel.sh:

      $ sudo semanage fcontext -a -t bin_t /etc/init.d/jboss-eap-rhel.sh
      $ sudo restorecon -v /etc/init.d/jboss-eap-rhel.sh
      
      Show
      Update permissions of the jboss-eap-rhel.sh : $ sudo semanage fcontext -a -t bin_t /etc/init.d/jboss-eap-rhel.sh $ sudo restorecon -v /etc/init.d/jboss-eap-rhel.sh
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)
    • Affects Testing:
      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

              Assignee:
              ncbaratta Nicole Baratta
              Reporter:
              mkopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: