Red Hat Bugzilla – Bug 1009478
RHQ server 2nd installation does not work when first installation fails
Last modified: 2014-01-02 15:38:06 EST
Description of problem:
2nd RHQ server installation does not work when first installation fails because of typo in rhq-server.properties or missing property
Version-Release number of selected component (if applicable):
Build Number: 1e23623
Steps to Reproduce:
1. wget http://hudson.qa.jboss.com/hudson/view/RHQ/job/rhq-master-gwt-locales/838/artifact/modules/enterprise/server/appserver/target/rhq-server-4.10.0-SNAPSHOT.zip
2. unzip it
3. edit RHQ_HOME/bin/rhq-server.properties file this way:
a) set property jboss.bind.address to value 0.0.0.0
b) rhq.server.database.db-name=rhq replace with e.g. rhq.server.database.db.nam=rhq (changed property name) or remove this line from the file
4. run RHQ_HOME/bin/rhqctl install
5. put the RHQ_HOME/bin/rhq-server.properties file to the initial state except for jboss.bind.address value which is necessary
6. run RHQ_HOME/bin/rhqctl install
exception referring to RHQ server installation not informing the user about the problem is thrown:
07:33:38,453 WARN [org.rhq.enterprise.server.installer.InstallerServiceImpl] reloadConfiguration failed - restart the server to complete the installation: java.io.IOException: java.util.concurrent.ExecutionException: Operation failed
RHQ server process is running
RHQ server is not correctly installed
exception referring to RHQ server installation informing the user about the certain problem is thrown
RHQ server is correctly installed
this is being worked on. main master commit is b130f6a4194d944fae8fc582fca8f561c37922f9 but there are others that occurred after it.
The work I did on this has been completed with the git commit mentioned earlier. What this does is - when the installer aborts half way through, it will attempt to rollback what it had done already, allowing the user to attempt to re-install a second time. Cleaning up remnants of the first attempt is necessary to allow for another attempt.
in addition to git commit b130f6a4194d944fae8fc582fca8f561c37922f9 these are also part of the fix:
Moving to ON_QA for testing.
after an unsuccessful install re-install installs server.
full rhq-installer.log attached
Created attachment 811135 [details]