springcloud配置中心config上线时配置文件被其他服务无法读取的两种情况

错误日志:1. Cannot clone or checkout repository: http://xxxxx:xxxx/xxxx/xxx-config.git"

                  2. You need to configure a uri for the git repository

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

今天修改配置中心其他服务配置文件然后准备上线部署jar包时,遇到了一个问题差点熬了个通宵。

由于公司上任前辈部署时用的是Git仓库作为配置文件存储库,于是乎我也就跟着弄application.yml配置文件如下:

#begin

server: 
  # 端口
  port: 8600

spring:  
  application: 
    name: spring-cloud-config   #config名称
  cloud: 
    config: 
      server: 
        git: 
          uri: https:     #git地址
          username:     # git账号  公开仓库可以不用配置账号密码
          password:     #git密码
          force-pull: true 
#actuator端口 
management:  
  endpoints:
    web:
      base-path: /actuator
      exposure:
        include: refresh,health,info
  endpoint:  
    health: 
      show-details: always
          
#服务注册
eureka:
  client: 
    serviceUrl: 
      defaultZone: http://IP:端口/eureka/      #注册中心ip和端口一定要正确
    healthcheck: 
      enabled: true
  instance: 
    preferIpAddress: true
    lease-renewal-interval-in-seconds: 10 #,每隔10秒发送一次心跳
    lease-expiration-duration-in-seconds: 25 #,25秒内无心跳则剔除
    
#信息
info: 
  app: 
    name: "jnyc-microservice-config"
    description: "jnyc-microserice-config" 
    version: "0.0.1-SNAPSHOT"
    spring-boot-version: "0.0.1-SNAPSHOT" 
    
#end
  
      

后来项目打包上线时,发现config注册到eureka上了,但是状态是这样的,查看其它服务日志发现都没找到配置中心一直在请求

 config错误日志为:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.2.RELEASE)

