Skip to content

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

Description

@voodemsanthosh

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions