osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error communication to Eureka


Can you try to access the configured URL of eureka with a browser to see if
it is up, running and reachable ...

this link should work

http://172.16.238.2:8761/eureka

On Mon, Jun 25, 2018, 21:33 Courage Angeh <courageangeh@xxxxxxxxx> wrote:

> Here is the docker_file for a sample Finerect CN microservice (identity)
> FROM openjdk:8-jdk-alpine
>
> ARG identity_port=2021
>
> ENV server.max-http-header-size=16384 \
> bonecp.partitionCount=1 \
> bonecp.maxConnectionsPerPartition=4 \
> bonecp.minConnectionsPerPartition=1 \
> bonecp.acquireIncrement=1 \
> cassandra.clusterName="Test Cluster" \
> cassandra.contactPoints=172.16.238.5:9042 \
> cassandra.keyspace=seshat \
> cassandra.cl.read=ONE \
> cassandra.cl.write=ONE \
> cassandra.cl.delete=ONE \
> mariadb.driverClass=org.mariadb.jdbc.Driver \
> mariadb.database=seshat \
> mariadb.host=172.16.238.4 \
> mariadb.port=3306 \
> mariadb.user=root \
> mariadb.password=mysql \
> spring.cloud.config.enabled=false \
> flyway.enabled=false \
> feign.hystrix.enabled=false \
> ribbon.eureka.enabled=false \
> eureka.client.serviceUrl.defaultZone=http://172.16.238.2:8761/eureka \
> spring.cloud.discovery.enabled=true \
> eureka.client.fetchRegistry=true \
> eureka.registration.enabled=true \
> eureka.instance.leaseRenewalIntervalInSeconds=1 \
> #eureka.initialInstanceInfoReplicationIntervalSeconds=0 \
> eureka.client.instanceInfoReplicationIntervalSeconds=1 \
> activemq.brokerUrl=http://172.16.238.3:61616 \
> ribbon.eureka.enabled=true \
> system.initialclientid=service-runner \
> spring.profiles.active=production
>
> WORKDIR /tmp
> COPY identity-service-boot-0.1.0-BUILD-SNAPSHOT.jar .
> ENV spring.application.name="identity-v1" \
> server.port=$identity_port \
> server.contextPath="/identity-v1"
>
> CMD ["java", "-jar", "identity-service-boot-0.1.0-BUILD-SNAPSHOT.jar"]
>
>
> On Mon, Jun 25, 2018 at 8:23 PM Markus Geiss <mage@xxxxxxxxxx> wrote:
>
> > ok ... and how are the services configured to reach eureka?
> >
> > On Mon, Jun 25, 2018, 21:07 Courage Angeh <courageangeh@xxxxxxxxx>
> wrote:
> >
> > > Hi Markus,
> > >
> > > I am not using demo server. I am running each microservice separately
> for
> > > production as required by the GSoC project.
> > > Here is the yaml file for the Eureka server:
> > >
> > > server:
> > >   port: 8761
> > > eureka:
> > >   client:
> > >     register-with-eureka: false
> > >     fetch-registry: false
> > >   server:
> > >     enable-self-preservation: false
> > >
> > >
> > > Thanks,
> > > Courage.
> > >
> > > On Mon, Jun 25, 2018 at 7:53 PM Markus Geiss <mage@xxxxxxxxxx> wrote:
> > >
> > > > Hey Courage,
> > > >
> > > > can you share the settings in the application.yml file that points to
> > > > eureka.
> > > >
> > > > Seems like there is a mismatch in the configuration, but to be sure
> it
> > > > woulde be good to see the see the config.
> > > >
> > > > In addition I'm not 100% sure if TestEnvironment used by the demo
> > server
> > > is
> > > > overriding this.
> > > >
> > > > Cheers
> > > >
> > > > Markus
> > > >
> > > > On Mon, Jun 25, 2018, 20:40 Courage Angeh <courageangeh@xxxxxxxxx>
> > > wrote:
> > > >
> > > > > Hi Alek,
> > > > >
> > > > > Hope this message reaches you well.
> > > > > I know you have have been working on setting up Fineract CN on demo
> > > > server
> > > > > and you are using Docker.
> > > > > I am facing alittle problem with the communication between a
> > > > containerized
> > > > > Eureka server and a containerized Fineract microservice.
> > > > > Here is the link to the error that I get,
> > > https://pastebin.com/UgQZhmSt
> > > > >
> > > > > Here is the section of my docker-compose file that configures the
> > > Eureka
> > > > > server.
> > > > >
> > > > > eureka:
> > > > > build: ../eureka_server
> > > > > container_name: eureka
> > > > > ports:
> > > > > - "8761:8761"
> > > > > networks:
> > > > > app_net:
> > > > > ipv4_address: 172.16.238.2
> > > > >
> > > > >
> > > > > I will appreciate your help. Or that of anyone who can help.
> > > > >
> > > > > Thanks,
> > > > > Courage
> > > > >
> > > >
> > >
> >
>