Questions tagged [spring-cloud-config-server]

Spring Cloud Config provides server-side and client-side support for externalized configuration in a distributed system. More appropriate tag: spring-cloud-config.

211 questions
14
votes
5 answers

Caused by: org.eclipse.jgit.api.errors.RefNotFoundException: Ref master cannot be resolved

I'm working on Spring Boot 2.4.2.RELEASE and developing config-server for my microservices project. Below is the my code which I develop so far. ConfigServerApplication.java @SpringBootApplication @EnableConfigServer @EnableEurekaClient public class…
PAA
  • 1
  • 46
  • 174
  • 282
7
votes
0 answers

Spring cloud config client application is failing to start with java.lang.NoClassDefFoundError

I have some problem with spring cloud config client application. When I use spring-boot-starter-parent as parent in pom.xml(shown below), my application is working fine and able to fetch properties from spring cloud config server.
4
votes
3 answers

How to configure Spring Cloud Configuration Server without the git profile?

I'm attempting to run Spring Cloud Configuration Server, working through the examples in a book (Manning's Spring Microservices in Action), but updating to the latest versions: Java 17, spring-boot-starter-parent 2.6.1, with Spring Cloud…
workerjoe
  • 2,421
  • 1
  • 26
  • 49
4
votes
2 answers

Config server with private git repository

I want to use private git repository with my config server. Here is my application.yml: server: port: 100 spring: application: name: smth-config-server cloud: config: server: git: uri:…
4
votes
1 answer

Spring boot 2.4.x cannot handle multi document yml files from config server

Java version: 8 Spring Boot version: 2.4.1 Spring Cloud version: 2020.0.0, specifically I use a Spring Cloud Config Server connected to GIT and our services are Spring Cloud Config Clients. I have migrated away from using bootstrap.yml and started…
4
votes
3 answers

Spring Cloud Config Server gives Connect Timeout Exception on Url -http://localhost:8888 When deployed on Dockers

I am trying to shift my spring-boot microservices to dockers. My microservices are running absolutely fine when implemented on STS on the local system. But when I dockerize them I get a connection timeout error. I am sharing my code snippets…
4
votes
3 answers

Externalize configuration node js

I am gonna deploy a node js service in openshift and there are few properties such as database configs and app properties which I need to externalize. I have java applications running as part of solution which uses config server as config store and…
3
votes
0 answers

ConfigServerHealthIndicator - Health check failed

I have native and vault profiles enabled in config server. spring: main: allow-bean-definition-overriding: true profiles: active: native, vault Because of this the actuator endpoints are not working. How can I have the actuator…
3
votes
0 answers

Unable to load configtree if we use spring-cloud-config-server

NOT WORKING SCENARIO: I am trying to deploy spring-boot application in EKS cluster. spring-config-server helps to load myapplication(project) properties from repository myapplication-dev.yml (From repository) spring: config: import:…
Prashant
  • 616
  • 6
  • 10
3
votes
2 answers

Spring Cloud Embedded Config Server with native repository

I have a working spring boot application and I am trying to remove some properties from application.yaml file and read them from an embedded config server in the same app. At the moment, I am trying to read properties from file system through…
3
votes
2 answers

Spring Cloud Config Server with Database backend

I am trying to create a Spring Cloud Config Server that gets its Configurations from a database and not from the default git-repo. Every time I try to run my Config Server Application I get this Error: Execution failed for task…
3
votes
2 answers

Spring Cloud Configuration Server not working with local properties file - getting need to use a composite configuration

I am configuring the new spring config server and getting the below error. *************************** APPLICATION FAILED TO START *************************** Description: Invalid config server configuration. Action: If you are using the git…
3
votes
2 answers

Automatic refresh of Config Clients not working in Spring Boot 2

I am trying to migrate a simple example code with Spring Cloud Config Server and RabbitMQ as Spring Cloud Bus (based on Spring Boot 1.5.22.RELEASE and Spring Cloud Brixton.SR7) to Spring Boot 2.2.6.RELEASE and Spring Cloud Hoxton.SR3. The example…
3
votes
1 answer

How to use Spring cloud config server to serve web-ui configuration as well

I have a couple of services (microservices) that have Web applications bound to them. In my services, there is an endpoint to serve UI configuration. That means when someone hits the site, the config endpoint is called and UI gets the required…
hyeganeh
  • 348
  • 2
  • 11
2
votes
1 answer

Spring Cloud Config Client tries localhost:8888 in addition to my specified server location

I have only found this issue reported in 1 other place, but no resolution: https://github.com/spring-cloud/spring-cloud-config/issues/2052 I'm on 2021.0.3. When defining anything other than the default localhost:8888 using spring.config.import, it…
1
2 3
14 15