mohamed-taman / Springy-Store-Microservices

Springy Store is a conceptual simple μServices-based project using the latest cutting-edge technologies, to demonstrate how the Store services are created to be a cloud-native and 12-factor app agnostic. Those μServices are developed based on Spring Boot & Cloud framework that implements cloud-native intuitive, design patterns, and best practices.

Home Page:https://mohamed-taman.github.io/Springy-Store-Microservices/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If I start each services manully,what is the right order?

zsunpl opened this issue · comments

I think this job is awesome!I try to test this project in windows 10,I don’t use docker。I want to start the services manully,but I always got errors。Although I have installed all the database which it needed。

2020-08-04 23:41:31.870 DEBUG [eureka-server,5f2981abc5a67d28ee164203ab03212b,ee164203ab03212b] 17548 --- [nio-8761-exec-8] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 401
2020-08-04 23:41:31.870 DEBUG [eureka-server,,] 17548 --- [get_localhost-2] c.n.d.shared.MonitoredConnectionManager : Released connection is reusable.
2020-08-04 23:41:31.870 DEBUG [eureka-server,,] 17548 --- [get_localhost-2] c.n.d.shared.NamedConnectionPool : Releasing connection [{}->http://localhost:8761][null]
2020-08-04 23:41:31.870 DEBUG [eureka-server,,] 17548 --- [get_localhost-2] c.n.d.shared.NamedConnectionPool : Pooling connection [{}->http://localhost:8761][null]; keep alive for 60000 MILLISECONDS
2020-08-04 23:41:31.870 DEBUG [eureka-server,,] 17548 --- [get_localhost-2] c.n.d.shared.NamedConnectionPool : Notifying no-one, there are no waiting threads
2020-08-04 23:41:31.870 ERROR [eureka-server,,] 17548 --- [get_localhost-2] c.n.e.cluster.ReplicationTaskProcessor : Batch update failure with HTTP status code 401; discarding 2 replication tasks
2020-08-04 23:41:31.870 WARN [eureka-server,,] 17548 --- [get_localhost-2] c.n.eureka.util.batcher.TaskExecutors : Discarding 2 tasks of TaskBatchingWorker-target_localhost-2 due to permanent error
2020-08-04 23:41:32.494 INFO [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2020-08-04 23:41:32.494 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task
2020-08-04 23:41:32.494 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: lease expiration is currently disabled.
2020-08-04 23:41:34.495 INFO [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2020-08-04 23:41:34.495 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task
2020-08-04 23:41:34.495 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: lease expiration is currently disabled.
2020-08-04 23:41:35.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache
2020-08-04 23:41:35.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache for key : Application ALL_APPS_DELTA V2 JSON
2020-08-04 23:41:35.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache for key : Application ALL_APPS V2 JSON
2020-08-04 23:41:36.438 DEBUG [eureka-server,5f2981b0aacd169f31a707f8086ad554,31a707f8086ad554] 17548 --- [nio-8761-exec-9] c.n.e.registry.AbstractInstanceRegistry : Fetching applications registry with remote regions: false, Regions argument []
2020-08-04 23:41:36.438 DEBUG [eureka-server,5f2981b0aacd169f31a707f8086ad554,31a707f8086ad554] 17548 --- [nio-8761-exec-9] c.n.e.registry.AbstractInstanceRegistry : Processing override status using rule: [com.netflix.eureka.registry.rule.DownOrStartingRule, com.netflix.eureka.registry.rule.OverrideExistsRule, com.netflix.eureka.registry.rule.LeaseExistsRule, com.netflix.eureka.registry.rule.AlwaysMatchInstanceStatusRule]
2020-08-04 23:41:36.438 DEBUG [eureka-server,5f2981b0aacd169f31a707f8086ad554,31a707f8086ad554] 17548 --- [nio-8761-exec-9] c.n.e.registry.rule.LeaseExistsRule : There is already an existing lease with status UP for instance NPLMaster-PC:auth-server:9999
2020-08-04 23:41:36.438 DEBUG [eureka-server,5f2981b0aacd169f31a707f8086ad554,31a707f8086ad554] 17548 --- [nio-8761-exec-9] c.n.eureka.resources.InstanceResource : Found (Renew): AUTH-SERVER - NPLMaster-PC:auth-server:9999; reply status=200
2020-08-04 23:41:36.496 INFO [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2020-08-04 23:41:36.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task
2020-08-04 23:41:36.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: lease expiration is currently disabled.
2020-08-04 23:41:36.765 DEBUG [eureka-server,5f2981b0b44863a716f6629142a0e7fc,16f6629142a0e7fc] 17548 --- [io-8761-exec-10] c.n.e.registry.AbstractInstanceRegistry : Fetching applications registry with remote regions: false, Regions argument []
2020-08-04 23:41:36.765 DEBUG [eureka-server,5f2981b0b44863a716f6629142a0e7fc,16f6629142a0e7fc] 17548 --- [io-8761-exec-10] c.n.e.registry.AbstractInstanceRegistry : Processing override status using rule: [com.netflix.eureka.registry.rule.DownOrStartingRule, com.netflix.eureka.registry.rule.OverrideExistsRule, com.netflix.eureka.registry.rule.LeaseExistsRule, com.netflix.eureka.registry.rule.AlwaysMatchInstanceStatusRule]
2020-08-04 23:41:36.765 DEBUG [eureka-server,5f2981b0b44863a716f6629142a0e7fc,16f6629142a0e7fc] 17548 --- [io-8761-exec-10] c.n.e.registry.rule.LeaseExistsRule : There is already an existing lease with status UP for instance NPLMaster-PC:gateway:8443
2020-08-04 23:41:36.765 DEBUG [eureka-server,5f2981b0b44863a716f6629142a0e7fc,16f6629142a0e7fc] 17548 --- [io-8761-exec-10] c.n.eureka.resources.InstanceResource : Found (Renew): GATEWAY - NPLMaster-PC:gateway:8443; reply status=200
2020-08-04 23:41:36.946 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.MonitoredConnectionManager : Get connection: {}->http://localhost:8761, timeout = 200
2020-08-04 23:41:36.946 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.NamedConnectionPool : [{}->http://localhost:8761] total kept alive: 1, total issued: 0, total allocated: 1 out of 1000
2020-08-04 23:41:36.946 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.NamedConnectionPool : Getting free connection [{}->http://localhost:8761][null]
2020-08-04 23:41:36.948 DEBUG [eureka-server,5f2981b0957d2dac9d9e9e5d101569b4,9d9e9e5d101569b4] 17548 --- [nio-8761-exec-3] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for POST "/error", parameters={}
2020-08-04 23:41:36.948 DEBUG [eureka-server,5f2981b0957d2dac9d9e9e5d101569b4,9d9e9e5d101569b4] 17548 --- [nio-8761-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2020-08-04 23:41:36.949 DEBUG [eureka-server,5f2981b0957d2dac9d9e9e5d101569b4,9d9e9e5d101569b4] 17548 --- [nio-8761-exec-3] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/+json, application/json, application/+json, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/+xml;charset=UTF-8, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/+xml;charset=UTF-8]
2020-08-04 23:41:36.949 DEBUG [eureka-server,5f2981b0957d2dac9d9e9e5d101569b4,9d9e9e5d101569b4] 17548 --- [nio-8761-exec-3] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Tue Aug 04 23:41:36 CST 2020, status=401, error=Unauthorized, message=Unauthorized, path= (truncated)...]
2020-08-04 23:41:36.949 DEBUG [eureka-server,5f2981b0957d2dac9d9e9e5d101569b4,9d9e9e5d101569b4] 17548 --- [nio-8761-exec-3] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 401
2020-08-04 23:41:36.949 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.MonitoredConnectionManager : Released connection is reusable.
2020-08-04 23:41:36.949 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.NamedConnectionPool : Releasing connection [{}->http://localhost:8761][null]
2020-08-04 23:41:36.949 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.NamedConnectionPool : Pooling connection [{}->http://localhost:8761][null]; keep alive for 60000 MILLISECONDS
2020-08-04 23:41:36.949 DEBUG [eureka-server,,] 17548 --- [get_localhost-1] c.n.d.shared.NamedConnectionPool : Notifying no-one, there are no waiting threads
2020-08-04 23:41:36.949 ERROR [eureka-server,,] 17548 --- [get_localhost-1] c.n.e.cluster.ReplicationTaskProcessor : Batch update failure with HTTP status code 401; discarding 2 replication tasks
2020-08-04 23:41:36.949 WARN [eureka-server,,] 17548 --- [get_localhost-1] c.n.eureka.util.batcher.TaskExecutors : Discarding 2 tasks of TaskBatchingWorker-target_localhost-1 due to permanent error
2020-08-04 23:41:38.496 INFO [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2020-08-04 23:41:38.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task
2020-08-04 23:41:38.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: lease expiration is currently disabled.
2020-08-04 23:41:40.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache
2020-08-04 23:41:40.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache for key : Application ALL_APPS_DELTA V2 JSON
2020-08-04 23:41:40.020 DEBUG [eureka-server,,] 17548 --- [-CacheFillTimer] c.n.eureka.registry.ResponseCacheImpl : Updating the client cache from response cache for key : Application ALL_APPS V2 JSON
2020-08-04 23:41:40.496 INFO [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2020-08-04 23:41:40.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task
2020-08-04 23:41:40.496 DEBUG [eureka-server,,] 17548 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: lease expiration is currently disabled.
2020-08-04 23:41:41.516 DEBUG [eureka-server,5f2981b5a1132718ac76840144070bb5,ac76840144070bb5] 17548 --- [nio-8761-exec-4] c.n.e.registry.AbstractInstanceRegistry : Fetching applications registry with remote regions: false, Regions argument []
2020-08-04 23:41:41.516 DEBUG [eureka-server,5f2981b5a1132718ac76840144070bb5,ac76840144070bb5] 17548 --- [nio-8761-exec-4] c.n.e.registry.AbstractInstanceRegistry : Processing override status using rule: [com.netflix.eureka.registry.rule.DownOrStartingRule, com.netflix.eureka.registry.rule.OverrideExistsRule, com.netflix.eureka.registry.rule.LeaseExistsRule, com.netflix.eureka.registry.rule.AlwaysMatchInstanceStatusRule]
2020-08-04 23:41:41.516 DEBUG [eureka-server,5f2981b5a1132718ac76840144070bb5,ac76840144070bb5] 17548 --- [nio-8761-exec-4] c.n.e.registry.rule.LeaseExistsRule : There is already an existing lease with status UP for instance NPLMaster-PC:auth-server:9999
2020-08-04 23:41:41.516 DEBUG [eureka-server,5f2981b5a1132718ac76840144070bb5,ac76840144070bb5] 17548 --- [nio-8761-exec-4] c.n.eureka.resources.InstanceResource : Found (Renew): AUTH-SERVER - NPLMaster-PC:auth-server:9999; reply status=200
2020-08-04 23:41:41.842 DEBUG [eureka-server,5f2981b5d912c8ac78acf965c8afca34,78acf965c8afca34] 17548 --- [nio-8761-exec-5] c.n.e.registry.AbstractInstanceRegistry : Fetching applications registry with remote regions: false, Regions argument []
2020-08-04 23:41:41.842 DEBUG [eureka-server,5f2981b5d912c8ac78acf965c8afca34,78acf965c8afca34] 17548 --- [nio-8761-exec-5] c.n.e.registry.AbstractInstanceRegistry : Processing override status using rule: [com.netflix.eureka.registry.rule.DownOrStartingRule, com.netflix.eureka.registry.rule.OverrideExistsRule, com.netflix.eureka.registry.rule.LeaseExistsRule, com.netflix.eureka.registry.rule.AlwaysMatchInstanceStatusRule]
2020-08-04 23:41:41.842 DEBUG [eureka-server,5f2981b5d912c8ac78acf965c8afca34,78acf965c8afca34] 17548 --- [nio-8761-exec-5] c.n.e.registry.rule.LeaseExistsRule : There is already an existing lease with status UP for instance NPLMaster-PC:gateway:8443
2020-08-04 23:41:41.842 DEBUG [eureka-server,5f2981b5d912c8ac78acf965c8afca34,78acf965c8afca34] 17548 --- [nio-8761-exec-5] c.n.eureka.resources.InstanceResource : Found (Renew): GATEWAY - NPLMaster-PC:gateway:8443; reply status=200
2020-08-04 23:41:42.019 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.MonitoredConnectionManager : Get connection: {}->http://localhost:8761, timeout = 200
2020-08-04 23:41:42.019 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.NamedConnectionPool : [{}->http://localhost:8761] total kept alive: 1, total issued: 0, total allocated: 1 out of 1000
2020-08-04 23:41:42.019 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.NamedConnectionPool : Getting free connection [{}->http://localhost:8761][null]
2020-08-04 23:41:42.021 DEBUG [eureka-server,5f2981b6077ec3a4e7164b7fd2789e0e,e7164b7fd2789e0e] 17548 --- [nio-8761-exec-7] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for POST "/error", parameters={}
2020-08-04 23:41:42.021 DEBUG [eureka-server,5f2981b6077ec3a4e7164b7fd2789e0e,e7164b7fd2789e0e] 17548 --- [nio-8761-exec-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2020-08-04 23:41:42.022 DEBUG [eureka-server,5f2981b6077ec3a4e7164b7fd2789e0e,e7164b7fd2789e0e] 17548 --- [nio-8761-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/+json, application/json, application/+json, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/+xml;charset=UTF-8, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/+xml;charset=UTF-8]
2020-08-04 23:41:42.022 DEBUG [eureka-server,5f2981b6077ec3a4e7164b7fd2789e0e,e7164b7fd2789e0e] 17548 --- [nio-8761-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Tue Aug 04 23:41:42 CST 2020, status=401, error=Unauthorized, message=Unauthorized, path= (truncated)...]
2020-08-04 23:41:42.022 DEBUG [eureka-server,5f2981b6077ec3a4e7164b7fd2789e0e,e7164b7fd2789e0e] 17548 --- [nio-8761-exec-7] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 401
2020-08-04 23:41:42.022 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.MonitoredConnectionManager : Released connection is reusable.
2020-08-04 23:41:42.022 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.NamedConnectionPool : Releasing connection [{}->http://localhost:8761][null]
2020-08-04 23:41:42.022 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.NamedConnectionPool : Pooling connection [{}->http://localhost:8761][null]; keep alive for 60000 MILLISECONDS
2020-08-04 23:41:42.022 DEBUG [eureka-server,,] 17548 --- [et_localhost-12] c.n.d.shared.NamedConnectionPool : Notifying no-one, there are no waiting threads
2020-08-04 23:41:42.022 ERROR [eureka-server,,] 17548 --- [et_localhost-12] c.n.e.cluster.ReplicationTaskProcessor : Batch update failure with HTTP status code 401; discarding 2 replication tasks
2020-08-04 23:41:42.022 WARN [eureka-server,,] 17548 --- [et_localhost-12] c.n.eureka.util.batcher.TaskExecutors : Discarding 2 tasks of TaskBatchingWorker-target_localhost-12 due to permanent error

@zsunpl Thanks for your feedback.

Although I will modify the script to make all services also run manually without docker,
Here is the correct order or running the services:

  1. Config Server.
  2. Auth Server.
  3. Service Discovery (Eureka).
  4. Databases.
  5. All the other services in any order it doesn't matter.