Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45729

git jgit missing object exception

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

       

      org.eclipse.jgit.errors.MissingObjectException: Missing unknown c67d289233e6413f25f25464270f571ef716d757
      at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:158)
      at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:227)
      at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:859)
      at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:772)
      at hudson.plugins.git.util.RevCommitRepositoryCallback.invoke(RevCommitRepositoryCallback.java:25)
      at hudson.plugins.git.util.RevCommitRepositoryCallback.invoke(RevCommitRepositoryCallback.java:13)
      at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:71)
      at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:320)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:295)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:254)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:324)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Thread.java:748)
      at ......remote call to Channel to /10.166.29.53(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      at hudson.remoting.Channel.call(Channel.java:830)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:257)
      at com.sun.proxy.$Proxy77.withRepository(Unknown Source)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:235)
      at hudson.plugins.git.GitSCM.printCommitMessageToLog(GitSCM.java:1189)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1153)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:260)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Finished: FAILURE

      I see the above exception which continuously fails the job. I am able to successfully clone the repository in question outside of Jenkins, and I have since tried deleting the entire workspace of the Jenkins job, as well as completely re-cloned and re-uploaded the repository in question, other instances of jobs which pull this change and test appear to work as expected.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/hudson/plugins/git/GitSCM.java
            http://jenkins-ci.org/commit/git-plugin/34f047f644bb32db8359cc71715590d1902db701
            Log:
            Merge pull request #530 from MarkEWaite/remove-printCommitMessageToLog

            JENKINS-45729 - Move print commit message after checkout

            Compare: https://github.com/jenkinsci/git-plugin/compare/a6ddae8a65df...34f047f644bb

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/34f047f644bb32db8359cc71715590d1902db701 Log: Merge pull request #530 from MarkEWaite/remove-printCommitMessageToLog JENKINS-45729 - Move print commit message after checkout Compare: https://github.com/jenkinsci/git-plugin/compare/a6ddae8a65df...34f047f644bb
            Hide
            markewaite Mark Waite added a comment -

            Included in git plugin 3.6.0

            Show
            markewaite Mark Waite added a comment - Included in git plugin 3.6.0
            Hide
            ssbarnea Sorin Sbarnea added a comment -

            I got the same error using 3.7.0 version of the plugin. The cli git version is 2.8.4 in case it matters.

            Show
            ssbarnea Sorin Sbarnea added a comment - I got the same error using 3.7.0 version of the plugin. The cli git version is 2.8.4 in case it matters.
            Hide
            markewaite Mark Waite added a comment -

            Sorin Sbarnea a missing object exception can also happen when the commit is not yet in the repository. That may be due to a checkout which uses a narrow refspec followed by a checkout of a commit which is not available in the workspace copy of the repository. There are probably other reasons for that exception, though I've not found repeatable cases of that exception.

            Can you provide a repeatable case?

            Show
            markewaite Mark Waite added a comment - Sorin Sbarnea a missing object exception can also happen when the commit is not yet in the repository. That may be due to a checkout which uses a narrow refspec followed by a checkout of a commit which is not available in the workspace copy of the repository. There are probably other reasons for that exception, though I've not found repeatable cases of that exception. Can you provide a repeatable case?
            Hide
            ssbarnea Sorin Sbarnea added a comment -

            Mark Waite, thanks for the hint. In fact I get the same kind of error while trying to use the new gerrit plugin for Jenkins, not the git plugin. Gerrit plugin is based on git plugin as it only adds few Gerrit specific features on top of the base git part which is common. See https://github.com/GerritForge/gerrit-plugin/issues/7

            I checked this was happening when there where not refspec specified, probably because the default ones are not wide enough.

            I am going to try now adding wider refspecs and see if this addresses the issue. Once I have them I should be able to change the defaults. Again, thanks for the help.

            Show
            ssbarnea Sorin Sbarnea added a comment - Mark Waite , thanks for the hint. In fact I get the same kind of error while trying to use the new gerrit plugin for Jenkins, not the git plugin. Gerrit plugin is based on git plugin as it only adds few Gerrit specific features on top of the base git part which is common. See  https://github.com/GerritForge/gerrit-plugin/issues/7 I checked this was happening when there where not refspec specified, probably because the default ones are not wide enough. I am going to try now adding wider refspecs and see if this addresses the issue. Once I have them I should be able to change the defaults. Again, thanks for the help.

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                jekeller Jacob Keller
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: