Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use latest spring cloud version for config server #29

Open
voodemsanthosh opened this issue Mar 24, 2021 · 2 comments
Open

Unable to use latest spring cloud version for config server #29

voodemsanthosh opened this issue Mar 24, 2021 · 2 comments

Comments

@voodemsanthosh
Copy link

I am creating config-server with latest spring cloud version,
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.3</version> <relativePath/> <!-- lookup parent from repository --> </parent>

<spring-cloud.version>2020.0.1</spring-cloud.version>

we are always getting below error,

`2021-03-24 15:54:31.004 INFO 29368 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-03-24 15:54:31.021 INFO 29368 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-24 15:54:31.032 ERROR 29368 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Invalid config server configuration.

Action:

If you are using the git profile, you need to set a Git URI in your configuration. If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.692 s
[INFO] Finished at: 2021-03-24T15:54:31+05:30
[INFO] Final Memory: 29M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.3:run (default-cli) on project prd-config-server: Application finished with exit code: 1 -> [Help 1]
[ERROR] `

bootstarp.yml

spring:
profiles:
active: composite
cloud:
config:
server:
composite:
- type: git
uri: git_url
username: ${GIT_USER}
password: ${GIT_PASS}
search-paths: '{application}'
cloneOnStart: true
force-pull: true
order: 2

Please help us to find cause.

@voodemsanthosh
Copy link
Author

is there any chance to look at this issue. it is hard stopper to use latest spring cloud versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants