Jhipster注册春天云配置无法从git分支签出属性

时间:2018-07-23 22:20:33

标签: bitbucket-server spring-cloud-config jhipster-registry

我们在docker内部使用jhipster-registry,自上周以来开始遇到以下错误。 Jhipster注册表无法从master以外的任何分支中检出。如果使用了master以外的其他分支,则注册表启动失败并显示以下错误,并且可以与master分支一起正常工作。以下是docker-compose文件。分支机构DEVA确实存在,并且用户有权检出存储库。此问题在bitbucketserver升级到v5.7.2之后开始。我们有一个单独的sys环境,可以正常工作。所以我迷失了问题所在。

version: '3'
services:
    jhipster-registry:
        image: jhipster/jhipster-registry:v3.2.4
        environment:
            - SPRING_PROFILES_ACTIVE=prod,git
            - SPRING_CLOUD_CONFIG_LABEL=DEVA
            - SECURITY_USER_PASSWORD=admin
            - JHIPSTER_REGISTRY_PASSWORD=admin
            - jhipster_security_authentication_jwt_secret=secret-key
            - SPRING_CLOUD_CONFIG_SERVER_GIT_USERNAME=uname
            - SPRING_CLOUD_CONFIG_SERVER_GIT_PASSWORD=password
            - SPRING_CLOUD_CONFIG_SERVER_GIT_URI=https://username@bitbucketserver/properties.git
            - JAVA_OPTS=-Xmx512m
        ports:
            - "8761:8761"
        volumes:
            - jhipster-registry-app-devb:/tmp/app
        networks:
          - devb

networks:
  devb:
volumes:
  jhipster-registry-app-devb:



main] o.s.boot.SpringApplication               : Application startup failed
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    | org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: DEVA
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:188)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:144)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:116)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository.findOne(AbstractScmEnvironmentRepository.java:40)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.findOne(MultipleJGitEnvironmentRepository.java:154)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.config.server.environment.EnvironmentRepositoryPropertySourceLocator.locate(EnvironmentRepositoryPropertySourceLocator.java:50)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at io.github.jhipster.registry.JHipsterRegistryApp.main(JHipsterRegistryApp.java:75)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at java.lang.reflect.Method.invoke(Method.java:498)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
deva_jhipster-registry.1.9w17n2x15b41@dfrappd10vl    |  at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)

0 个答案:

没有答案