Skip to content

hitting rate limit on gitlab server #515

@gli-thales

Description

@gli-thales

Jenkins and plugins versions report

Environment
Jenkins: 2.492.1
OS: Linux - 5.15.0-1089-azure
Java: 17.0.14 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
Office-365-Connector:5.1.0
ace-editor:1.1
active-directory:2.39
analysis-model-api:13.1.0
ansicolor:1.0.6
ant:513.vde9e7b_a_0da_0f
antisamy-markup-formatter:173.v680e3a_b_69ff3
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
apache-httpcomponents-client-5-api:5.4-136.v5a_21779c63f8
artifactory:4.0.8
asm-api:9.7.1-97.v4cc844130d97
atlassian-bitbucket-server-integration:4.1.4
atlassian-jira-software-cloud:2.0.15
authentication-tokens:1.119.v50285141b_7e1
authorize-project:2.0.0
basic-branch-build-strategies:190.v343a_ee70d920
bitbucket:263.v7f6ef03c9ef8
bitbucket-push-and-pull-request:3.1.5
blueocean:1.27.16
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.16
blueocean-commons:1.27.16
blueocean-config:1.27.16
blueocean-core-js:1.27.16
blueocean-dashboard:1.27.16
blueocean-display-url:2.4.3
blueocean-events:1.27.16
blueocean-git-pipeline:1.27.16
blueocean-github-pipeline:1.27.16
blueocean-i18n:1.27.16
blueocean-jira:1.27.16
blueocean-jwt:1.27.16
blueocean-personalization:1.27.16
blueocean-pipeline-api-impl:1.27.16
blueocean-pipeline-editor:1.27.16
blueocean-pipeline-scm-api:1.27.16
blueocean-rest:1.27.16
blueocean-rest-impl:1.27.16
blueocean-web:1.27.16
bootstrap4-api:4.6.0-6
bootstrap5-api:5.3.3-2
bouncycastle-api:2.30.1.80-256.vf98926042a_9b_
branch-api:2.1214.v3f652804588d
build-monitor-plugin:1.14-961.v676e38a_7a_248
caffeine-api:3.2.0-166.v72a_6d74b_870f
changes-since-last-success:0.6
checks-api:2.2.3
cloud-stats:377.vd8a_6c953e98e
cloudbees-bitbucket-branch-source:910.v5b_9b_36e0379e
cloudbees-disk-usage-simple:232.v713eeed2e1f4
cloudbees-folder:6.982.vf165a_16c9507
command-launcher:118.v72741845c17a_
commons-compress-api:1.27.1-2
commons-httpclient3-api:3.1-3
commons-lang3-api:3.17.0-87.v5cf526e63b_8b_
commons-text-api:1.13.0-153.v91dcd89e2a_22
config-file-provider:982.vb_a_e458a_37021
confluence-publisher:136.vc30a_a_0d845d7
copyartifact:765.v0357cc6e6eb_3
cppcheck:1.26
credentials:1415.v831096eb_5534
credentials-binding:687.v619cb_15e923f
data-tables-api:2.2.2-1
dependency-check-jenkins-plugin:5.6.1
description-setter:264.v1957f215dcd5
display-url-api:2.209.v582ed814ff2f
docker-commons:445.v6b_646c962a_94
docker-custom-build-environment:1.7.3
docker-java-api:3.4.1-96.v77147a_de67f8
docker-plugin:1.9.0
docker-workflow:596.v3e6972b_46b_e2
dtkit-api:3.0.3
durable-task:581.v299a_5609d767
dynamic_extended_choice_parameter:1.0.1
echarts-api:5.6.0-5
eddsa-api:0.3.0-13.v7cb_69ed68f00
email-ext:1876.v28d8d38315b_d
embeddable-build-status:548.v5653c6e28c41
extensible-choice-parameter:1.8.1
external-monitor-job:221.v35059272565b_
favorite:2.225.v68765b_b_a_1fa_3
font-awesome-api:6.7.2-1
forensics-api:3.0.0
git:5.7.0
git-changelog:3.43
git-client:6.1.3
git-parameter:444.vca_b_84d3703c2
git-server:126.v0d945d8d2b_39
github:1.42.0
github-api:1.321-478.vc9ce627ce001
github-branch-source:1810.v913311241fa_9
gitlab-api:5.6.0-100.v83f8f4b_f1129
gitlab-branch-source:718.v40b_5f0e67cd3
gitlab-plugin:1.9.8
gradle:2.14
groovy:497.v7b_061a_a_de65d
gson-api:2.12.1-113.v347686d6729f
h2-api:11.1.4.199-30.v1c64e772f3a_c
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
htmlpublisher:1.37
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:82.v0597178874e1
ivy:2.9
jackson2-api:2.17.0-389.va_5c7e45cd806
jacoco:3.3.7
jakarta-activation-api:2.1.3-2
jakarta-mail-api:2.1.3-2
javadoc:310.v032f3f16b_0f8
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-133.vb_ec76a_73f706
jdk-tool:83.v417146707a_3d
jenkins-design-language:1.27.16
jenkins-jira-issue-updater:1.18
jersey2-api:2.45-154.v4ded3dc34f81
jfrog:1.5.8
jira:3.13
jira-ext:114.v7b_8b_1d4274c6
jira-steps:2.0.180.vccfe35b_5910d
jira-trigger:1.0.3
jjwt-api:0.11.5-120.v0268cf544b_89
jnr-posix-api:3.1.20-125.vb_6ec4b_21b_15e
job-dsl:1.90
jobConfigHistory:1305.vf20a_356586b_8
joda-time-api:2.14.0-127.v7d9da_295a_d51
jquery:1.12.4-3
jquery-detached:1.2.1
jquery3-api:3.7.1-3
jsch:0.2.16-86.v42e010d9484b_
json-api:20250107-125.v28b_a_ffa_eb_f01
json-path-api:2.9.0-148.v22a_7ffe323ce
jsoup:1.18.3-30.v952e9442d416
junit:1317.v5b_35d792b_06a_
ldap:776.vddf3e325103b_
lockable-resources:1349.v8b_ccb_c5487f7
log-parser:2.3.7
m2release:0.16.4
mailer:489.vd4b_25144138f
mapdb-api:1.0.9-40.v58107308b_7a_7
matrix-auth:3.2.4
matrix-project:849.v0cd64ed7e531
maven-plugin:3.25
mercurial:1309.v6802b_f0efb_b_9
metrics:4.2.21-461.v881e35d8fa_b_a_
mina-sshd-api-common:2.14.0-143.v2b_362fc39576
mina-sshd-api-core:2.14.0-143.v2b_362fc39576
momentjs:1.1.1
monitoring:2.5.0
multiselect-parameter:1.7
naginator:1.496.v94260e77b_3f5
nexus-artifact-uploader:2.14
nexus-jenkins-plugin:3.14.431.v37ca_dc788b_b_1
okhttp-api:4.11.0-183.va_87fc7a_89810
oss-symbols-api:296.v4981240eeb_1a_
pam-auth:1.11
people-view:1.2
pipeline-build-step:555.v589d5c24a_3d6
pipeline-config-history:1.6
pipeline-github-lib:65.v203688e7727e
pipeline-graph-analysis:231.v56354571a_da_0
pipeline-groovy-lib:752.vdddedf804e72
pipeline-input-step:513.v7eb_fe7e2c0fc
pipeline-maven:1488.vfd8c04864236
pipeline-maven-api:1488.vfd8c04864236
pipeline-milestone-step:127.vb_52887ca_3b_6d
pipeline-model-api:2.2221.vc657003fb_d93
pipeline-model-definition:2.2221.vc657003fb_d93
pipeline-model-extensions:2.2221.vc657003fb_d93
pipeline-rest-api:2.37
pipeline-stage-step:322.vecffa_99f371c
pipeline-stage-tags-metadata:2.2221.vc657003fb_d93
pipeline-stage-view:2.37
pipeline-utility-steps:2.19.0
plain-credentials:199.v9f8e1f741799
plugin-util-api:6.1.0
popper-api:1.16.1-3
popper2-api:2.11.6-5
powershell:2.3
prism-api:1.29.0-19
prometheus:819.v50953a_c560dd
publish-over:0.22
publish-over-ssh:387.vec3df0f668cd
pubsub-light:1.18
purge-build-queue-plugin:88.v23b_97b_f2c7a_d
rebuild:338.va_0a_b_50e29397
resource-disposer:0.25
role-strategy:756.v978cb_392eb_d3
run-condition:243.v3c3f94e46a_8b_
scm-api:704.v3ce5c542825a_
script-security:1373.vb_b_4a_a_c26fa_00
simple-theme-plugin:202.v6367d3dea_73b_
skip-certificate-check:1.1
slack:761.v2a_8770f0d169
sloccount:1.27
snakeyaml-api:2.3-123.v13484c65210a_
sonar:2.18
sse-gateway:1.27
ssh-agent:376.v8933585c69d3
ssh-credentials:359.v2191c4cf635f
ssh-slaves:2.1010.v64ec48721231
ssh-steps:2.0.79.v1d1b_5f76dda_8
sshd:3.353.v2b_d33c46e970
stashNotifier:1.516.v6d49910f22a_5
structs:343.vdcf37b_a_c81d5
subversion:1287.vd2d507146906
support-core:1637.v6a_6b_f31d4373
thinBackup:2.1.2
throttle-concurrents:2.16
timestamper:1.28
token-macro:444.v52de7e9c573d
trilead-api:2.190.v1ed19f8137f8
uno-choice:2.8.6
variant:70.va_d9f17f859e0
violation-comments-to-stash:1.134
warnings-ng:12.3.0
windows-slaves:1.8.1
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1373.v7b_813f10efa_b_
workflow-basic-steps:1079.vce64b_a_929c5a_
workflow-cps:4018.vf02e01888da_f
workflow-durable-task-step:1405.v1fcd4a_d00096
workflow-job:1540.v295eccc9778f
workflow-multibranch:800.v5f0a_a_660950e
workflow-scm-step:437.v05a_f66b_e5ef8
workflow-step-api:700.v6e45cb_a_5a_a_21
workflow-support:968.v8f17397e87b_8
ws-cleanup:0.48
xframe-filter-plugin:1.2
xray-connector:2.6.1
xunit:3.1.5

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

