mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-08 20:58:16 -05:00
[GH-ISSUE #203] [BUG]: Unable to create '...bundle.lock': No such file or directory on Nix #1963
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pedorich-n on GitHub (Mar 1, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/203
Originally assigned to: @arunavo4 on GitHub.
When running on NixOS, I faced an issue.
The initial mirror operation worked, but subsequent syncs fail with the error:
At first, I thought it was a permissions issue, but adding
ReadWritePaths = [ "/tmp" ];didn't change anything. Then I looked at the code, and I got a feeling that there's something wrong with the path construction. I feel like/tmp/gitea-mirror-backup-g9VYmK/repo.gitis one part, and/data/repo-backups/u5wbKMuhe95WV9fXH3y0DOcD4IX04B27/<OWNER_REDACTED>/<REPO_REDACTED>/2026-03-01T02-19-08-257Z.bundle.lockis something different, but somehow they got joined into one. 🤔It doesn't happen all the time, but some repos/branches synchronize sometimes. I can't find a pattern yet.
@arunavo4 commented on GitHub (Mar 1, 2026):
Fixed in #204 — the bundle path was being passed as relative to
git -C, so git resolved it against the temp clone dir instead of the actual backup directory. Swapped topath.resolve()to always guarantee an absolute path. Shipped in v3.10.1.