sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

[bug] Unable to sync Gitlab when there are too many repositories in a group

Open abraverm opened this issue 7 months ago • 2 comments

Describe the bug

For example: https://gitlab.com/redhat/centos-stream/rpms The sync timeouts.

To reproduce

      gitlab-com = {
        type = "gitlab";
        token = {
          env = "GITLAB_COM_REDHAT_TOKEN";
        };
        groups = [
          "redhat/centos-stream/rpms"
          "redhat/centos-stream/tests"
        ];
      };

Sourcebot deployment information

Sourcebot version 4.16

Additional information

No response

abraverm avatar Apr 20 '26 21:04 abraverm

Hey @abraverm - could you include some error logs for this?

brendan-kellam avatar Apr 21 '26 16:04 brendan-kellam

Hey,

Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]: 2026-04-15T16:13:57.143Z error: [gitlab] Failed to fetch projects for group redhat/centos-stream/tests. Query timeout was reached
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]: GitbeakerTimeoutError: Query timeout was reached
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/node_modules/@gitbeaker/rest/dist/index.mjs:69:15
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async defaultRequestHandler (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/node_modules/@gitbeaker/rest/dist/index.mjs:67:22)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async getManyMore (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/node_modules/@gitbeaker/core/dist/index.mjs:70:26)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async fetchWithRetry (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/packages/backend/dist/utils.js:51:20)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async measure (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/packages/backend/dist/utils.js:8:18)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/packages/backend/dist/gitlab.js:89:50
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async Promise.allSettled (index 3)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async getGitLabReposFromConfig (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/packages/backend/dist/gitlab.js:86:34)
Apr 15 16:13:57 sourcebot sourcebot-backend[1491486]:     at async compileGitlabConfig (file:///nix/store/564nzlf6fbh74y623qpmrm5ppqd5cxsr-sourcebot/packages/backend/dist/repoCompileUtils.js:112:31)

abraverm avatar Apr 21 '26 19:04 abraverm