Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1531

Following instructions at wildfly-swarm-example/ribbon-consul doesn't yield desirable result

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.8.1, 2017.9.4
    • Fix Version/s: 2.1.0.Final
    • Component/s: examples
    • Labels:
      None

      Description

      I am new to wildfly-swarm trying to go though examples.

      Steps described in Readme.md of this example produce:

      2017-08-25 20:49:41,298 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying time.war
      2017-08-25 20:49:41,325 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "time.war" (runtime-name: "time.war")
      2017-08-25 20:49:42,611 WARN [org.jboss.as.dependency.private] (MSC service thread 1-7) WFLYSRV0018: Deployment "deployment.time.war" is using a private module ("io.netty:main") which may be changed or removed in future versions without notice.
      2017-08-25 20:49:42,731 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting
      2017-08-25 20:49:42,828 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service swarm.topology.register.time.http: org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
      at org.wildfly.swarm.topology.deployment.RegistrationAdvertiser.start(RegistrationAdvertiser.java:79)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: com.orbitz.consul.ConsulException: Invalid service address
      at com.orbitz.consul.AgentClient.register(AgentClient.java:180)
      at com.orbitz.consul.AgentClient.register(AgentClient.java:184)
      at org.wildfly.swarm.topology.consul.runtime.Advertiser.advertise(Advertiser.java:65)
      at org.wildfly.swarm.topology.consul.runtime.ConsulTopologyConnector.advertise(ConsulTopologyConnector.java:60)
      at org.wildfly.swarm.topology.deployment.RegistrationAdvertiser.start(RegistrationAdvertiser.java:77)
      ... 5 more

      2017-08-25 20:49:42,918 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool – 5) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.wildfly.swarm.generated.WildFlySwarmDefaultJAXRSApplication
      2017-08-25 20:49:42,934 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool – 5) WFLYUT0021: Registered web context: /
      2017-08-25 20:49:42,969 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "time.war")) - failure description: {
      "WFLYCTL0080: Failed services" =>

      {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address Caused by: com.orbitz.consul.ConsulException: Invalid service address"}

      ,
      "WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],
      "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      }
      2017-08-25 20:49:42,971 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "time.war" was rolled back with the following failure message:
      {
      "WFLYCTL0080: Failed services" =>

      {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address Caused by: com.orbitz.consul.ConsulException: Invalid service address"}

      ,
      "WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],
      "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      }
      2017-08-25 20:49:42,977 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool – 5) WFLYUT0022: Unregistered web context: /
      2017-08-25 20:49:42,983 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0019: Host default-host stopping
      2017-08-25 20:49:42,999 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment time.war (runtime-name: time.war) in 28ms
      2017-08-25 20:49:43,000 INFO [org.jboss.as.controller] (main) WFLYCTL0183: Service status report
      WFLYCTL0186: Services which failed to start: service swarm.topology.register.time.http

      2017-08-25 20:49:43,002 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      2017-08-25 20:49:43,002 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2017-08-25 20:49:43,002 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2017-08-25 20:49:43,002 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2017-08-25 20:49:43,003 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
      2017-08-25 20:49:43,003 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      2017-08-25 20:49:43,003 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.main(MainInvoker.java:83)
      2017-08-25 20:49:43,003 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" =>

      {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address 2017-08-25 20:49:43,003 ERROR [stderr] (main) Caused by: com.orbitz.consul.ConsulException: Invalid service address"}

      ,"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
      2017-08-25 20:49:43,003 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
      2017-08-25 20:49:43,004 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
      2017-08-25 20:49:43,004 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
      2017-08-25 20:49:43,004 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:464)
      2017-08-25 20:49:43,004 ERROR [stderr] (main) at org.wildfly.swarm.examples.netflix.ribbon.time.Main.main(Main.java:19)
      2017-08-25 20:49:43,004 ERROR [stderr] (main) ... 6 more
      2017-08-25 20:49:43,004 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" =>

      {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address 2017-08-25 20:49:43,005 ERROR [stderr] (main) Caused by: com.orbitz.consul.ConsulException: Invalid service address"}

      ,"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
      2017-08-25 20:49:43,005 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
      2017-08-25 20:49:43,005 ERROR [stderr] (main) ... 10 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rinmalavi Marin Vila
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: