title: Eureka based configuration server breaking actuator endpoints
body: <p>I setup my services to use the spring cloud eureka based config server.</p>
  
  <p>version info: spring cloud 1.0.1.RELEASE</p>
  
  <p>When I set it up as a fixed endpoint, I can see that it gets the right configuration file and that I can access actuator endpoints like health, info etc. so a .../manage/info returns the correct information.</p>
  
  <p>However when I set it up to use discovery, the same actuator endpoints timeout on trying got access them.</p>
  
  <p>In each case the configuration file is retrieved and downloaded (included log file).</p>
  
  <p>Is there an issue with how I setup config server and bookmark service (the service which uses the config server)?</p>
  
  <p>My configuration server setting is as follows:</p>
  
  <pre><code>server:
    port: 8888
    contextPath: /configurationservice
  
  eureka:
    client:
      registerWithEureka: true
      fetchRegistry: true
      serviceUrl:
        defaultZone: http://localhost:8761/eureka/
    instance:
      leaseRenewalIntervalInSeconds: 10
      statusPageUrlPath: /configurationservice/info
      homePageUrlPath: /configurationservice/
      healthCheckUrlPath: /configurationservice/health
      preferIpAddress: true
  
  spring:
    cloud:
      config:
        server:
          native:
            searchLocations: file:/Users/larrymitchell/libertas/configserver/configfiles
  </code></pre>
  
  <p>The service bootstrap.yml settings are:</p>
  
  <pre><code>spring:
    profiles:
      default: development
      active: development
    application:
      name: bookmarkservice
    cloud:
      config:
        enabled: true # note this needs to be turned on if you wnat the config server to work
  #      uri: http://localhost:8888/configurationservice
        label: 1.0.0
        discovery:
          enabled: true
          serviceId: configurationservice
  </code></pre>
  
  <p>The application.yml settings are:</p>
  
  <pre><code># general spring settings
  spring:
    application:
      name: bookmarkservice
    profiles:
      default: development
      active: development    
  # name of the service
  service:
    name: bookmarkservice
  
  # embedded web server settings
  # some of these are specific to tomcat
  server:
    port: 9001
    # the context path is the part after http:/localhost:8080
    contextPath: /bookmarkservice
    tomcat:
      basedir: target/tomcat
      uri-encoding: UTF-8
  
  management:
    context-path: /manage
    security:
      enabled: false
  
  eureka:
    client:
      registerWithEureka: true
      fetchRegistry: true
      serviceUrl:
        defaultZone: http://localhost:8761/eureka/
    instance:
      statusPageUrlPath: /bookmarkservice/manage/info
      homePageUrlPath: /bookmarkservice/manage
      healthCheckUrlPath: /bookmarkservice/manage/health
      preferIpAddress: true
  </code></pre>
  
  <p>The startup log for bookmark service is as follows:</p>
  
  <pre><code>2015-06-24 17:52:49.806 DEBUG 11234 --- [           main] o.s.web.client.RestTemplate              : Created GET request for "http://10.132.1.56:8888/configurationservice/bookmarkservice/development/1.0.0"
  2015-06-24 17:52:49.890 DEBUG 11234 --- [           main] o.s.web.client.RestTemplate              : Setting request Accept header to [application/json, application/*+json]
  2015-06-24 17:52:50.439 DEBUG 11234 --- [           main] o.s.web.client.RestTemplate              : GET request for "http://10.132.1.56:8888/configurationservice/bookmarkservice/development/1.0.0" resulted in 200 (OK)
  2015-06-24 17:52:50.441 DEBUG 11234 --- [           main] o.s.web.client.RestTemplate              : Reading [class org.springframework.cloud.config.environment.Environment] as "application/json;charset=UTF-8" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@2b07e607]
  2015-06-24 17:52:50.466  INFO 11234 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='file:/Users/larrymitchell/libertas/configserver/configfiles/1.0.0/bookmarkservice-development.yml']]]
  2015-06-24 17:52:50.503  INFO 11234 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5fa23965: startup date [Wed Jun 24 17:52:50 EDT 2015]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5cced717
  2015-06-24 17:52:51.723  WARN 11234 --- [           main] .i.s.PathMatchingResourcePatternResolver : Skipping [/var/folders/kq/ykvl3t4n3l71p7s9ymywb4ym0000gn/T/spring-boot-libs/06f98804e83cf4a94380b46591b976b1d17c36b8-eureka-client-1.1.147.jar] because it does not denote a directory
  2015-06-24 17:52:53.662  INFO 11234 --- [           main] o.s.b.f.config.PropertiesFactoryBean     : Loading properties file from URL [jar:file:/Users/larrymitchell/libertas/vipaas/applicationservices/bookmarkservice/target/bookmarkservice.jar!/lib/spring-integration-core-4.1.2.RELEASE.jar!/META-INF/spring.integration.default.properties]
  </code></pre>