2020-06-15 19:08:31.732  INFO 35895 --- [           main] c.microservice.config.ConfigApplication  : The following profiles are active: pro
2020-06-15 19:08:31.746  INFO 35895 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3224f60b: startup date [Mon Jun 15 19:08:31 CST 2020]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7dc36524
2020-06-15 19:08:32.877  INFO 35895 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=552e85db-1ff1-3df5-ba1a-2bee2e66e475
2020-06-15 19:08:32.898  INFO 35895 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2020-06-15 19:08:33.043  INFO 35895 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$9b0dbd2c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-15 19:08:33.404  INFO 35895 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8600 (http)
2020-06-15 19:08:33.436  INFO 35895 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-06-15 19:08:33.436  INFO 35895 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.31
2020-06-15 19:08:33.447  INFO 35895 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
2020-06-15 19:08:33.617  INFO 35895 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-06-15 19:08:33.618  INFO 35895 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1872 ms
2020-06-15 19:08:33.952  WARN 35895 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2020-06-15 19:08:33.953  INFO 35895 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-06-15 19:08:33.968  INFO 35895 --- [ost-startStop-1] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@169ebc08
2020-06-15 19:08:35.206  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Servlet dispatcherServlet mapped to [/]
2020-06-15 19:08:35.211  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2020-06-15 19:08:35.211  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2020-06-15 19:08:35.211  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2020-06-15 19:08:35.211  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2020-06-15 19:08:35.211  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpTraceFilter' to: [/*]
2020-06-15 19:08:35.212  INFO 35895 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webMvcMetricsFilter' to: [/*]
2020-06-15 19:08:35.296  WARN 35895 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2020-06-15 19:08:35.296  INFO 35895 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-06-15 19:08:35.389  INFO 35895 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2020-06-15 19:08:35.663  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3224f60b: startup date [Mon Jun 15 19:08:31 CST 2020]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7dc36524
2020-06-15 19:08:35.758  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/]}" onto public java.lang.String com.microservice.config.api.HomeController.index()
2020-06-15 19:08:35.761  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2020-06-15 19:08:35.761  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2020-06-15 19:08:35.768  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.encrypt(java.lang.String,org.springframework.http.MediaType)
2020-06-15 19:08:35.769  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt/{name}/{profiles}],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.encrypt(java.lang.String,java.lang.String,java.lang.String,org.springframework.http.MediaType)
2020-06-15 19:08:35.769  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/decrypt/{name}/{profiles}],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.decrypt(java.lang.String,java.lang.String,java.lang.String,org.springframework.http.MediaType)
2020-06-15 19:08:35.769  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/decrypt],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.decrypt(java.lang.String,org.springframework.http.MediaType)
2020-06-15 19:08:35.769  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt/status],methods=[GET]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.cloud.config.server.encryption.EncryptionController.status()
2020-06-15 19:08:35.769  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/key],methods=[GET]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.getPublicKey()
2020-06-15 19:08:35.770  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/key/{name}/{profiles}],methods=[GET]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.getPublicKey(java.lang.String,java.lang.String)
2020-06-15 19:08:35.775  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.properties],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.properties(java.lang.String,java.lang.String,boolean) throws java.io.IOException
2020-06-15 19:08:35.775  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profiles:.*[^-].*}],methods=[GET]}" onto public org.springframework.cloud.config.environment.Environment org.springframework.cloud.config.server.environment.EnvironmentController.defaultLabel(java.lang.String,java.lang.String)
2020-06-15 19:08:35.775  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.yml || /{name}-{profiles}.yaml],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.yaml(java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2020-06-15 19:08:35.776  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.properties],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledProperties(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.io.IOException
2020-06-15 19:08:35.776  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.json],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.jsonProperties(java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2020-06-15 19:08:35.776  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.json],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledJsonProperties(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2020-06-15 19:08:35.776  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.yml || /{label}/{name}-{profiles}.yaml],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledYaml(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2020-06-15 19:08:35.776  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profiles}/{label:.*}],methods=[GET]}" onto public org.springframework.cloud.config.environment.Environment org.springframework.cloud.config.server.environment.EnvironmentController.labelled(java.lang.String,java.lang.String,java.lang.String)
2020-06-15 19:08:35.780  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profile}/**],methods=[GET],params=[useDefaultLabel]}" onto public java.lang.String org.springframework.cloud.config.server.resource.ResourceController.retrieve(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest,boolean) throws java.io.IOException
2020-06-15 19:08:35.780  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profile}/{label}/**],methods=[GET]}" onto public java.lang.String org.springframework.cloud.config.server.resource.ResourceController.retrieve(java.lang.String,java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest,boolean) throws java.io.IOException
2020-06-15 19:08:35.780  INFO 35895 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profile}/{label}/**],methods=[GET],produces=[application/octet-stream]}" onto public synchronized byte[] org.springframework.cloud.config.server.resource.ResourceController.binary(java.lang.String,java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest) throws java.io.IOException
2020-06-15 19:08:35.808  INFO 35895 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2020-06-15 19:08:35.808  INFO 35895 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2020-06-15 19:08:36.358  INFO 35895 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 3 endpoint(s) beneath base path '/actuator'
2020-06-15 19:08:36.370  INFO 35895 --- [           main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2020-06-15 19:08:36.371  INFO 35895 --- [           main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2020-06-15 19:08:36.371  INFO 35895 --- [           main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/refresh],methods=[POST],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2020-06-15 19:08:36.372  INFO 35895 --- [           main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2020-06-15 19:08:36.423  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2020-06-15 19:08:36.431  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2020-06-15 19:08:36.432  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2020-06-15 19:08:36.432  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2020-06-15 19:08:36.435  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2020-06-15 19:08:36.442  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2020-06-15 19:08:36.452  INFO 35895 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=3224f60b,type=ConfigurationPropertiesRebinder]
2020-06-15 19:08:36.464  INFO 35895 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
2020-06-15 19:08:36.473  INFO 35895 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2020-06-15 19:08:36.511  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2020-06-15 19:08:36.600  INFO 35895 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2020-06-15 19:08:36.600  INFO 35895 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2020-06-15 19:08:36.776  INFO 35895 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2020-06-15 19:08:36.776  INFO 35895 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2020-06-15 19:08:37.068  INFO 35895 --- [           main] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Application is null : false
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2020-06-15 19:08:37.089  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2020-06-15 19:08:37.313  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : The response status is 200
2020-06-15 19:08:37.317  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 10
2020-06-15 19:08:37.320  INFO 35895 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2020-06-15 19:08:37.323  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1592219317322 with initial instances count: 10
2020-06-15 19:08:37.327  INFO 35895 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application jnyc-microservice-config with eureka with status UP
2020-06-15 19:08:37.327  INFO 35895 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1592219317327, current=UP, previous=STARTING]
2020-06-15 19:08:37.329  INFO 35895 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_JNYC-MICROSERVICE-CONFIG/172.16.0.2:jnyc-microservice-config:8600: registering service...
2020-06-15 19:08:37.370  INFO 35895 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8600 (http) with context path ''
2020-06-15 19:08:37.371  INFO 35895 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8600
2020-06-15 19:08:37.374  INFO 35895 --- [           main] c.microservice.config.ConfigApplication  : Started ConfigApplication in 7.061 seconds (JVM running for 7.715)
2020-06-15 19:08:37.379  INFO 35895 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_JNYC-MICROSERVICE-CONFIG/172.16.0.2:jnyc-microservice-config:8600 - registration status: 204
2020-06-15 19:08:37.584  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=00PbvxvF_kIP-dusowcpw9M3QlQ6MTU5MjIxOTMxNzU3MTkyMTMyMw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:08:37 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:08:37 GMT
2020-06-15 19:08:37.684  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=269jjka37FS18217asAnrdB0Q-Y6MTU5MjIxOTMxNzYwMDI0MzM0Mw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:08:37 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:08:37 GMT
2020-06-15 19:08:37.761  WARN 35895 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1592219317761, current=DOWN, previous=UP]
2020-06-15 19:08:37.761  WARN 35895 --- [nfoReplicator-0] c.n.discovery.InstanceInfoReplicator     : Ignoring onDemand update due to rate limiter
2020-06-15 19:08:37.761  INFO 35895 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_JNYC-MICROSERVICE-CONFIG/172.16.0.2:jnyc-microservice-config:8600: registering service...
2020-06-15 19:08:37.766  INFO 35895 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_JNYC-MICROSERVICE-CONFIG/172.16.0.2:jnyc-microservice-config:8600 - registration status: 204
2020-06-15 19:09:07.795  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=ei8JA4MtUXQXb7Prgy1ipsfrS3g6MTU5MjIxOTM0Nzc5MDg2OTUyMw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:07 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:07 GMT
2020-06-15 19:09:07.886  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=3J1w7_-fZ3qYvTAum3FqRwC2HEc6MTU5MjIxOTM0Nzc5OTAwMTc0NA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:07 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:07 GMT
2020-06-15 19:09:12.969  INFO 35895 --- [0.2-8600-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2020-06-15 19:09:12.970  INFO 35895 --- [0.2-8600-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2020-06-15 19:09:12.996  INFO 35895 --- [0.2-8600-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 25 ms
2020-06-15 19:09:13.304  WARN 35895 --- [0.2-8600-exec-1] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=GirWX119xQL2qJuk8TlACDXb9HM6MTU5MjIxOTM1MzMwMjU4NjI2MQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:13 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:13 GMT
2020-06-15 19:09:13.363  WARN 35895 --- [0.2-8600-exec-1] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=l25k-LSB-p4GpMPRQf0m2DoVtzI6MTU5MjIxOTM1MzMwNjY0MjgwNg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:13 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:13 GMT
2020-06-15 19:09:14.475  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=j_tYQfMII8NORWGoU7ax2wmek-06MTU5MjIxOTM1NDQ3MjI4NTY2Mg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:14 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:14 GMT
2020-06-15 19:09:14.548  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=dFoS-xLcFUn-g6sIKlf4gz_qkns6MTU5MjIxOTM1NDQ3ODM3OTgwMQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:14 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:14 GMT
2020-06-15 19:09:15.703  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=D6m6KO34HHrkCykJyWAwiRBy6HQ6MTU5MjIxOTM1NTcwMDM5OTg2NA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:15 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:15 GMT
2020-06-15 19:09:15.776  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=0lbWvaQoGHwm20WncOG0kNg0orI6MTU5MjIxOTM1NTcwNjc5Nzk0NQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:15 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:15 GMT
2020-06-15 19:09:17.034  WARN 35895 --- [0.2-8600-exec-4] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=pf3fe83_emvLBEasWsLY-VC1rtI6MTU5MjIxOTM1NzAzMTU3OTUzOQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:17 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:17 GMT
2020-06-15 19:09:17.123  WARN 35895 --- [0.2-8600-exec-4] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=0tfc3djc4DrCJUvDRnKEEdK-e4g6MTU5MjIxOTM1NzAzNzY4MjM2NA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:17 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:17 GMT
2020-06-15 19:09:18.505  WARN 35895 --- [0.2-8600-exec-5] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=VVBtwD-9kLtg9yRuUPX28F0RrW86MTU5MjIxOTM1ODUwMjAxNTk4OQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:18 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:18 GMT
2020-06-15 19:09:18.591  WARN 35895 --- [0.2-8600-exec-5] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=JTyaLeqJwcgSmA7Cw-d0hR2Tic86MTU5MjIxOTM1ODUwNzk3MjQxMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:18 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:18 GMT
2020-06-15 19:09:20.103  WARN 35895 --- [0.2-8600-exec-6] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=H2q7ewlHuP5TKWMBUsThXKy8MGw6MTU5MjIxOTM2MDA5OTMxMjAwMw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:20 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:20 GMT
2020-06-15 19:09:20.186  WARN 35895 --- [0.2-8600-exec-6] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=Pkst7fRWILZ5gnd9whnnk7gfg3s6MTU5MjIxOTM2MDEwNjY5NjA3Ng%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:20 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:20 GMT
2020-06-15 19:09:37.911  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=ydd6KuJulQuyjbeu8zIVpGI129k6MTU5MjIxOTM3NzkwODQ3MzY0Mg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:37 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:37 GMT
2020-06-15 19:09:37.999  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=Pay6p_AfERdfxLvhIRf8_-C4N_c6MTU5MjIxOTM3NzkxNDczMzM4OA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:37 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:37 GMT
2020-06-15 19:09:57.202  WARN 35895 --- [0.2-8600-exec-8] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=ZUUdHf0IFjOlJWqiMQYtgH3Z-Rw6MTU5MjIxOTM5NzE5ODY1OTQwMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:57 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:57 GMT
2020-06-15 19:09:57.287  WARN 35895 --- [0.2-8600-exec-8] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=QflPlVBZ4i02Yzv6GnmHSyod5xw6MTU5MjIxOTM5NzIwNTYxMjkxMA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:57 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:57 GMT
2020-06-15 19:09:58.325  WARN 35895 --- [0.2-8600-exec-9] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=r1X_Ixh-HDlUR20du_3iCaD_wT06MTU5MjIxOTM5ODMyMjcwNzc5Nw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:58 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:58 GMT
2020-06-15 19:09:58.411  WARN 35895 --- [0.2-8600-exec-9] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=ieffQ_atv97Qw-b2Xo5DPHox8GA6MTU5MjIxOTM5ODMyODY1MjQyMA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:58 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:58 GMT
2020-06-15 19:09:58.722  WARN 35895 --- [.2-8600-exec-10] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=x3dCMaWmk5Ay1LWKTQtF78TCERY6MTU5MjIxOTM5ODcxODk2NjAzNA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:58 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:58 GMT
2020-06-15 19:09:58.802  WARN 35895 --- [.2-8600-exec-10] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=_CjEadHXn-lyi4csSauMwghiz7I6MTU5MjIxOTM5ODcyNTY0MjI3OA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:58 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:58 GMT
2020-06-15 19:09:59.548  WARN 35895 --- [0.2-8600-exec-1] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=26IYIfymgYco_AtzM2ylBH4M6qY6MTU5MjIxOTM5OTU0NDg1NjI3Mg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:59 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:59 GMT
2020-06-15 19:09:59.629  WARN 35895 --- [0.2-8600-exec-1] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=xbaUKQqUlB-Nkf5cUbvoBgZQXxs6MTU5MjIxOTM5OTU1MTQyMjI2Ng%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:59 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:59 GMT
2020-06-15 19:09:59.847  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=ZVGgiePvcJrqyPG-mu8w_K5WPXQ6MTU5MjIxOTM5OTg0NDQ1ODI5Mg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:59 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:59 GMT
2020-06-15 19:09:59.934  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=RAuVusF_ifHBID5IoiobDJ42Cws6MTU5MjIxOTM5OTg1MTA2MzkwNw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:09:59 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:09:59 GMT
2020-06-15 19:10:00.875  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=FGFN1OXwy5c7T4b4LxXC6X_f2sM6MTU5MjIxOTQwMDg3MTk5NjcwMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:00 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:00 GMT
2020-06-15 19:10:00.963  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=OcCauQtfSbo48SIfrKDEFlugBSc6MTU5MjIxOTQwMDg3NzcxODEwNA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:00 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:00 GMT
2020-06-15 19:10:01.075  WARN 35895 --- [0.2-8600-exec-4] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=RxQYAwdtvPmimlRbqTvqFfIY77Y6MTU5MjIxOTQwMTA3Mjk0NDEwMQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:01 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:01 GMT
2020-06-15 19:10:01.161  WARN 35895 --- [0.2-8600-exec-4] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=CS3v4MGvsj3kIYKi5voySVvZNWk6MTU5MjIxOTQwMTA3ODExMzMyMw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:01 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:01 GMT
2020-06-15 19:10:02.332  WARN 35895 --- [0.2-8600-exec-5] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=q0UfUBIMCyzOLQ_tVK7cAniD_5s6MTU5MjIxOTQwMjMyOTE5MjM2Ng%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:02 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:02 GMT
2020-06-15 19:10:02.417  WARN 35895 --- [0.2-8600-exec-5] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=-50GTNKEf-ZVtjhFh2JxMC6ULUg6MTU5MjIxOTQwMjMzNjg4NzI4NQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:02 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:02 GMT
2020-06-15 19:10:02.437  WARN 35895 --- [0.2-8600-exec-6] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=9o1r_c5Fz4ek7xPPjuAiphEPbi46MTU5MjIxOTQwMjQzNTgwOTc5MA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:02 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:02 GMT
2020-06-15 19:10:02.523  WARN 35895 --- [0.2-8600-exec-6] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=7sBDRcM7RQyrnGO57dO8sA-6le86MTU5MjIxOTQwMjQ0MDQ4NTk1Mw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:02 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:02 GMT
2020-06-15 19:10:03.897  WARN 35895 --- [0.2-8600-exec-7] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=RwZZwCm5Ymk2Vogw-KQg1hwacQE6MTU5MjIxOTQwMzg5Mzc0MTc4Mw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:03 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:03 GMT
2020-06-15 19:10:03.982  WARN 35895 --- [0.2-8600-exec-7] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=l3i7WoSgLhJaMATgt2ww48fTofI6MTU5MjIxOTQwMzkwMDA4MjA2NQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:03 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:03 GMT
2020-06-15 19:10:04.001  WARN 35895 --- [0.2-8600-exec-8] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=NWjk_MhvQUOrJI6W86j3ni_Jr8M6MTU5MjIxOTQwMzk5ODkyMjUwOQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:03 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:03 GMT
2020-06-15 19:10:04.087  WARN 35895 --- [0.2-8600-exec-8] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=fvtCbu5wGSl4gGsQclKGDrMfKpc6MTU5MjIxOTQwNDAwNDcxMTE3NA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:04 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:04 GMT
2020-06-15 19:10:05.486  WARN 35895 --- [0.2-8600-exec-9] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=cvLDJM_6TQdl6sFz9NF2RLyKysI6MTU5MjIxOTQwNTQ4Mzc3Mjk4OA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:05 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:05 GMT
2020-06-15 19:10:05.571  WARN 35895 --- [0.2-8600-exec-9] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=_fiiNYivSZZqfCBhHZUELVb6UHg6MTU5MjIxOTQwNTQ4OTQ0OTQ1Mg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:05 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:05 GMT
2020-06-15 19:10:08.019  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=sz5mMawPggfM5QPlH9rwHhOMdos6MTU5MjIxOTQwODAxNjczNzk0MQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:08 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:08 GMT
2020-06-15 19:10:08.106  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=K11PtU2M3RPTCLktme3a6b0zvLA6MTU5MjIxOTQwODAyMjYyMDYyOA%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:08 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:08 GMT
2020-06-15 19:10:38.130  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=_1VBE1nZwq-FUAdL5vNaOq5kMkY6MTU5MjIxOTQzODEyNzE0MTcwMQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:38 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:38 GMT
2020-06-15 19:10:38.216  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=M0KMhVgCNYE9NTmcjVxxXWES4zo6MTU5MjIxOTQzODEzNDQxOTg2Mw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:10:38 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:10:38 GMT
2020-06-15 19:11:08.244  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=7Kre12LjEv2NXJbYw07z3YmhaPg6MTU5MjIxOTQ2ODIzNjk4NDYzNg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:08 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:08 GMT
2020-06-15 19:11:08.324  WARN 35895 --- [nfoReplicator-0] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=jxHYi59HH40slORX5PklcxKkNWk6MTU5MjIxOTQ2ODI0ODgwNzI3Nw%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:08 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:08 GMT
2020-06-15 19:11:33.864  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=eXEAAHHoMjx7WXJmPN2dVTZLwbM6MTU5MjIxOTQ5Mzg2MDY5OTQ2OQ%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:33 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:33 GMT
2020-06-15 19:11:33.949  WARN 35895 --- [0.2-8600-exec-2] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=A-MjdVtOpo1cx7ihNuEdWjlkCj06MTU5MjIxOTQ5Mzg2NzAzMDkzMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:33 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:33 GMT
2020-06-15 19:11:34.994  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie: _csrf=wZB32S9_AKY4b9UjNdfSLV7oJ4k6MTU5MjIxOTQ5NDk5MTM2NDQyMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:34 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:34 GMT
不停输出:
2020-06-15 19:11:34.994  WARN 35895 --- [0.2-8600-exec-3] o.a.h.c.protocol.ResponseProcessCookies  : Invalid cookie header: "Set-Cookie:_csrf=wZB32S9_AKY4b9UjNdfSLV7oJ4k6MTU5MjIxOTQ5NDk5MTM2NDQyMg%3D%3D; Path=/; Expires=Tue, 16 Jun 2020 11:11:34 GMT; HttpOnly". Invalid 'expires' attribute: Tue, 16 Jun 2020 11:11:34 GMT

于是访问config的actuator/health路径排查问题

 错误内容Cannot clone or checkout repository: http://localhost:3000/jnyc/jnyc-config.git";然后楼主有顺着git地址点进去查看

 

最终发现线网本地的git服务不知道什么原因挂了。由于实力不允许于是果断选择另一种方式将配置文件放在本地项目中打包修改配置如下:

一、将所有服务的.yml配置文件放在本地项目resources目录下的config文件中,config配置中心的application.yml配置文件如下:

#begin

server: 
  # 端口
  port: 8600
spring:  
  application: 
    name: jnyc-microservice-config
  profiles:
    active: native  #表示从本地读取配置
  cloud:    
    config: 
      server:
        native:
          search-locations: classpath:/config #指定配置文件路径为resources下config目录,如果没有默认是从git获取

  tomcat:
    basedir: /home/tmp          

#actuator端口 
management:  
  endpoints:
    enabled-by-default: false   #关闭actuator所有端点
          
#服务注册
eureka:
  client: 
    serviceUrl: 
      defaultZone: http://服务器IP:8500/eureka/  #eureka注册中心地址
    healthcheck: 
      enabled: true
  instance: 
    preferIpAddress: true
    lease-renewal-interval-in-seconds: 10 #,每隔10秒发送一次心跳
    lease-expiration-duration-in-seconds: 25 #,25秒内无心跳则剔除
    prefer-ip-address: true
    instance-id: ${spring.cloud.client.ip-address}:${server.port}
#信息
info: 
  app: 
    name: "@project.name@"
    description: "@project.description@" 
    version: "@project.version@"
    spring-boot-version: "@project.parent.version@" 
    
#end

 本地运行正常后打成jar包,上传至服务器运行时命令如下:

nohup java -jar -Xms1g -Xmx4g jnyc-config.jar --spring.profiles.active=pro  > config.txt 2>&1 &

运行后日志输出:

Error creating bean with name 'eurekaHealthCheckHandler' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaDiscoveryClientConfiguration$EurekaHealthCheckHandlerConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configServerHealthIndicator' defined in class path resource [org/springframework/cloud/configrver/config/EnvironmentRepositoryConfiguration.class]: Unsatisfied dependency expressed through method 'configServerHealthIndicator' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.config.server.config.CompositeConfiguration': Unsatisfied dependency expressed through method 'setEnvironmentRepos' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultEnvironmentRepository' defined in class path resource [org/springframework/cloud/configrver/config/DefaultRepositoryConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: You need to configure a uri for the git repository

提示需要配置git的url地址 于是疯狂百度,后来找半天才知道是运行命令的问题,运行命令去掉 --spring.profiles.active=pro 后就注册正常了,主要关键是这句
--spring.profiles.active=pro 这句的意思是会主动找寻你配置文件里面的pro的yml 配置文件来读取配置 ,问题也就是出现这里,如果启动的脚本加入这句话会优先去拉取git 的 pro 来获取信息

参考文章:https://blog.csdn.net/caoleifff/article/details/103597621

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值