Bug 902876 - RHQ 4.6 installer overwrites config of other as7 on the system
Summary: RHQ 4.6 installer overwrites config of other as7 on the system
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Installer
Version: 4.5
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: RHQ 4.6
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-22 15:28 UTC by Heiko W. Rupp
Modified: 2013-09-03 14:46 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-03 14:46:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2013-01-22 15:28:30 UTC
Have a rhq server (in dev mode) and a as7 in standalone mode.

Restart the rhq server

You will find that in the standalone as7 config the ports for the web are now changed to the ones of the rhq server

   <socket-binding name="ajp" port="${rhq.server.socket.binding.port.ajp:7009}"/>
        <socket-binding name="http" port="${rhq.server.socket.binding.port.http:7080}"/>
        <socket-binding name="https" port="${rhq.server.socket.binding.port.https:7443}"/>

Comment 1 John Mazzitelli 2013-01-23 14:55:44 UTC
Short term solution is in the install docs, we need to tell people to shutdown any standalone AS7 instances they have running before they run rhq-installer.sh/bat.

I'd have to look into this some more to find out why this is happening. I think it has to do with the installer first looking to see if the standard admin port is listening for commands (9999) and if it is, it uses it (rather than the RHQ port of 6999).

Comment 2 John Mazzitelli 2013-01-23 14:59:46 UTC
there is a big problem that heiko just brought up.

Because we try to be nice and do a "rhq-installer.sh --reconfig" everytime you start the server, I think its possible we might be connecting to anything on port 9999 first and that's a standard AS7 port. We'll then just try to reconfigure that standalone AS7 and not the RHQ AS7. If that's what is happening, then this is a blocker and needs to be fixed for 4.6.

Comment 3 John Mazzitelli 2013-01-23 16:44:41 UTC
to replicate the problem, install a standalone AS7 and just run it with "standalone.sh" - just run a clean out-of-box version, nothing special.

Now, in rhq-server.properties, set these values to a non-localhost hostname (say, 192.168.1.100 or whatever your host is)

jboss.bind.address=192.168.1.100
jboss.bind.address.management=192.168.1.100
rhq.autoinstall.public-endpoint-address=192.168.1.100

Comment 4 John Mazzitelli 2013-01-23 17:54:44 UTC
git commit to master: a5fbc0fad49bcabf3b5b880e12f452ff79394aee

to test, just follow comment #3

Comment 5 Heiko W. Rupp 2013-09-03 14:46:35 UTC
Bulk closing of issues in old RHQ releases that are in production for a while now.

Please open a new issue when running into an issue.


Note You need to log in before you can comment on or make changes to this bug.