Skip to main content

GitLab Server troubleshooting and FAQs

This page covers the most common issues seen with the GitLab Server (self-managed) connector and how to resolve them. If an issue persists after trying the remediation, contact Glean Support.

Setup and installation

Setup validation fails with an authentication error

Symptoms:

  • The connector fails to save with an authentication or authorization error.
  • The initial crawl does not start.
Likely causeRemediation
The personal access token was copied incorrectly or has expired.GitLab shows the token value only once. Generate a new personal access token and re-enter it.
The token is missing required scopes.Confirm the token has either the api scope or the read-only trio read_user, read_api, read_repository.
The instance domain or IP is wrong.Confirm the GitLab instance domain (for example, https://gitlab.company.com) and GitLab Server IP entered in the Admin console are correct.

Still not resolved? Contact Glean Support.

The crawler cannot reach the GitLab instance

Symptoms:

  • Setup fails with a connection timeout or network error.
  • Webhooks configured in GitLab never reach Glean.
Likely causeRemediation
The self-managed instance is not reachable from the Glean crawler.Your instance must be network-reachable by the Glean crawler running in your cloud (GCP or AWS). Contact Glean Support to confirm the required network configuration.
GitLab blocks local (outbound) requests from hooks and services.If the webhook target is on your local network, allow it under Admin AreaSettingsNetworkOutbound requests. See Appendix: allow webhooks over the local network.

Still not resolved? Contact Glean Support.

No projects or content are indexed after setup

Symptoms:

  • Setup succeeds, but few or no GitLab results appear in Glean.
Likely causeRemediation
The token owner does not have access to the projects.Glean only crawls projects the token can reach. Use an admin token, or grant the token owner access to the projects you want indexed.
The Crawl epics toggle is off.Epics are indexed by default via the Crawl epics toggle; if epics are missing, confirm it is still selected on the setup page. Merge requests, code, issues, and wikis are always indexed and cannot be turned off.
Namespace allow and block lists are excluding projects.If namespace filters were configured, confirm the projects fall within the allowed namespaces. Contact Glean Support to review them.

Still not resolved? Contact Glean Support.

Permissions and access

Users see the wrong GitLab content, or none at all

Symptoms:

  • A user sees GitLab results they should not have access to, or is missing results they should see.
Likely causeRemediation
A non-admin token was used without the user-mapping CSV.A non-admin token does not return user emails. Upload a complete user-mapping CSV, or switch to an admin token.
A specific user is not yet in the user-mapping CSV.Even with a CSV uploaded, a user whose GitLab ID is not listed cannot be resolved to a Glean identity, so they see no GitLab content. Add the user's numeric GitLab id and company email to the user-mapping CSV and re-upload it.
A non-admin token cannot see all project members.Non-admin tokens may miss members added through inaccessible groups. Upload a project permissions CSV, or switch to an admin token.
The CSV uses usernames instead of numeric user IDs.The user ID column must be the numeric GitLab id, not the username. Rebuild the CSV using IDs from the members API.
A permission change in GitLab has not yet propagated.Identity data refreshes hourly. Wait for the next identity crawl, then re-check.

Still not resolved? Contact Glean Support.

Content freshness

Changes in GitLab are slow to appear in Glean

Symptoms:

  • New or edited merge requests, issues, or wiki pages take a long time to show up in Glean.
Likely causeRemediation
Webhooks or the system hook were not created.With the api scope Glean creates webhooks automatically. With read-only scopes you must create webhooks and a system hook manually.
The webhook secret token does not match.The Webhook secret token in Glean must exactly match the secret token configured on the GitLab webhooks and system hook. Re-enter it in all places.
Webhooks cannot reach Glean over the local network.Allow local requests under Admin AreaSettingsNetworkOutbound requests. See Appendix: allow webhooks over the local network.
Waiting for a scheduled crawl.Without webhooks, updates arrive on scheduled incremental crawls (approximately hourly) and full crawls (approximately every 28 days).

Still not resolved? Contact Glean Support.

Epics are not indexed

Symptoms:

  • Epics do not appear in Glean even though Crawl epics is enabled.
Likely causeRemediation
The GitLab version is too old.Epic crawling requires GitLab 18.1 or later, which provides the GraphQL Work Items API. Upgrade your instance, or turn off Crawl epics.
The token cannot access the group that owns the epics.Epics are group-level. Use a token that can access the groups whose epics you want indexed.

Still not resolved? Contact Glean Support.

Code or commit content is missing

Symptoms:

  • Code Search does not return files or commit messages you expect.
Likely causeRemediation
The content is not on the default branch.Glean indexes code and commit messages only on the default branch. Content on other branches is not crawled.
The initial crawl is still running.Large repositories take time to crawl. Wait for the initial crawl to complete.

Still not resolved? Contact Glean Support.

FAQs