我正在尝试配置SVN以使用可由Eureka Server发现的Spring Cloud Config Server获取我的配置 . 配置服务器第一次在Eureka中注册为“UP”,但是当我将其关闭并再次启动时,我在Eureka中看到它处于“DOWN”状态 .

我使用这个example作为参考,因为没有太多可用于使用svn作为配置源的文档

任何帮助将非常感激:

POM dependency - pertaining to config server

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Camden.SR4</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-config-server</artifactId>
</dependency>

<dependency>
    <groupId>org.tmatesoft.svnkit</groupId>
    <artifactId>svnkit</artifactId>
</dependency>

Config Server - bootstrap.yml

spring:
  application:
    name: config-server
  profiles:
    active: subversion

Config Server - application.yml

spring:
  cloud:
    config:
      server:
        svn:
          uri: <my svn repo>
          username: username
          password: password
          basedir: <file system path where the repo would be checked out>
          default-label: <my branch path where the actual config file resides>

Below is what I see in my log console

2017-02-07 14:41:21.263  INFO 28776 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1486507281263, current=UP, previous=STARTING]
2017-02-07 14:41:21.266  INFO 28776 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CONFIG-SERVER/<machine-name>:config-server:8100: registering service...
2017-02-07 14:41:21.696  INFO 28776 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8100 (http)
2017-02-07 14:41:21.699  INFO 28776 --- [           main] c.n.e.EurekaDiscoveryClientConfiguration : Updating port to 8100
2017-02-07 14:41:21.710  INFO 28776 --- [           main] c.s.s.s.c.a.ConfigServerApplication      : Started ConfigServerApplication in 12.477 seconds (JVM running for 20.423)
2017-02-07 14:41:21.881  INFO 28776 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CONFIG-SERVER/<machine-name>:config-server:8100 - registration status: 204
2017-02-07 14:41:22.263 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:41:25.106  WARN 28776 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1486507285106, current=DOWN, previous=UP]
2017-02-07 14:41:25.106  WARN 28776 --- [nfoReplicator-0] c.n.discovery.InstanceInfoReplicator     : Ignoring onDemand update due to rate limiter
2017-02-07 14:41:25.106  INFO 28776 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CONFIG-SERVER/<machine-name>:config-server:8100: registering service...
2017-02-07 14:41:25.114  INFO 28776 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CONFIG-SERVER/<machine-name>:config-server:8100 - registration status: 204
2017-02-07 14:41:51.214  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2017-02-07 14:41:51.216  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2017-02-07 14:41:51.217  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2017-02-07 14:41:51.218  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application is null : false
2017-02-07 14:41:51.219  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2017-02-07 14:41:51.220  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application version is -1: false
2017-02-07 14:41:51.221  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2017-02-07 14:41:51.251  INFO 28776 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : The response status is 200
2017-02-07 14:41:55.121 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:42:27.122 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:42:59.114 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:43:31.107 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:44:03.106 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:44:35.108 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.
2017-02-07 14:45:07.108 DEBUG 28776 --- [nfoReplicator-0] o.s.c.c.s.e.SvnKitEnvironmentRepository  : Repo already checked out - updating instead.