3 Comments

  1. really help full for me, thx alot. the most important about
    If you’re getting your Eureka instance as an ‘unavailable replica’, it might be due to one of these reasons:

    You didn’t use the same application name in both instances (pay attention to the EUREKA-CLUSTER in the screenshot, what do you see?).
    You didn’t use the context /eureka in your defaultZone URLs.
    You are using the same hostname for both instances (e.g. localhost). Remember that they must be different.
    The hostnames can’t be mapped by your computer (did you include them in your hosts file?).

  2. 2018-05-08 20:15:24.551 INFO 1748 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
    2018-05-08 20:15:25.450 INFO 1748 --- [ main] utoConfigurationReportLoggingInitializer :
    Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
    2018-05-08 20:15:25.459 ERROR 1748 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
    APPLICATION FAILED TO START
    Description:
    The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
    Action:
    Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.

    I am getting above error .i have made changes as per given.it picks default 8080 port unfortunately. need your help

    1. Author

      I’ve sent you an email with the possible solution. I think you’re not running the app passing the profile (peer1 or peer2), thus Spring Boot is taking the default port.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.