GIT and Missing tree / MissingObjectException
See original GitHub issueRunning the Spring Cloud Config server it sometimes gives an exception and display the error page. We reboot the server to make it recover, but as we get it in production it would be nice to find the reason. It’s valid calls that fails, rebooting will make the calls respond with correct config data.
2016-10-08 21:35:30.083 ERROR 7128 --- [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot load environment] with root cause
org.eclipse.jgit.errors.MissingObjectException: Missing tree b0fb112b1cc6e7e490bf049e1c037ab1b8d9bcb3
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:149) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:202) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator0(CanonicalTreeParser.java:236) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:214) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:60) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:912) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.dircache.DirCacheCheckout.preScanTwoTrees(DirCacheCheckout.java:259) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:410) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:397) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:261) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.checkout(JGitEnvironmentRepository.java:204) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:148) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:121) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:111) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository.findOne(AbstractScmEnvironmentRepository.java:40) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.findOne(MultipleJGitEnvironmentRepository.java:146) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.EnvironmentEncryptorEnvironmentRepository.findOne(EnvironmentEncryptorEnvironmentRepository.java:53) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
at org.springframework.cloud.config.server.environment.EnvironmentController.labelled(EnvironmentController.java:112) ~[spring-cloud-config-server-1.1.3.RELEASE.jar!/:1.1.3.RELEASE]
.
.
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Egit in eclipse missing tree - Stack Overflow
Trying to go through the git faq doesn't go very far. Here's the whole error: eclipse.buildId=v22.0.0-675183 java.version=1.7.0_21 java.vendor=Oracle ...
Read more >Missing tree XXX" error during versioned settings commit in git
"MissingObjectException: Missing tree XXX" error during versioned settings commit in git.
Read more >225947 – org.eclipse.jgit.errors.MissingObjectException
I downloaded and install from http://git-scm.com/downloads Than downloaded and install a graphical client GitX(L) v0.84 And from this client I ...
Read more >445744 – Missing tree error when pushing to Gerrit - Bugs
One of the users then tried to push using console git and it worked. After that we downgraded EGit to 3.4.1 and the...
Read more >Missing commit" - no issues reported by git binary - Jenkins Jira
MissingObjectException : Missing commit [some commit hash] at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:159)
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try upgrading to 1.2.2 as this was hopefully fixed by #538.
@rlynch It works for me 😃 Thanks!