n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
45.66k stars 6.33k forks source link

GitLab trigger creates webhook on launch even when not needed #10621

Open lweinhard opened 2 weeks ago

lweinhard commented 2 weeks ago

Bug Description

I made a workflow that reacts to merge request changes for multiple projects and it turns out that we had to restart the machine n8n was hosted on. By doing so, we noticed that each time n8n restarted, it would create another webhook instead of using the existing one. This resulted in n8n creating multiple webhooks and therefore reacting to the same event multiple times.

Once n8n is botted and I'm enabling and disabling the workflow back and forth, the webhook gets correctly created and removed.

This behavior only happens on startup.

To Reproduce

  1. Shutdown n8n
  2. Launch n8n
  3. Monitor webhooks on a given project through Settings > Webhooks

Expected behavior

It should not create a new webhook and re-use existing ones.

Operating System

Linux 5.10.218-208.862.amzn2.x86_64

n8n Version

1.55.3

Node.js Version

Node v20.15.0

Database

SQLite (default)

Execution mode

main (default)

Joffcom commented 2 weeks ago

Hey @lweinhard,

We have created an internal ticket to look into this which we will be tracking as "GHC-196"