[GH-ISSUE #165] Issues and PRs are not mirroring after initial sync #81

Closed
opened 2026-02-27 15:55:00 +03:00 by kerem · 5 comments
Owner

Originally created by @emrebasarannn on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/165

Originally assigned to: @arunavo4 on GitHub.

Having trouble with issue and pr mirroring.

For the initial sync + mirror, each issue mirrored successfully. But after that point no more issue or pr is being mirrored. I first initialized this repo 3 weeks ago and there is not a single more issue or pr since that day. I have to point out that my commits syncing just fine!


Here are logs: (i manually pushed sync button on the gitea-mirror for the repo devops-issue-management)

Starting sync for repository: devops-issue-management
[Sync] Starting sync for repository devops-issue-management
[Sync] Updating mirror interval for devops-issue-management to 8h
[Sync] Successfully updated mirror interval for devops-issue-management
[Releases] Verifying repository devops-issue-management exists at [organization_name]
[Releases] Found 0 releases (limited to latest 10) to mirror for [organization_name]/devops-issue-management
[Releases] No releases to mirror for [organization_name]/devops-issue-management
[Sync] Mirrored releases for devops-issue-management after sync
[Sync] Issues already mirrored for devops-issue-management; skipping
[Sync] Pull requests already mirrored for devops-issue-management; skipping
[Sync] Labels already mirrored for devops-issue-management; skipping
[Sync] Milestones already mirrored for devops-issue-management; skipping
Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA
Event published successfully with ID f7f25a3b-febd-4aa6-97b3-9e08cfe3720d
[Sync] Repository devops-issue-management synced successfully
Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA
Event published successfully with ID fb605e15-142f-4ed5-bd7a-1237e7bdba30
Syncing progress: 100% (1/1)
Successfully synced repository: devops-issue-management
Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA
Event published successfully with ID c5f4a002-1e21-441e-a97e-29e80c964295

[Sync] Issues already mirrored for devops-issue-management; skipping
When i manually check the original repo, i can see that there is multiple new issues that are not mirrored to my gitea. (the last mirrorred issue is 3 weeks old)


Images:

self hosted gitea image: docker.gitea.com/gitea:1.25.2
mysql image: docker.io/library/mysql:8

gitea-mirror image: ${DOCKER_REGISTRY:-ghcr.io}/${DOCKER_IMAGE:-raylabshq/gitea-mirror}:v3.9.2
(which i dont specify env variable for this, its taking default values)


My configuration on gitea-mirror:

Image
Originally created by @emrebasarannn on GitHub (Jan 12, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/165 Originally assigned to: @arunavo4 on GitHub. ### Having trouble with issue and pr mirroring. For the initial sync + mirror, each issue mirrored successfully. But after that point no more issue or pr is being mirrored. I first initialized this repo 3 weeks ago and there is not a single more issue or pr since that day. I have to point out that my commits syncing just fine! --- Here are logs: (i manually pushed `sync` button on the gitea-mirror for the repo `devops-issue-management`) ``` Starting sync for repository: devops-issue-management [Sync] Starting sync for repository devops-issue-management [Sync] Updating mirror interval for devops-issue-management to 8h [Sync] Successfully updated mirror interval for devops-issue-management [Releases] Verifying repository devops-issue-management exists at [organization_name] [Releases] Found 0 releases (limited to latest 10) to mirror for [organization_name]/devops-issue-management [Releases] No releases to mirror for [organization_name]/devops-issue-management [Sync] Mirrored releases for devops-issue-management after sync [Sync] Issues already mirrored for devops-issue-management; skipping [Sync] Pull requests already mirrored for devops-issue-management; skipping [Sync] Labels already mirrored for devops-issue-management; skipping [Sync] Milestones already mirrored for devops-issue-management; skipping Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA Event published successfully with ID f7f25a3b-febd-4aa6-97b3-9e08cfe3720d [Sync] Repository devops-issue-management synced successfully Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA Event published successfully with ID fb605e15-142f-4ed5-bd7a-1237e7bdba30 Syncing progress: 100% (1/1) Successfully synced repository: devops-issue-management Publishing event to channel mirror-status:OOU373nO0h7pIjjkdJzca7wirjyjnrWA for user OOU373nO0h7pIjjkdJzca7wirjyjnrWA Event published successfully with ID c5f4a002-1e21-441e-a97e-29e80c964295 ``` `[Sync] Issues already mirrored for devops-issue-management; skipping` When i manually check the original repo, i can see that there is multiple new issues that are not mirrored to my gitea. (the last mirrorred issue is 3 weeks old) --- ### Images: self hosted gitea image: docker.gitea.com/gitea:1.25.2 mysql image: docker.io/library/mysql:8 gitea-mirror image: ${DOCKER_REGISTRY:-ghcr.io}/${DOCKER_IMAGE:-raylabshq/gitea-mirror}:v3.9.2 (which i dont specify env variable for this, its taking default values) --- ### My configuration on gitea-mirror: <img width="867" height="870" alt="Image" src="https://github.com/user-attachments/assets/5380e04d-d192-44ab-b5c5-d32bbc37ea9f" />
kerem 2026-02-27 15:55:00 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@arunavo4 commented on GitHub (Jan 13, 2026):

@emrebasarannn Its a mistake on my part. I kept that resyncing for later cause the tracking and de-duplicating across github and gitea was getting too complex. Like when you first mirror it its fine but since we have issues and PR in same issues in gitea casue theres no way to do PR's tracking for gitea properly. I found that subsequent tracking of all the chnages /updates was too complex for all the metadata like issues / PR's / tags etc. Now one easy solution was to delete all and recreate it again. or build a complex tracking with id's etc.

<!-- gh-comment-id:3742337429 --> @arunavo4 commented on GitHub (Jan 13, 2026): @emrebasarannn Its a mistake on my part. I kept that resyncing for later cause the tracking and de-duplicating across github and gitea was getting too complex. Like when you first mirror it its fine but since we have issues and PR in same issues in gitea casue theres no way to do PR's tracking for gitea properly. I found that subsequent tracking of all the chnages /updates was too complex for all the metadata like issues / PR's / tags etc. Now one easy solution was to delete all and recreate it again. or build a complex tracking with id's etc.
Author
Owner

@emrebasarannn commented on GitHub (Jan 13, 2026):

Hi @arunavo4,

So what you are telling me is that there is no current solution for this? Other then deleting and re-mirroring to the gitea?

I dont think this is manageble at all because for our organizations, we have about 200+ repos. We needed a automatic tool that constantly backups our metadata without human interaction.

<!-- gh-comment-id:3742377714 --> @emrebasarannn commented on GitHub (Jan 13, 2026): Hi @arunavo4, So what you are telling me is that there is no current solution for this? Other then deleting and re-mirroring to the gitea? I dont think this is manageble at all because for our organizations, we have about 200+ repos. We needed a automatic tool that constantly backups our metadata without human interaction.
Author
Owner

@arunavo4 commented on GitHub (Jan 13, 2026):

@emrebasarannn Let me take a look at it again this week. as I had already planned to bulid this out. Let me see if I can find a way to solve this.

<!-- gh-comment-id:3742389425 --> @arunavo4 commented on GitHub (Jan 13, 2026): @emrebasarannn Let me take a look at it again this week. as I had already planned to bulid this out. Let me see if I can find a way to solve this.
Author
Owner

@emrebasarannn commented on GitHub (Jan 13, 2026):

@emrebasarannn Let me take a look at it again this week. as I had already planned to bulid this out. Let me see if I can find a way to solve this.

Okey thank you.

<!-- gh-comment-id:3742400870 --> @emrebasarannn commented on GitHub (Jan 13, 2026): > [@emrebasarannn](https://github.com/emrebasarannn) Let me take a look at it again this week. as I had already planned to bulid this out. Let me see if I can find a way to solve this. Okey thank you.
Author
Owner

@arunavo4 commented on GitHub (Feb 24, 2026):

Update: this is now handled in PR #184.

https://github.com/RayLabsHQ/gitea-mirror/pull/184

It fixes metadata sync so Issues and PRs continue syncing after the first run, updates existing mirrored entries instead of creating duplicates, and avoids duplicate mirrored comments on re-sync.

<!-- gh-comment-id:3949149457 --> @arunavo4 commented on GitHub (Feb 24, 2026): Update: this is now handled in PR #184. https://github.com/RayLabsHQ/gitea-mirror/pull/184 It fixes metadata sync so Issues and PRs continue syncing after the first run, updates existing mirrored entries instead of creating duplicates, and avoids duplicate mirrored comments on re-sync.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#81
No description provided.