Description of problem: When starting the RHQ server, there is a page listening on the root context on port 7080 indicating the progress. However, if the vanilla RHQ is installed with just rhqctl install (without no --start flag). The server turns off itself before the servlet reports that server has been started. This leads to never ending waiting process for server to start. It should be possible to distinguish between successful XHR request with a response that server is still starting and the unsuccessful XHR request (servlet is not even listening). Browser refresh obviously solves the issue. Version-Release number of selected component (if applicable): 4.10.0-SNAPSHOT How reproducible: ~ 50 % (JavaScript checks the backend availability in 3 seconds intervals => non-deterministic) Steps to Reproduce: 1. install RHQ with "rhqctl install" 2. when installing, in browser goto http://${host}:7080/ Actual results: after the installation is complete and the server is turned off the page is still reporting that the server is starting.. Expected results: perhaps we could notify a user that the server is off and he/she has to turn it on again
Created attachment 832222 [details] patch fixing the issue
branch: master link: http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=cce8d75b2 time: 2013-12-04 20:10:36 +0100 commit: cce8d75b28e55793ba222a10a6cd2b80d207191d author: Jirka Kremser - jkremser message: [BZ 1036681] - Starting page listening on :7080 freezes if the server turns off itself during installation - adding logic that handles the case if the server went down during the installation (or normal startup process). Also externalizing the JavaScript to its own file and linking it to the HTML page.
Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.