controller is running on ubuntu 20.04.6 LTS

Reproduction steps

  1. import a project

  2. save

  3. project scanning hits rate limiting on the server

  4. hit "Scan multibranch pileline now"

  5. project scanning hits rate limiting on the server

Expected Results

rate limiting should be understood but should allow the process to continue scan after a determine amount of time (can be configurable, to match the rate limiting on the server)

Actual Results

project never finishes scanning with this error

ERROR: [Thu Nov 06 14:57:53 PST 2025] Could not fetch branches from source cb6d295d-2ad6-4980-9968-3a65f74be6ad
[Thu Nov 06 14:57:53 PST 2025] Finished branch indexing. Indexing took 2 min 7 sec
FATAL: Failed to recompute children of Avant Platform » coresw
org.gitlab4j.api.GitLabApiException: Please Retry Later

  at PluginClassLoader for gitlab-api//org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:722)
  at PluginClassLoader for gitlab-api//org.gitlab4j.api.AbstractApi.get(AbstractApi.java:258)
  at PluginClassLoader for gitlab-api//org.gitlab4j.api.RepositoryFileApi.getFile(RepositoryFileApi.java:170)
  at PluginClassLoader for gitlab-api//org.gitlab4j.api.RepositoryFileApi.getFile(RepositoryFileApi.java:123)
  at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabSCMFile.type(GitLabSCMFile.java:92)
Caused: java.io.IOException
  at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabSCMFile.type(GitLabSCMFile.java:96)
  at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.getType(SCMFile.java:265)
  at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource$4.stat(GitLabSCMSource.java:739)
  at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory$1.isHead(WorkflowBranchProjectFactory.java:75)
  at PluginClassLoader for scm-api//jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:342)
  at PluginClassLoader for scm-api//jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:286)
  at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource.retrieve(GitLabSCMSource.java:387)
  at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource._retrieve(SCMSource.java:372)
  at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:282)
  at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:662)
  at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:272)
  at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:171)
  at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1065)
  at hudson.model.ResourceController.execute(ResourceController.java:101)
  at hudson.model.Executor.run(Executor.java:446)
Finished: FAILURE

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions