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

    • 3
    • Documentation (Ref Guide, User Guide, etc.)
    • Blocks Testing
    • 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

      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
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: