概述
公司项目共使用了4个服务器,只有其中一个的配置中心报错
java.io.EOFException: Short read of block.
at org.eclipse.jgit.util.IO.readFully(IO.java:249)
at org.eclipse.jgit.dircache.DirCache.readFrom(DirCache.java:491)
at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:436)
at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:221)
at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:193)
at org.eclipse.jgit.lib.Repository.readDirCache(Repository.java:1256)
at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:412)
at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:386)
at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:155)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.shouldPull(JGitEnvironmentRepository.java:398)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:260)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:238)
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:150)
at org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository.findOne(AbstractScmEnvironmentRepository.java:47)
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.findOne(MultipleJGitEnvironmentRepository.java:190)
at org.springframework.cloud.config.server.environment.CompositeEnvironmentRepository.findOne(CompositeEnvironmentRepository.java:46)
at org.springframework.cloud.config.server.environment.EnvironmentEncryptorEnvironmentRepository.findOne(EnvironmentEncryptorEnvironmentRepository.java:53)
at org.springframework.cloud.config.server.environment.EnvironmentController.labelled(EnvironmentController.java:122)
at org.springframework.cloud.config.server.environment.EnvironmentController.defaultLabel(EnvironmentController.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
检查了服务器的网络和git后,没发现问题。
后面把配置中心缓存的文件夹删除后,重启配置中心后正常
最后
以上就是儒雅小白菜为你收集整理的spring cloud config 报错,java.io.EOFException: Short read of block的全部内容,希望文章能够帮你解决spring cloud config 报错,java.io.EOFException: Short read of block所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复