jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.43k stars 613 forks source link

Got 503 while testing connection on configuration tab #1562

Open naxim92 opened 1 year ago

naxim92 commented 1 year ago

Jenkins-Gitlab connectivity

While I trying to configure integration with my gitlab server and test it I get error 503. And it's weird, but there are no traffic I see with tcpdump on ports 80 or 443. So it seems there is some bug here and configuration tab functionality just not working. Meanwhile gitlab is accessed successfully by ping and curl from Jenkins host image

Jenkins Version 2.401.2 GitLab Plugin 1.7.15

What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu 22.04 LTS

Reproduction steps

  1. Install Gitlab plugin
  2. Configure Gitlab plugin

Expected Results

Test OK

Actual Results

503 Service unavailable

Anything else?

No response

naxim92 commented 1 year ago

It seems there is a proxy (squid on 3128 port) in my setup and so your plugin go through proxy. And proxy give 503. But If I use no_proxy env - nothing changed - plugin still go through proxy.

$ sudo strings /proc/`ps aux | grep jenkins | grep -v 'grep' | awk '{print $2;}'`/environ 

<...>
no_proxy=<gitlab.my.domain>
https_proxy=http://proxy:3128/
<...>