Thanks Markus. Its works fine 😊 On Tue, Jun 26, 2018, 1:10 PM Markus Geiss <[email protected]> wrote:
> Hey Courage, > > can you set eureka.registration.enabled to false because identity is just a > client not a eureka server. Setting this to true will lead to identity > trying to register itself as a eureka server which will fail. > > Cheers > > Markus > > On Tue, Jun 26, 2018 at 12:02 AM Courage Angeh <[email protected]> > wrote: > > > Hi Markus, > > > > Sorry for the delay in replying. > > I add the leading / to get http://172.16.238.2:8761/eureka/ and I still > > get the same error. > > Also, when I opened Eureka http://172.16.238.2:8761 > > <http://172.16.238.2:8761/eureka/> on my browser and I see the identity > > microservice registered. > > Attached to this mail is an image of the Eureka dashboard > > > > Thanks, > > Courage > > > > > > On Mon, Jun 25, 2018 at 9:47 PM Markus Geiss <[email protected]> wrote: > > > >> and can you add a / at the end of the eureka endpoint in the service > >> configuration for the client ... we and all samples use the / at the end > >> of > >> the configured URL > >> > >> http://172.16.238.2:8761/eureka/ > >> > >> Cheers > >> > >> Markus > >> > >> On Mon, Jun 25, 2018, 22:41 Markus Geiss <[email protected]> > wrote: > >> > >> > 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 <[email protected]> > >> 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 <[email protected]> > wrote: > >> >> > >> >> > ok ... and how are the services configured to reach eureka? > >> >> > > >> >> > On Mon, Jun 25, 2018, 21:07 Courage Angeh <[email protected]> > >> >> 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 <[email protected]> > >> 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 < > >> [email protected]> > >> >> > > 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 > >> >> > > > > > >> >> > > > > >> >> > > > >> >> > > >> >> > >> > > >> > > >
