Questions tagged netflix-eureka

Explore the latest questions and answers asked by our top developers.

Getting connection error when I am running Eureka server and Eureka clients

This is Dockerfile for Eureka server FROM openjdk:16-jdk-alpine COPY target/EurekaDiscoveryService-0.0.1-SNAPSHOT.jar EurekaDiscoveryServer.jar ENTRYPOINT ["java","-jar","EurekaDiscoveryServer.jar"] This is Dockerfile for Eureka client FROM openjdk:16-jdk-alpine COPY target/ApiGateway-0.0.1-SNAPSHOT.jar ApiGateway.jar ENTRYPOINT ["java","-jar","ApiGateway.jar"] This is file for Eureka server server.port=8010 eureka.client.registerWithEureka=false eureka.client.fetchRegistry=false eureka.client.serviceUrl.defaultZone = http://localhost:8010/eureka eureka.instance.prefer-ip-address=true This is for Eureka client server.port=8082 eureka.client.service-url.defaultZone= I am using -docker run […]

.Net Core Dockerized WebAPI failing to register with Eureka server

I have a .Net Core 3.1 WebAPI running as a Docker container + Eureka server running as Docker also. When I run the API from Visual Studio it registers successfully with the Eureka Docker instance and I can see the service in Eureka console. But once I dockerize the API and run it I am […]

spring eureka + spring gateway cloud error when executed in docker

I have a simple project, a spring cloud gateway, an eureka naming service and a microservice. when I launch the applications on my pc (not in the container) I don’t have problems, but if I launch the same with docker compose, when I execute a rest api I obtain the following error:$AnnotatedConnectException: finishConnect(..) failed: […]

Dockerized eureka discovery server registers the services but when trying to use they don’t work

I have implemented a discovery service with netflix eureka and I have dockerized it. Here is the eureka configuration. eureka: client: register-with-eureka: false fetch-registry: false service-url: defaultZone: http://discovery:8761/eureka server: port: 8761 After running this eureka service and other services of my project, other services are registering with eureka. In the eureka dashboard it shows my […]

Cannot create multiplte instances using netflix eureka

I deeploy my spring boot microservice project via docker-compose. I have three serivices, which the first one is a eureka server, the second one is config server and the last client service. When I run it both config service and client service are registered into one config service name Eureka instance here is my config […]

How to use in RestTemplate url on a docker container?

I have two spring boot projects – album-service on port 8081 and song-service on port 8082 . song-service has an entity class Song with the field albumId, which happens to be the primary key of the entity class Album in album-service. I have a particular line in my service class SongService which returns an Album […]

Object reference not set to an instance of an object at line app.UseDiscoveryClient() ; in Startup.cs file in .NET Core API

My .NET Core API is using eureka server as a discovery client , in which when I dockerized the web API then running/debugging the project as a Docker shows me this exception at (app.UseDiscoveryClient()) in Configure method. My Startup file is : [Start-Up] [Exception] PS: Reputation is less than 10 anyone set images ! Source: […]

Categorised as, docker, netflix-eureka, ocelot Tagged , , ,

Eureka Server Status URL is showing un-identified hostname

I ran into a problem, where I am trying to run eureka discovery client-server (both) inside Docker container. The Status URL of a client instance is showing random alphanumeric {hostname}. However the instance is running on localhost perfectly. What should I do in order to change this random hostname to localhost. I am observing the […]

By ShubhamWanne
Categorised as docker, netflix-eureka, spring-boot Tagged , ,

Eureka instances couldn’t connect to Discovery service when ran inside docker

I’m getting following error while trying to start eureka instance from docker container; 2021-04-26 13:20:51.139 INFO 1 — [ main] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl=’http://localhost:8761/eureka/}, Connection refused (Connection refused) stacktrace=com.sun.jersey.api.client.ClientHandlerException: Connection refused (Connection refused) at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle( at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle( at at com.sun.jersey.api.client.Client.handle( at com.sun.jersey.api.client.WebResource.handle( at com.sun.jersey.api.client.WebResource.access$200( at com.sun.jersey.api.client.WebResource$Builder.get( at at […]

Eureka server does not register services separately

I am running spring boot services using docker-compose. project link Eureka server Two services are registered in one instance instead of each one separated instances. @SpringBootApplication @EnableEurekaClient public class OrganizationApplication { @Bean @LoadBalanced public RestTemplate getRestTemplate(){ RestTemplate restTemplate = new RestTemplate(); return restTemplate; } public static void main(String[] args) {, args); }} application.yml eureka: […]

1 2 3 4

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us