Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12399

Fetches for shallow clones for git repositories occasionally cause "fatal: did not find object for shallow <commit-hash>" error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.2
    • None
    • Repository (Git)
    • None

    Description

      Here's a bit of logging from stash.atlassian.com

      2012-11-11 23:34:59,810 ERROR [http-9080-53] cbac-confluence-user 1414x6169347x1 bm1o7t 63.246.22.198,172.16.1.187 "POST /scm/CONF/confluence.git/git-upload-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'confluence' of project 'CONF' from '63.246.22.198' failed: read process '/usr/bin/git http-backend ' caused an exception
      Process's error output: fatal: did not find object for shallow 8eeac2aa5598ac0b20ae852f81545e8276e2ee42
      
      2012-11-11 23:35:00,112 ERROR [http-9080-53] cbac-confluence-user 1414x6169348x1 63.246.22.198,172.16.1.187 "POST /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled error loading [/scm/CONF/confluence.git/git-upload-pack]
      
      2012-11-11 23:35:02,808 ERROR [http-9080-67] cbac-confluence-user 1415x6169354x1 qwt1n5 63.246.22.198,172.16.1.187 "POST /scm/CONF/confluence.git/git-upload-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'confluence' of project 'CONF' from '63.246.22.198' failed: read process '/usr/bin/git http-backend ' caused an exception
      Process's error output: fatal: did not find object for shallow 8eeac2aa5598ac0b20ae852f81545e8276e2ee42
      
      2012-11-11 23:35:02,968 ERROR [http-9080-67] cbac-confluence-user 1415x6169355x1 63.246.22.198,172.16.1.187 "POST /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled error loading [/scm/CONF/confluence.git/git-upload-pack]
      
      2012-11-11 23:35:07,192 ERROR [http-9080-26] cbac-confluence-user 1415x6169373x4 14f262h 63.246.22.198,172.16.1.187 "POST /scm/CONF/confluence.git/git-upload-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'confluence' of project 'CONF' from '63.246.22.198' failed: read process '/usr/bin/git http-backend ' caused an exception
      Process's error output: fatal: did not find object for shallow 8eeac2aa5598ac0b20ae852f81545e8276e2ee42
      
      2012-11-11 23:35:07,422 ERROR [http-9080-26] cbac-confluence-user 1415x6169377x4 63.246.22.198,172.16.1.187 "POST /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled error loading [/scm/CONF/confluence.git/git-upload-pack]
      
      2012-11-11 23:35:17,775 ERROR [http-9080-90] cbac-confluence-user 1415x6169447x3 2s8qvs 63.246.22.198,172.16.1.187 "POST /scm/CONF/confluence.git/git-upload-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'confluence' of project 'CONF' from '63.246.22.198' failed: read process '/usr/bin/git http-backend ' caused an exception
      Process's error output: fatal: did not find object for shallow 8eeac2aa5598ac0b20ae852f81545e8276e2ee42
      
      2012-11-11 23:35:18,027 ERROR [http-9080-90] cbac-confluence-user 1415x6169451x3 63.246.22.198,172.16.1.187 "POST /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled error loading [/scm/CONF/confluence.git/git-upload-pack]
      
      2012-11-11 23:37:09,009 ERROR [http-9080-116] cbac-confluence-user 1417x6170464x6 xvfk3a 63.246.22.198,172.16.1.187 "POST /scm/CONF/confluence.git/git-upload-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'confluence' of project 'CONF' from '63.246.22.198' failed: read process '/usr/bin/git http-backend ' caused an exception
      Process's error output: fatal: did not find object for shallow 8eeac2aa5598ac0b20ae852f81545e8276e2ee42
      

      This happens when you have a shallow clone and the branch on the origin repository gets force-updated (for instance force-push). When that happens, the origin repository does not have the commits that the shallow clone says it has and cannot calculate what objects to send over the wire.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mheemskerk Michael Heemskerk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: