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

The "JBOSS_MARKERFILE" in "jboss-eap-rhel.sh" doesn't work.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.0.3.GA
    • Scripts
    • None
    • Hide

      1. unzip EAP 7 in Linux platform.
      2. copy everything from "EAP_HOME/standalone" to a folder to generate another instance according to link[1].
      2. install EAP 7 as Linux service and add JBOSS_OPTS="-Djboss.server.base.dir=/path/to/another/standalone" in "/etc/default/jboss-eap.conf"
      3. start EAP 7 Linux service, check "start-marker" from "/path/to/another/standalone/tmp"
      4. change name or path of "JBOSS_MARKERFILE=$JBOSS_HOME/standalone/tmp/startup-marker" from "/etc/init.d/"jboss-eap-rhel.sh" then restart service to check if the change works.

      [1]https://access.redhat.com/solutions/350683

      Show
      1. unzip EAP 7 in Linux platform. 2. copy everything from "EAP_HOME/standalone" to a folder to generate another instance according to link [1] . 2. install EAP 7 as Linux service and add JBOSS_OPTS="-Djboss.server.base.dir=/path/to/another/standalone" in "/etc/default/jboss-eap.conf" 3. start EAP 7 Linux service, check "start-marker" from "/path/to/another/standalone/tmp" 4. change name or path of "JBOSS_MARKERFILE=$JBOSS_HOME/standalone/tmp/startup-marker" from "/etc/init.d/"jboss-eap-rhel.sh" then restart service to check if the change works. [1] https://access.redhat.com/solutions/350683

      Customer set 'JBOSS_OPTS="-Djboss.server.base.dir=/abc/def/standalone"' in "/etc/default/jboss-eap.conf" to separate application home from EAP_HOME and start EAP 7.0.3 as Linux service successfully.

      A file "startup-marker"(success:xxxxxxx) will be created on "/abc/def/standalone/tmp" as expected.

      And we can also see below from "/etc/init.d/"jboss-eap-rhel.sh":

      # Startup mode script
      if [ "$JBOSS_MODE" = "standalone" ]; then
      	JBOSS_SCRIPT=$JBOSS_HOME/bin/standalone.sh
      	if [ -z "$JBOSS_CONFIG" ]; then
      		JBOSS_CONFIG=standalone.xml
      	fi
      	JBOSS_MARKERFILE=$JBOSS_HOME/standalone/tmp/startup-marker 
      

      The path above is still pointing to $JBOSS_HOME/standalone, however it will be created at "jboss.server.base.dir/tmp" in practice, we try to change the path and file name to find the reason, but got the same result.

      And after start EAP service the terminal shows:

      [/opt/jboss-eap7/bin/init.d]@abc (jboss)$ sudo service jboss-eap restart
      Stopping jboss-eap:                                        [  OK  ]
      Starting jboss-eap: /
      jboss-eap started with errors, please see server log for details
      
      

      However, "server.log" has no errors at all.

              vdosoudi@redhat.com Vladimir Dosoudil
              zhangxu1324_jira xu zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: