Hook execution failed: Net::ReadTimeout while trying to trigger job from Gitlab webhook

Hello,

As you can read from the topic I facing the following error while trying to trigger a job from Gitlab via webhooks.

image

I’ve updated all related Gitlab plugins to be up to date.
Tried to disable CSRF protections. It doesn’t help.

I’ve tested same repo with another Jenkins controller and it’s works.

So, what causes could be related with the issue?

I use the following configuration:

Jenkins: 2.392
OS: Linux - 4.4.0-142-generic
Java: 11.0.18 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)

ace-editor:1.1
active-directory:2.30
analysis-model-api:10.23.1
ant:481.v7b_09e538fcca
antisamy-markup-formatter:155.v795fb_8702324
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
artifactory:3.18.0
authentication-tokens:1.4
blueocean:1.27.2
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.2
blueocean-commons:1.27.2
blueocean-config:1.27.2
blueocean-core-js:1.27.2
blueocean-dashboard:1.27.2
blueocean-display-url:2.4.1
blueocean-events:1.27.2
blueocean-git-pipeline:1.27.2
blueocean-github-pipeline:1.27.2
blueocean-i18n:1.27.2
blueocean-jira:1.27.2
blueocean-jwt:1.27.2
blueocean-personalization:1.27.2
blueocean-pipeline-api-impl:1.27.2
blueocean-pipeline-editor:1.27.2
blueocean-pipeline-scm-api:1.27.2
blueocean-rest:1.27.2
blueocean-rest-impl:1.27.2
blueocean-web:1.27.2
bootstrap4-api:4.6.0-5
bootstrap5-api:5.3.2-1
bouncycastle-api:2.27
branch-api:2.1071.v1a_188a_562481
build-blocker-plugin:1.7.8
build-failure-analyzer:2.4.1
build-monitor-plugin:1.13+build.202205140447
build-name-setter:2.2.0
build-pipeline-plugin:1.5.8
build-timeout:1.28
build-timestamp:1.0.3
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloudbees-bitbucket-branch-source:796.v6cb_1559e1673
cloudbees-disk-usage-simple:178.v1a_4d2f6359a_8
cloudbees-folder:6.800.v71307ca_b_986b
cobertura:1.17
code-coverage-api:3.5.0
command-launcher:90.v669d7ccb_7c31
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.10.0-78.v3e7b_ea_d5a_fe1
compound-slaves:1.2
compress-buildlog:1.2
conditional-buildstep:1.4.2
config-file-provider:3.11.1
copyartifact:686.v6fd37018d7c2
cppcheck:1.26
credentials:1293.vff276f713473
credentials-binding:636.v55f1275c7b_27
dashboard-view:2.472.v9ff2a_e6a_c529
data-tables-api:1.12.1-4
delivery-pipeline-plugin:1.4.2
description-setter:1.10
display-url-api:2.200.vb_9327d658781
docker-commons:1.21
docker-workflow:563.vd5d2e5c4007f
durable-task:504.vb10d1ae5ba2f
dynamic-axis:1.0.3
echarts-api:5.4.0-6
email-ext:2.94
envinject:2.892.v25453b_80e595
envinject-api:1.199.v3ce31253ed13
extended-choice-parameter:359.v35dcfdd0c20d
extended-read-permission:3.2
external-monitor-job:203.v683c09d993b_9
favorite:2.4.1
flexible-publish:0.16.1
font-awesome-api:6.4.2-1
forensics-api:1.17.0
generic-webhook-trigger:1.86.2
git:5.2.0
git-changelog:3.28
git-client:4.5.0
git-server:99.va_0826a_b_cdfa_d
github:1.37.0
github-api:1.303-400.v35c2d8258028
github-branch-source:1701.v00cc8184df93
gitlab-api:5.3.0-91.v1f9a_fda_d654f
gitlab-oauth:1.18
gitlab-plugin:1.7.16
google-oauth-plugin:1.0.7
gradle:2.3
groovy:453.vcdb_a_c5c99890
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
htmlpublisher:1.31
http_request:1.16
instance-identity:142.v04572ca_5b_265
ionicons-api:56.v1b_1c8c49374e
ivy:2.4
jackson2-api:2.15.2-350.v0c2f3f8fc595
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:226.v71211feb_e7e9
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.8-1
jdk-tool:63.v62d2fd4b_4793
jenkins-design-language:1.27.2
jersey2-api:2.40-1
jira:3.9
jjwt-api:0.11.5-77.v646c772fddb_0
jnr-posix-api:3.1.16-2
job-dsl:1.81
job-import-plugin:3.6
jobConfigHistory:1198.v4d5736c2308c
jquery:1.12.4-1
jquery3-api:3.7.1-1
jsch:0.1.55.61.va_e9ee26616e7
junit:1240.vf9529b_881428
kubernetes:3883.v4d70a_a_a_df034
kubernetes-client-api:6.4.1-208.vfe09a_9362c2c
kubernetes-credentials:0.10.0
ldap:659.v8ca_b_a_fe79fa_d
leastload:3.0.0
locale:226.v008e1b_58cb_b_0
lockable-resources:1123.v4002ee23c671
log-parser:2.3.0
mailer:463.vedf8358e006b_
mapdb-api:1.0.9-28.vf251ce40855d
matrix-auth:3.1.6
matrix-project:808.v5a_b_5f56d6966
maven-plugin:3.20
mercurial:1260.vdfb_723cdcc81
metrics:4.2.13-420.vea_2f17932dd6
mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_
mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_
momentjs:1.1.1
monitoring:1.91.0
naginator:1.18.2
nodelabelparameter:1.11.0
oauth-credentials:0.5
okhttp-api:4.10.0-125.v3593b_a_f8c97b_
pam-auth:1.10
parameterized-trigger:2.45
pipeline-build-step:2.18.1
pipeline-github-lib:38.v445716ea_edda_
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-groovy-lib:629.vb_5627b_ee2104
pipeline-input-step:466.v6d0a_5df34f81
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2118.v31fd5b_9944b_5
pipeline-model-definition:2.2118.v31fd5b_9944b_5
pipeline-model-extensions:2.2118.v31fd5b_9944b_5
pipeline-rest-api:2.31
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2118.v31fd5b_9944b_5
pipeline-stage-view:2.31
plain-credentials:143.v1b_df8b_d3b_e48
plot:2.1.12
plugin-util-api:3.6.0
popper-api:1.16.1-3
popper2-api:2.11.6-2
postbuildscript:3.2.0-460.va_fda_0fa_26720
prism-api:1.29.0-2
prometheus:2.1.1
promoted-builds:892.vd6219fc0a_efb
publish-over:0.22
publish-over-ssh:1.24
pubsub-light:1.17
rebuild:1.34
repo:1.16.0
resource-disposer:0.21
rich-text-publisher-plugin:1.4
role-strategy:587.v2872c41fa_e51
run-condition:1.5
schedule-build:422.v5340de213c7e
scm-api:676.v886669a_199a_a_
scoring-load-balancer:59.vf791549fa_989
scp:1.8
script-security:1275.v23895f409fb_d
snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4
sse-gateway:1.26
ssh-credentials:308.ve4497b_ccd8f4
ssh-slaves:2.854.v7fd446b_337c9
sshd:3.275.v9e17c10f2571
structs:325.vcb_307d2a_2782
subversion:2.17.1
teamconcert:2.4.1
teamconcert-git:2.0.3
test-stability:2.3
timestamper:1.22
token-macro:384.vf35b_f26814ec
trilead-api:2.84.v72119de229b_7
uno-choice:2.6.4
variant:59.vf075fe829ccb
versionnumber:1.10
warnings-ng:9.23.1
windows-slaves:1.8.1
workflow-aggregator:590.v6a_d052e5a_a_b_5
workflow-api:1283.v99c10937efcb_
workflow-basic-steps:1010.vf7a_b_98e847c1
workflow-cps:3618.v13db_a_21f0fcf
workflow-durable-task-step:1234.v019404b_3832a
workflow-job:1326.ve643e00e9220
workflow-multibranch:733.v109046189126
workflow-scm-step:415.v434365564324
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.44

What is possible causes?

Thank you!

Hello @gtshv and welcome to this community. :wave:

The error you’re encountering generally points to an issue with network connectivity or a timeout during a webhook trigger.
Since you mentioned the issue does not occur on another Jenkins controller, chances are this is linked to your specific Jenkins configuration.

Check that there are no firewall rules or proxy settings blocking outgoing network connections from your Jenkins controller to Gitlab.

Check your network performance and connectivity between the two servers (ping could help).

Review the webhook configuration in your Gitlab repo settings, using the right protocol. Try to hit this URL from a machine outside your network to see if it can be reached.

Hello @poddingue and thanks for your reply.

I was able to solve it and how it happens often it was a small thing.

So, if it be useful for others the problem was that we are using IP to configure the webhook.

The solution was to use DNS record or FQDN.

Thank you once again!

1 Like

Thanks a lot for your feedback, @gtshv . :+1: