update drone.yml receive multiple webhooks from Gitea #5679

Closed
opened 2025-11-02 06:32:50 -06:00 by GiteaMirror · 18 comments
Owner

Originally created by @ysicing on GitHub (Jul 2, 2020).

  • Gitea version (or commit ref): 1.13.0+dev-260-geea25f8d7 built with GNU Make 4.3, go1.14.4
  • Git version: 2.26.2
  • 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
    • Not relevant
  • Log gist:

Description

deploy gitea by docker

update drone.yml receive multiple webhooks from Gitea

Screenshots

image

image

image

Originally created by @ysicing on GitHub (Jul 2, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) 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): 1.13.0+dev-260-geea25f8d7 built with GNU Make 4.3, go1.14.4 - Git version: 2.26.2 - 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) - [ ] No - [ ] Not relevant - Log gist: ## Description deploy gitea by docker update drone.yml receive multiple webhooks from Gitea ## Screenshots ![image](https://user-images.githubusercontent.com/8605565/86368990-7287f480-bcb0-11ea-8008-d059fe5e1e4e.png) <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![image](https://user-images.githubusercontent.com/8605565/86368701-0c02d680-bcb0-11ea-8bc5-d77c06bebe97.png) ![image](https://user-images.githubusercontent.com/8605565/86369061-86335b00-bcb0-11ea-9617-d0730668ff18.png)
Author
Owner

@lunny commented on GitHub (Jul 2, 2020):

Did the two webhooks have the same content?

@lunny commented on GitHub (Jul 2, 2020): Did the two webhooks have the same content?
Author
Owner

@ysicing commented on GitHub (Jul 2, 2020):

Yes, you look at the execution result of CI and the time of triggering hook

@ysicing commented on GitHub (Jul 2, 2020): Yes, you look at the execution result of CI and the time of triggering hook
Author
Owner

@ysicing commented on GitHub (Jul 3, 2020):

create repo event:

image

@ysicing commented on GitHub (Jul 3, 2020): create repo event: ![image](https://user-images.githubusercontent.com/8605565/86425589-2a042180-bd18-11ea-9a54-baad80688dd3.png)
Author
Owner

@techknowlogick commented on GitHub (Jul 3, 2020):

@ysicing how many webhooks exist for the repo?

@techknowlogick commented on GitHub (Jul 3, 2020): @ysicing how many webhooks exist for the repo?
Author
Owner

@ysicing commented on GitHub (Jul 3, 2020):

image

Just one.

@techknowlogick

@ysicing commented on GitHub (Jul 3, 2020): ![image](https://user-images.githubusercontent.com/8605565/86428077-7eaa9b00-bd1e-11ea-8d20-286b127a41e4.png) Just one. @techknowlogick
Author
Owner

@ReactiioN1337 commented on GitHub (Jul 3, 2020):

I can confirm that. I also have only a single webhook in my repository and the webhook is called twice.

@ReactiioN1337 commented on GitHub (Jul 3, 2020): I can confirm that. I also have only a single webhook in my repository and the webhook is called twice.
Author
Owner

@ysicing commented on GitHub (Jul 31, 2020):

How do I troubleshoot this problem?
@lunny @techknowlogick

@ysicing commented on GitHub (Jul 31, 2020): How do I troubleshoot this problem? @lunny @techknowlogick
Author
Owner

@lunny commented on GitHub (Jul 31, 2020):

Could you also check orgnization webhooks and system webhooks?

@lunny commented on GitHub (Jul 31, 2020): Could you also check orgnization webhooks and system webhooks?
Author
Owner

@ysicing commented on GitHub (Aug 1, 2020):

No Webhooks found for orgnization and system
@lunny

@ysicing commented on GitHub (Aug 1, 2020): No Webhooks found for orgnization and system @lunny
Author
Owner

@techknowlogick commented on GitHub (Aug 1, 2020):

are you able to create a new test repo and set it up with a simple drone file to see if it happens on a different repo too?

@techknowlogick commented on GitHub (Aug 1, 2020): are you able to create a new test repo and set it up with a simple drone file to see if it happens on a different repo too?
Author
Owner

@ysicing commented on GitHub (Aug 1, 2020):

Looks like the same.
image
image

@techknowlogick

@ysicing commented on GitHub (Aug 1, 2020): Looks like the same. ![image](https://user-images.githubusercontent.com/8605565/89093993-0f45cb00-d3f2-11ea-997d-5091bb015df6.png) ![image](https://user-images.githubusercontent.com/8605565/89093999-1f5daa80-d3f2-11ea-8e8c-01d3068d50ae.png) @techknowlogick
Author
Owner

@thm7x commented on GitHub (Aug 29, 2020):

I have the same problem today.
Install on k8s using helm chart. docker images.gitea: "gitea/gitea:latest". All dependent resources are in k8s.
only one webhook url.

image

How can I fix it? Thanks

@thm7x commented on GitHub (Aug 29, 2020): I have the same problem today. Install on k8s using helm chart. docker images.gitea: "gitea/gitea:latest". All dependent resources are in k8s. only one webhook url. ![image](https://user-images.githubusercontent.com/35193505/91628676-b79c7e80-e9f4-11ea-87a5-68b4a5a5e7a0.png) How can I fix it? Thanks
Author
Owner

@techknowlogick commented on GitHub (Aug 29, 2020):

@flew990 which helm chart are you using?

@techknowlogick commented on GitHub (Aug 29, 2020): @flew990 which helm chart are you using?
Author
Owner

@thm7x commented on GitHub (Aug 29, 2020):

https://charts.k8s.land
@techknowlogick

@thm7x commented on GitHub (Aug 29, 2020): https://charts.k8s.land @techknowlogick
Author
Owner

@thm7x commented on GitHub (Aug 29, 2020):

values.yaml:

images:
  registry: docker.io
  gitea: "gitea/gitea:latest"
  pullPolicy: IfNotPresent
ingress:
  hostname: gitserver.pypygo.com
  annotations:
    kubernetes.io/ingress.class: nginx
  tls:
    - hosts:
      - gitserver.pypygo.com
      secretName: gitea.tls
  secrets: 
    - name: gitea-server-tls
      key: 4398188_core.harbor.pypygo.com.key
      certificate: 4398188_core.harbor.pypygo.com.pem
service:
  ssh:
    externalHost: git.pypygo.com
persistence:
  enabled: true
  existingGiteaClaim: gitea-pvc

@thm7x commented on GitHub (Aug 29, 2020): values.yaml: ``` images: registry: docker.io gitea: "gitea/gitea:latest" pullPolicy: IfNotPresent ingress: hostname: gitserver.pypygo.com annotations: kubernetes.io/ingress.class: nginx tls: - hosts: - gitserver.pypygo.com secretName: gitea.tls secrets: - name: gitea-server-tls key: 4398188_core.harbor.pypygo.com.key certificate: 4398188_core.harbor.pypygo.com.pem service: ssh: externalHost: git.pypygo.com persistence: enabled: true existingGiteaClaim: gitea-pvc ```
Author
Owner

@zeripath commented on GitHub (Oct 2, 2020):

Gitea currently needs to be restarted after running the install page. This problem appears to be due to the web hook service being initialised twice.

What should really happen is that the install page should run totally isolated from the rest of Gitea web with its own lifecycle. Doing that would be a large refactor when - and might still miss something. Shutdown and restart after install is easiest

@zeripath commented on GitHub (Oct 2, 2020): Gitea currently needs to be restarted after running the install page. This problem appears to be due to the web hook service being initialised twice. What should really happen is that the install page should run totally isolated from the rest of Gitea web with its own lifecycle. Doing that would be a large refactor when - and might still miss something. Shutdown and restart after install is easiest
Author
Owner

@zeripath commented on GitHub (Oct 2, 2020):

Moving the install check to before web starts would however save a lot of tests: currently Gitea checks every request if it should be showing the install page. That's frankly insane.

@zeripath commented on GitHub (Oct 2, 2020): Moving the install check to before web starts would however save a lot of tests: currently Gitea checks every request if it should be showing the install page. That's frankly insane.
Author
Owner

@ysicing commented on GitHub (Oct 9, 2020):

@zeripath The restart seems to be working.

@ysicing commented on GitHub (Oct 9, 2020): @zeripath The restart seems to be working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5679