1

我们在 docker 中使用 jhipster-registry 并从上周开始遇到以下错误。Jhipster-registry 无法从除 master 以外的任何分支签出。如果使用 master 以外的分支并且与 master 分支一起正常工作,则注册表启动失败并出现以下错误。下面是 docker-compose 文件。分支 DEVA 确实存在,并且用户有权签出 repo。此问题在 bitbucketserver 升级到 v5.7.2 后开始。我们有一个单独的系统环境,它工作正常。所以我迷失了问题所在。

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)
4

0 回答 0