Cannot register microservice successfully









up vote
0
down vote

favorite












registry, uaa and gateway running successfully in one computer, a microservice in another computer, when I use "sudo docker-compose -f app.yml up" to start the microservice, it has below exception:



2018-11-10 04:05:00.954 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1541822700953 with initial instances count: 2
2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - Re-registering apps/HDSHORTVIDEO
2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456: registering service...
2018-11-10 04:05:16.171 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - registration status: 204
2018-11-10 04:06:00.925 WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out

java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
docker_hdshortvideo-app_1 exited with code 1


The log from registry is as below:



2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: lease doesn't exist, registering resource: HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.eureka.resources.InstanceResource : Not Found (Renew): HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
2018-11-10 04:05:16.839 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration
2018-11-10 04:10:34.786 WARN 1 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
2018-11-10 04:10:36.853 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration


part of application.yml is as below:



eureka:
client:
enabled: true
healthcheck:
enabled: true
fetch-registry: true
register-with-eureka: true
instance-info-replication-interval-seconds: 10
registry-fetch-interval-seconds: 10
instance:
appname: HDShortVideo
instanceId: HDShortVideo:$spring.application.instance-id:$random.value
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 10


and replace SEMAPHORE with thread:



hystrix:
command:
default:
execution:
timeout:
enabled: false
isolation:
thread:
timeoutInMilliseconds: 10000


On registry:8761 interface, the microservice's status is STARTING with background RED.



Any idea?










share|improve this question

























    up vote
    0
    down vote

    favorite












    registry, uaa and gateway running successfully in one computer, a microservice in another computer, when I use "sudo docker-compose -f app.yml up" to start the microservice, it has below exception:



    2018-11-10 04:05:00.954 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1541822700953 with initial instances count: 2
    2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - Re-registering apps/HDSHORTVIDEO
    2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456: registering service...
    2018-11-10 04:05:16.171 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - registration status: 204
    2018-11-10 04:06:00.925 WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out

    java.util.concurrent.TimeoutException: null
    at java.util.concurrent.FutureTask.get(FutureTask.java:205)
    at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    docker_hdshortvideo-app_1 exited with code 1


    The log from registry is as below:



    2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: lease doesn't exist, registering resource: HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
    2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.eureka.resources.InstanceResource : Not Found (Renew): HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
    2018-11-10 04:05:16.839 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration
    2018-11-10 04:10:34.786 WARN 1 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
    2018-11-10 04:10:36.853 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration


    part of application.yml is as below:



    eureka:
    client:
    enabled: true
    healthcheck:
    enabled: true
    fetch-registry: true
    register-with-eureka: true
    instance-info-replication-interval-seconds: 10
    registry-fetch-interval-seconds: 10
    instance:
    appname: HDShortVideo
    instanceId: HDShortVideo:$spring.application.instance-id:$random.value
    lease-renewal-interval-in-seconds: 5
    lease-expiration-duration-in-seconds: 10


    and replace SEMAPHORE with thread:



    hystrix:
    command:
    default:
    execution:
    timeout:
    enabled: false
    isolation:
    thread:
    timeoutInMilliseconds: 10000


    On registry:8761 interface, the microservice's status is STARTING with background RED.



    Any idea?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      registry, uaa and gateway running successfully in one computer, a microservice in another computer, when I use "sudo docker-compose -f app.yml up" to start the microservice, it has below exception:



      2018-11-10 04:05:00.954 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1541822700953 with initial instances count: 2
      2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - Re-registering apps/HDSHORTVIDEO
      2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456: registering service...
      2018-11-10 04:05:16.171 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - registration status: 204
      2018-11-10 04:06:00.925 WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out

      java.util.concurrent.TimeoutException: null
      at java.util.concurrent.FutureTask.get(FutureTask.java:205)
      at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      docker_hdshortvideo-app_1 exited with code 1


      The log from registry is as below:



      2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: lease doesn't exist, registering resource: HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.eureka.resources.InstanceResource : Not Found (Renew): HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:05:16.839 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration
      2018-11-10 04:10:34.786 WARN 1 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:10:36.853 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration


      part of application.yml is as below:



      eureka:
      client:
      enabled: true
      healthcheck:
      enabled: true
      fetch-registry: true
      register-with-eureka: true
      instance-info-replication-interval-seconds: 10
      registry-fetch-interval-seconds: 10
      instance:
      appname: HDShortVideo
      instanceId: HDShortVideo:$spring.application.instance-id:$random.value
      lease-renewal-interval-in-seconds: 5
      lease-expiration-duration-in-seconds: 10


      and replace SEMAPHORE with thread:



      hystrix:
      command:
      default:
      execution:
      timeout:
      enabled: false
      isolation:
      thread:
      timeoutInMilliseconds: 10000


      On registry:8761 interface, the microservice's status is STARTING with background RED.



      Any idea?










      share|improve this question













      registry, uaa and gateway running successfully in one computer, a microservice in another computer, when I use "sudo docker-compose -f app.yml up" to start the microservice, it has below exception:



      2018-11-10 04:05:00.954 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1541822700953 with initial instances count: 2
      2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - Re-registering apps/HDSHORTVIDEO
      2018-11-10 04:05:16.048 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456: registering service...
      2018-11-10 04:05:16.171 INFO 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456 - registration status: 204
      2018-11-10 04:06:00.925 WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out

      java.util.concurrent.TimeoutException: null
      at java.util.concurrent.FutureTask.get(FutureTask.java:205)
      at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      docker_hdshortvideo-app_1 exited with code 1


      The log from registry is as below:



      2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: lease doesn't exist, registering resource: HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:05:16.045 WARN 1 --- [ XNIO-2 task-4] c.n.eureka.resources.InstanceResource : Not Found (Renew): HDSHORTVIDEO - HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:05:16.839 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration
      2018-11-10 04:10:34.786 WARN 1 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for HDSHORTVIDEO/HDShortVideo:2e3a0d7dfdcf1244b2a0c66fcafef456
      2018-11-10 04:10:36.853 INFO 1 --- [pool-5-thread-1] i.g.j.r.service.ZuulUpdaterService : Zuul routes have changed - refreshing the configuration


      part of application.yml is as below:



      eureka:
      client:
      enabled: true
      healthcheck:
      enabled: true
      fetch-registry: true
      register-with-eureka: true
      instance-info-replication-interval-seconds: 10
      registry-fetch-interval-seconds: 10
      instance:
      appname: HDShortVideo
      instanceId: HDShortVideo:$spring.application.instance-id:$random.value
      lease-renewal-interval-in-seconds: 5
      lease-expiration-duration-in-seconds: 10


      and replace SEMAPHORE with thread:



      hystrix:
      command:
      default:
      execution:
      timeout:
      enabled: false
      isolation:
      thread:
      timeoutInMilliseconds: 10000


      On registry:8761 interface, the microservice's status is STARTING with background RED.



      Any idea?







      jhipster netflix-eureka






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 10 at 4:45









      James Hao

      125111




      125111



























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236062%2fcannot-register-microservice-successfully%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236062%2fcannot-register-microservice-successfully%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo