0 Replies Latest reply on Feb 4, 2016 11:04 AM by Conor McNeill

    RHQ UnknownHostException

    Conor McNeill Newbie

      Hi guys,

      We are facing an issue with RHQ at the moment where we want to create a configuration where the server is not tied to any particular hostname. The problem we have is that we do not have a DNS to look up the hostname. The errors message we are receiving is

       

      Error: Exception thrown by the agent

      : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: ms-esmserv: ms-esmserv

       

      15:57:38,249 INFO  [org.rhq.enterprise.server.installer.ServerInstallUtil] Database is supported: postgresql8.4(postgresql:8.4)

      15:57:38,260 WARN  [org.rhq.enterprise.server.installer.InstallerServiceImpl] Could not determine default server name: : java.ne

      t.UnknownHostException: ms-esmserv: ms-esmserv

         at java.net.InetAddress.getLocalHost(InetAddress.java:1496) [rt.jar:1.7.0_95]

         at org.rhq.enterprise.server.installer.InstallerServiceImpl.getServerDetailsFromPropertiesOnly(InstallerServiceImpl.java:1109)

      [rhq-installer-util-4.13.1.jar:4.13.1]

         at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:273) [rhq-installer-util-4.13.1.jar:

      4.13.1]

         at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:96) [rhq-installer-util-4.13.1.jar:4.13.1]

         at org.rhq.enterprise.server.installer.Installer.main(Installer.java:59) [rhq-installer-util-4.13.1.jar:4.13.1]

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_95]

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_95]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_95]

         at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_95]

         at org.jboss.modules.Module.run(Module.java:292) [jboss-modules.jar:1.3.0.Final-redhat-2]

         at org.jboss.modules.Main.main(Main.java:455) [jboss-modules.jar:1.3.0.Final-redhat-2]

      Caused by: java.net.UnknownHostException: ms-esmserv

         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) [rt.jar:1.7.0_95]

         at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922) [rt.jar:1.7.0_95]

         at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316) [rt.jar:1.7.0_95]

         at java.net.InetAddress.getLocalHost(InetAddress.java:1492) [rt.jar:1.7.0_95]

         ... 10 more

      15:57:38,273 ERROR [org.rhq.enterprise.server.installer.Installer] The installer will now exit due to previous errors: java.lang

      .Exception: Server name is not preconfigured and could not be determined automatically

         at org.rhq.enterprise.server.installer.InstallerServiceImpl.getServerDetailsFromPropertiesOnly(InstallerServiceImpl.java:1112)

      [rhq-installer-util-4.13.1.jar:4.13.1]

         at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:273) [rhq-installer-util-4.13.1.jar:

      4.13.1]

         at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:96) [rhq-installer-util-4.13.1.jar:4.13.1]

         at org.rhq.enterprise.server.installer.Installer.main(Installer.java:59) [rhq-installer-util-4.13.1.jar:4.13.1]

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_95]

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_95]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_95]

         at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_95]

         at org.jboss.modules.Module.run(Module.java:292) [jboss-modules.jar:1.3.0.Final-redhat-2]

         at org.jboss.modules.Main.main(Main.java:455) [jboss-modules.jar:1.3.0.Final-redhat-2]

      15:57:43,315 INFO  [org.rhq.server.control.command.Install] Still waiting to run the server installer...

       

      Is the any way to resolve this issue?

       

      Regards

      Conor