gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

webhook with error

Open aloisiobilck opened this issue 2 years ago • 3 comments
trafficstars

When trying to use the webhook, I see this error in the log.

{"ip-address":"10.6.0.96:37224","level":"debug","msg":"webhook request","time":"2023-10-04T13:50:43Z","user-agent":"GitLab/16.3.4-ee"}
{"error":"context canceled","level":"error","msg":"reading ref from the store","project-name":"group/frontend","ref":"aloisio-test1","ref-kind":"branch","time":"2023-10-04T13:50:43Z"}

Below is the configuration of my helm chart

config:
  log:
    level: debug
  gitlab:
    url: https://gitlab.mycompany.com
    token: <token>
    enable_health_check: false
    enable_tls_verify: true

  server:
    enable_pprof: true
    webhook:
      enabled: true
      secret_token: <token>

  pull:
    projects_from_wildcards:
      on_init: false
      scheduled: false

    environments_from_projects:
      on_init: false
      scheduled: false

    refs_from_projects:
      on_init: false
      scheduled: false

    metrics:
      on_init: false
      scheduled: false

  projects:
    - name: group/frontend

serviceMonitor:
  enabled: true

redis:
  enabled: true
  metrics:
    enabled: true
    serviceMonitor:
      enabled: true

ingress:
  enabled: true
  hosts:
    - gitlab-ci-pipelines-exporter.mycompany.com

Gitlab webhook status: image

Am I doing something wrong?

aloisiobilck avatar Oct 04 '23 14:10 aloisiobilck

I have very similar helm values and exactly the same error. One more info - when the scheduled pulls are enabled, they work just fine on this configuration.

vladimirblahoz avatar Oct 11 '23 10:10 vladimirblahoz

doesn't work for me with the latest release image (with redis, but works without redis), which is default in helm chart. Works fine with latest tag though.

Art3mK avatar Oct 30 '23 12:10 Art3mK

The same issue in my case, @Art3mK your "solution" works fine. It looks like a bug in v.0.5.5

Passarinho4 avatar Nov 13 '23 13:11 Passarinho4