mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-23 16:11:17 -05:00
[GH-ISSUE #284] Repos exist in Gitea but missing from Mirror DB #2779
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 @nikhilbadyal on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/284
I ran into a state where many repos existed in Gitea, but Gitea Mirror didn’t have them in its database. Because cleanup only checks the Mirror DB, these repos were never detected as orphaned and cleanup reported “0 orphaned repos.”
What happened / evidence
orphanedCount: 0,processedCount: 0select ... from repositories where full_name like '%shoutrrr%'→[]nikhil/abc.This makes it impossible to keep Gitea and the Mirror DB consistent. Cleanup and UI state both rely on the DB, so “untracked” repos become invisible to maintenance features.
Expected behavior
If repos exist in Gitea, there should be a way to reconcile or detect DB mismatches.
Actual behavior
Cleanup reports zero orphans because the repos are not in the Mirror DB, even though they exist in Gitea.
Request / Feature Idea
Please add a “force reconcile” or “sync sanity check” feature that:
This is what i did to fix.
@nikhilbadyal commented on GitHub (May 4, 2026):
Stuck in this state.
GitHub Status

@arunavo4 commented on GitHub (May 5, 2026):
So when building this the expectation was that a clean new gitea would be paired with the application which acts as a backup tool
@nikhilbadyal commented on GitHub (May 5, 2026):
This was fresh gitea setup only. Created exclusively to be used with gitea-mirror.