git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: fatal: index-pack failed

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Oct 2, 2011, 13:47 UTC
Message-ID
<4E886B60.2000901@dewire.com>
In-Reply-To
<50B87B00-064C-4FCC-B1E8-94A9EB027468@portalify.com>
Matti Linnanvuori skrev 2011-09-30 10.11:
Show 17 quoted lines
> Jenkins got an error:
>
> Error performing command: git fetch -t ssh://iac-builder@sorsa.portalify.com/p/git/.git+refs/heads/*:refs/
> Command "git fetch -t ssh://iac-builder@sorsa.portalify.com/p/git/.git+refs/heads/*:refs/remotes/origin/*" returned status code 128: error: refs/remotes/origin/HEAD does not point to a valid object!
> error: refs/remotes/origin/master does not point to a valid object!
> error: refs/tags/jenkins-iac-orm-snapshot-889 does not point to a valid object!
> error: refs/remotes/origin/HEAD does not point to a valid object!
> error: refs/remotes/origin/master does not point to a valid object!
> error: refs/tags/jenkins-iac-orm-snapshot-889 does not point to a valid object!
> error: Could not read 49f273234b582edb44bbdbda29193719e5054cb7
> error: refs/remotes/origin/HEAD does not point to a valid object!
> error: refs/remotes/origin/master does not point to a valid object!
> error: missing object referenced by 'refs/tags/iac-1.4.13'
> error: refs/tags/jenkins-iac-orm-snapshot-889 does not point to a valid object!
> error: Could not read 49f273234b582edb44bbdbda29193719e5054cb7
> fatal: pack has 26 unresolved deltas
> fatal: index-pack failed

I saw this too a couple of weeks ago. I have no idea what caused it. After removing all refs from the remote and fetching again everything was fine. No system crash was involved.

(fresh) Hypothesis: A fetch updated the refs, but failed to get save the actual objects. I think git tries hard to make sure that this cannot happen.

In my case JGit might have been used to perform the fetch that failed. Since you say it's Jenkins, I'd guess not, since it uses C Git.

-- robin
Previous: Matti Linnanvuori
Message 2 of 2 in “fatal: index-pack failed”
  1. Matti LinnanvuoriSep 30, 2011
  2. Robin RosenbergOct 2, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.