Skip to content

Instantly share code, notes, and snippets.

@meschbach
Last active April 27, 2025 17:04
Show Gist options
  • Select an option

  • Save meschbach/aafb4d2eb4845b53a6b0a53f07635e45 to your computer and use it in GitHub Desktop.

Select an option

Save meschbach/aafb4d2eb4845b53a6b0a53f07635e45 to your computer and use it in GitHub Desktop.
Git permission error possible race condition?
> r0-gitea-896d4d79f-l6l4g:/data/git/gitea-repositories/{user}/{repo}.git$ ls -lah objects/pack/tmp_pack_7uusZK
> -r--r--r-- 1 git git 642.2K Apr 27 16:48 objects/pack/tmp_pack_7uusZK
r0-gitea-896d4d79f-l6l4g:/data/git/gitea-repositories/{user}/{repo}.git$ GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PERFORMANCE=2 GIT_TRACE_SETUP=2 GIT_TRACE_PACKFILE=2 GIT_TRACE=2 git bundle unbundle --progress gitea.bundle main
16:48:17.841901 trace.c:316 setup: git_dir: .
16:48:17.841922 trace.c:317 setup: git_common_dir: .
16:48:17.841933 trace.c:318 setup: worktree: (null)
16:48:17.841943 trace.c:319 setup: cwd: /data/git/gitea-repositories/{user}/{repo}.git
16:48:17.841952 trace.c:320 setup: prefix: (null)
16:48:17.841959 git.c:479 trace: built-in: git bundle unbundle --progress gitea.bundle main
16:48:17.842790 run-command.c:666 trace: run_command: git index-pack --fix-thin --stdin -v --progress-title 'Unbundling objects'
16:48:17.842848 run-command.c:758 trace: start_command: /usr/libexec/git-core/git index-pack --fix-thin --stdin -v --progress-title 'Unbundling objects'
16:48:17.856256 trace.c:316 setup: git_dir: .
16:48:17.856272 trace.c:317 setup: git_common_dir: .
16:48:17.856282 trace.c:318 setup: worktree: (null)
16:48:17.856290 trace.c:319 setup: cwd: /data/git/gitea-repositories/{user}/{repo}.git
16:48:17.856299 trace.c:320 setup: prefix: (null)
16:48:17.856307 git.c:479 trace: built-in: git index-pack --fix-thin --stdin -v --progress-title 'Unbundling objects'
Unbundling objects: 100% (2857/2857), 642.25 KiB | 15.66 MiB/s, done.
fatal: could not open 'objects/pack/tmp_pack_7uusZK' for reading: Permission denied
16:48:17.901023 trace.c:416 performance: 0.047080829 s: git command: /usr/libexec/git-core/git index-pack --fix-thin --stdin -v --progress-title 'Unbundling objects'
error: index-pack died
16:48:17.934453 trace.c:416 performance: 0.096011060 s: git command: git bundle unbundle --progress gitea.bundle main
r0-gitea-896d4d79f-l6l4g:/data/git/gitea-repositories/{user}/{repo}.git$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment