Spring Cloud Config-Git存储库错误

问题描述 投票:0回答:1

Spring Cloud Config Framework:

我正在尝试将Java项目中的Spring Cloud配置与后端存储库git集成在一起,后者是bitbucket。基本上,我在不同场合更经常遇到两个错误。

2020-04-11 17:08:59.265  WARN 2792 --- [           main] .c.s.e.MultipleJGitEnvironmentRepository : Could not fetch remote for master remote: https://[email protected]/workspace/config-repo.git

在上述情况下,它使用了缓存的版本,并且tomcat / undertow服务器启动没有任何问题。

2020-04-11 17:09:03.774  INFO 2792 --- [           main] o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: file:/var/folders/6m/1cgw7zvn3rsb8j5kskflhvrr0000gn/T/config-repo-2822438633438126334/api-gateway.yml
2020-04-11 17:09:03.774  INFO 2792 --- [           main] o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: file:/var/folders/6m/1cgw7zvn3rsb8j5kskflhvrr0000gn/T/config-repo-2822438633438126334/discovery-service.yml
2020-04-11 17:09:03.775  INFO 2792 --- [           main] o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: file:/var/folders/6m/1cgw7zvn3rsb8j5kskflhvrr0000gn/T/config-repo-2822438633438126334/config-service.yml

Git版本:

git version 2.24.0

错误1:git-upload-pack

2020-04-11 00:00:20-克隆到基本目录时发生警告错误。

org.eclipse.jgit.api.errors.TransportException: https://<username>@bitbucket.org/<workspace>/config-repo.git: git-upload-pack not permitted on 'https://[email protected]/workspace/config-repo.git/'

启动Spring Cloud配置服务器,我随机收到此错误。深入研究此问题后,我发现bitbucket不支持git-upload-pack。但它是2年前的报道here,建议还原GIT版本。

错误2:不支持身份验证

org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/user/repo.git: authentication not supported

此错误,当我点击执行器上的/refresh以从远程配置存储库获取刷新的属性时,我得到了。有时它可以正常工作而没有任何错误,有时它会抛出错误。

curl localhost:8060/refresh -d {} -H "Content-Type: application/json"

执行器刷新命令错误:

{"timestamp":"2020-04-10T16:35:41.144+0000","status":500,"error":"Internal Server Error","message":"Request processing failed; nested exception is org.springframework.cloud.config.server.environment.NoSuchRepositoryException: Cannot clone or checkout repository: https://[email protected]/augmentedcloud/ac-config-repo.git","path":"/refresh"}

[Note:作为附带说明,我已经分别克隆了指定的存储库以进行测试,并且该存储库工作时没有任何身份验证问题。

Spring Cloud Config框架:我正在尝试将Java项目中的Spring Cloud config与后端存储库git集成在一起,后者是bitbucket。基本上,我在...

git eclipse bitbucket jgit spring-cloud-config-server
1个回答
0
投票

Spring Cloud配置框架

© www.soinside.com 2019 - 2024. All rights reserved.