Skip to content

Failed to clone repository #270

Closed
Closed
@mstimvol

Description

@mstimvol

When Sourcebot syncs my repositories (around 480), a few of them (8) are failing with the following error:

[backend] | 2025-04-23T15:51:19.622Z error: [RepoManager] Failed to sync repository 447, attempt 2/3. Sleeping for 10s... Error: Error: Failed to clone repository

My conf looks like:

{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/refs/heads/main/schemas/v3/index.json",
    "connections": {
        "some-connection1": {
            "type": "github",
            "repos": ["myorga/repo"],
            "revisions": {
                "branches": [
                    "main",
                    "stable_v1",
                    "stable_v2"
                ]
            }
        },
        "some-connection2": {
            "type": "github",
            "repos": ["Behat/Gherkin"]
        },
        "some-connection3": {
            "type": "gitlab",
            "token": {
                "env": "GITLAB_TOKEN"
            },
            "groups": [
                "plugins"
            ],
            "url": "https://my-self-hosted-instance.tld"
        }
    }
}

I first thought it's because of the API limit in Gitlab or because one or two projects are archived, but I figured out that it also fails to sync sometimes "some-connection1" and "some-connection2" and furthermore, the 8 repositories are always other repos - not the same. Any ideas why the indexing fails?

I'm using v3.0.4 of Sourcebot

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions