2 Replies Latest reply on May 15, 2014 3:40 AM by pathduck

    RHQ 4.11 installer complains of 'rhq.server.database.port' must be set?

    pathduck

      Hey,

      during upgrade from 4.10 to 4.11 the installer receives the following exception:

       

      10:32:35,993 ERROR [org.rhq.enterprise.server.installer.Installer] The installer will now exit due to previous errors: java.lang.Exception: Validation errors:
      [rhq.server.database.port] must exist and be set to a number : [unused]
      
              at org.rhq.enterprise.server.installer.ServerProperties.validate(ServerProperties.java:330) [rhq-installer-util-4.11.0.jar:4.11.0]
              at org.rhq.enterprise.server.installer.ServerProperties.validate(ServerProperties.java:268) [rhq-installer-util-4.11.0.jar:4.11.0]
              at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:145) [rhq-installer-util-4.11.0.jar:4.11.0]
              at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:90) [rhq-installer-util-4.11.0.jar:4.11.0]
              at org.rhq.enterprise.server.installer.Installer.main(Installer.java:57) [rhq-installer-util-4.11.0.jar:4.11.0]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
              at org.jboss.modules.Module.run(Module.java:262) [jboss-modules.jar:1.2.0.CR1]
              at org.jboss.modules.Main.main(Main.java:329) [jboss-modules.jar:1.2.0.CR1]
      
      
      

       

      Apparently setting the 'rhq.server.database.port' in rhq-server.properties is now mandatory?

       

      Because for earlier installation I've just left these 'unused' and it's worked ok:

       

      rhq.server.database.server-name=unused
      rhq.server.database.port=unused
      rhq.server.database.db-name=unused
      
      
      

       

      Is this new?

       

      Using Oracle Database and we just use the rhq.server.database.connection-url property to set a full DB URL.

       

      EDIT: Apparently, according to the doc, this is "Currently only used when connecting to PostgreSQL." I've noticed the upgrade process just copies the settings in the properties file so they will end up under the comment "# PostgreSQL database" even if it's Oracle. Is this comment used to determine wheter we're running Oracle or PostgreSQL? Has anything changed here in the updater code?


       

      Stian