Webhooks on mirrored repositories broken #2597

Closed
opened 2025-11-02 04:41:36 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @serverwentdown on GitHub (Dec 1, 2018).

  • Gitea version (or commit ref): bc42b3a
  • Git version: 2.18.1
  • Operating system: Docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (try.gitea.io won't sync the mirror)
    • Not relevant
  • Log gist:

Description

Gitea synchronizes mirrors but triggering the webhooks fails with no error and the webhook does not get called, contuary to #4127. Pressing "Test Delivery" however, triggers the webhook successfully and causes previous failed webhooks to succeed.

Screenshots

Originally created by @serverwentdown on GitHub (Dec 1, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): bc42b3a - Git version: 2.18.1 - Operating system: Docker - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No (try.gitea.io won't sync the mirror) - [ ] Not relevant - Log gist: ## Description Gitea synchronizes mirrors but triggering the webhooks fails with no error and the webhook does not get called, contuary to #4127. Pressing "Test Delivery" however, triggers the webhook successfully and causes previous failed webhooks to succeed. ## Screenshots <img src="https://user-images.githubusercontent.com/1705906/49328760-a8369a00-f5b0-11e8-9cb5-8434193fff4d.png" width="240">
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:41:36 -06:00
Author
Owner

@stormmore commented on GitHub (Dec 3, 2018):

I am also facing this issue and I am using a PG backed instance. I have found that restarting Gitea has the resulting effect of sending the "missed" deliveries!

(Edit: FYI my instance's commit is 0da8bc9)

@stormmore commented on GitHub (Dec 3, 2018): I am also facing this issue and I am using a PG backed instance. I have found that restarting Gitea has the resulting effect of sending the "missed" deliveries! (Edit: FYI my instance's commit is `0da8bc9`)
Author
Owner

@stormmore commented on GitHub (Dec 17, 2018):

This is also happening on commit ad9f9cd and to confirm only for events that come in from the mirrors being synced.

I have an Org level webhook that works properly for other repos that are not mirrors.

@stormmore commented on GitHub (Dec 17, 2018): This is also happening on commit `ad9f9cd` and to confirm only for events that come in from the mirrors being synced. I have an Org level webhook that works properly for other repos that are not mirrors.
Author
Owner

@ericsgagnon commented on GitHub (Jan 7, 2019):

still an issue on v1.7 release - commit 41a2bfe, docker image deployment with PG backend. Mirroring from a gitlab repo.

@ericsgagnon commented on GitHub (Jan 7, 2019): still an issue on v1.7 release - commit 41a2bfe, docker image deployment with PG backend. Mirroring from a gitlab repo.
Author
Owner

@stefanak-michal commented on GitHub (Jan 16, 2019):

Hi.
I've same problem. I have webhook for create/delete repository in organization. Its working only for delete repository.

  • Gitea version (or commit ref): 1.7 (41a2bfe)
  • Git version: 2.18.0
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL (MariaDB 15.1)
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (It's running on private network)
    • Not relevant
  • Log gist:

vystrizek

I created webhook for it, because new created repository is not automatically assigned to all teams of owner organization. I'm just doing few API request with webhook target php script. If there is another option how to achieve it, I'll be glad for response.

@stefanak-michal commented on GitHub (Jan 16, 2019): Hi. I've same problem. I have webhook for create/delete repository in organization. Its working only for delete repository. - Gitea version (or commit ref): 1.7 (41a2bfe) - Git version: 2.18.0 - Operating system: CentOS 7 - Database (use [x]): * [ ] PostgreSQL * [x] MySQL (MariaDB 15.1) * [ ] MSSQL * [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: * [ ] Yes (provide example URL) * [x] No (It's running on private network) * [ ] Not relevant - Log gist: ![vystrizek](https://user-images.githubusercontent.com/5502917/51232337-9e050b00-1966-11e9-8dec-e79367b53559.PNG) I created webhook for it, because new created repository is not automatically assigned to all teams of owner organization. I'm just doing few API request with webhook target php script. If there is another option how to achieve it, I'll be glad for response.
Author
Owner

@LeKovr commented on GitHub (Jan 21, 2019):

Same problem. Also when I press "Test delivery" after mirroring, gitea raises several hooks simultaneously - one for every push at mirror + testing

@LeKovr commented on GitHub (Jan 21, 2019): Same problem. Also when I press "Test delivery" after mirroring, gitea raises several hooks simultaneously - one for every push at mirror + testing
Author
Owner

@tgly307 commented on GitHub (Jan 22, 2019):

Same problem in 1.6.2 release.

@tgly307 commented on GitHub (Jan 22, 2019): Same problem in 1.6.2 release.
Author
Owner

@stefanak-michal commented on GitHub (Jan 22, 2019):

One more information, I have this problem with normal repositories, not mirror.

@stefanak-michal commented on GitHub (Jan 22, 2019): One more information, I have this problem with normal repositories, not mirror.
Author
Owner

@ryan-harper-dentsu commented on GitHub (Mar 13, 2019):

same issue her for me as @stefanak-michal . Delete works but not the create for a repository.

@ryan-harper-dentsu commented on GitHub (Mar 13, 2019): same issue her for me as @stefanak-michal . Delete works but not the create for a repository.
Author
Owner

@stale[bot] commented on GitHub (May 12, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (May 12, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2597