Troubleshooting GitLab Orbit on GitLab Self-Managed
- Tier: Premium, Ultimate
- Offering: GitLab Self-Managed
When a request to GitLab Orbit fails, check these logs first:
The GitLab Rails log
knowledge_graph.logand the Workhorse log. For their locations, see Log system.The GitLab Orbit webserver log:
kubectl -n gitlab-orbit logs deployment/orbit-webserver
Then check the endpoint, the certificate, and the load balancer against Networking for GitLab Orbit.
Error: missing selected ALPN property
GitLab logs credentials: cannot check peer: missing selected ALPN property.
This issue occurs when a load balancer or proxy between GitLab and the webserver does not pass HTTP/2.
To resolve this issue, forward TCP at the load balancer, and terminate TLS on the webserver.
Error: i/o timeout on port 50054
This issue occurs on AWS when GitLab connects to one fixed Network Load Balancer address, and the webserver pod runs in a different zone.
To resolve this issue, turn on cross-zone load balancing in the webserver Service annotations.
Error: Unable to verify GitLab credits
This issue occurs when the GitLab Orbit webserver cannot verify your subscription with customers.gitlab.com, for example when a firewall blocks the connection.
To resolve this issue, allow outbound HTTPS from the webserver to customers.gitlab.com.
For more information, see Billing connections.
If the error persists after you allow access, contact GitLab Support.
Error: ontology archive vNN is missing
The dispatcher stops with ontology archive vNN is missing; seed the catalog from the exact deployed release before upgrading.
This issue occurs when NATS does not hold the schema archive of the active graph, and the running image does not include it.
For example, the archive was never published, the NATS volume was reset, or the graph comes from a release that the running image cannot upgrade.
To resolve this issue, point clickhouse.graph.database at a new database, upgrade GitLab Orbit, and wait for the first index to finish.
On a replicated cluster, create the database first.
If you created the users manually, run graph.sql again with ${GRAPH_DB} set to the new database.
After the first index finishes, you can drop the old database to free disk.
GitLab pods stay in ContainerCreating
After you turn on GitLab Orbit in the GitLab Helm chart values, new GitLab pods stay in ContainerCreating.
This issue occurs when the Secret that global.appConfig.orbit.jwtSecret names does not exist in the GitLab namespace.
The GitLab chart does not generate the key.
To resolve this issue, create the Secret, then upgrade GitLab again. For the steps, see Turn on GitLab Orbit in GitLab.
Error: insecure non-private channel
GitLab logs Skipping authorization header on insecure non-private channel, and every request to GitLab Orbit fails authentication.
This issue occurs when the gRPC endpoint has no tls:// scheme, and its host name resolves to an address outside the loopback and private ranges.
GitLab then does not send the authorization token.
To resolve this issue, use an endpoint host name that resolves only to loopback or private addresses, or set the endpoint to tls:// and terminate TLS on the webserver.
For the address ranges, see Use a plaintext connection.
For the TLS setup, see TLS and network requirements.
Siphon pods do not start
The Siphon pods never reach the Running state.
This issue occurs for one of these reasons:
- The
gitlab-siphon-tablesregistry has no tag for the GitLab version inglobal.gitlabVersion. waitForMigrations.enabledistruewith a Linux package instance. The pods wait for a GitLab migrations job in the cluster that does not exist.- The cluster cannot mount image volumes, and the pods fail with
no such fileerrors under/etc/tables.
To resolve this issue:
- Confirm that the
gitlab-siphon-tablesregistry has a tag for your GitLab version, and setglobal.gitlabVersionto that version. - On a Linux package instance, set
waitForMigrations.enabledtofalse. - If your cluster cannot use image volumes, set
splitTables.volumeMode: initCopy. For more information, see Image volumes.
Then run helm upgrade with the new values.
For the values file, see Install Siphon.
Siphon logs permission errors, and the data lake tables stay empty
The Siphon consumer pod is Running, but its logs show permission errors from ClickHouse, and the tables in the data lake stay empty.
This issue occurs when the ClickHouse role of the Siphon user lacks the dictGet grant.
To resolve this issue, as a ClickHouse administrator, grant dictGet on the data lake database to the siphon_app role:
GRANT dictGet ON gitlab_clickhouse_main_production.* TO siphon_app;Then restart the Siphon deployments:
kubectl -n siphon rollout restart deploymentFor the full grants, see Create the Siphon ClickHouse user.
CI/CD, vulnerability, and dependency tables are empty
Rows arrive in tables such as siphon_namespaces and siphon_projects, but the CI/CD, vulnerability, and dependency tables in the data lake stay empty, and Siphon logs no error.
This issue occurs when the table definitions that reference the ci and sec databases were removed from the Siphon configuration, for example to work around a generator failure caused by a missing database_mapping.
GitLab splits its schema across the main, ci, and sec databases, whether or not your instance stores them separately.
To resolve this issue, restore the table definitions, and map ci and sec onto main in database_mapping in siphon-values.yaml.
Then run the helm upgrade command from Install Siphon, and restart the Siphon deployments.
For more information, see Values file settings.
Recover from data loss
GitLab Orbit builds the graph from the data lake and from your repositories. If you lose the graph database, index again to rebuild it.
Prerequisites:
- A data lake that Siphon still replicates to.
To rebuild the graph database:
Run the
helm upgradecommand from Install GitLab Orbit. The setup hook creates the graph database again. On a replicated cluster, or if you create the users manually, create the database first. For the statement, see High availability.Restart the GitLab Orbit pods:
kubectl -n gitlab-orbit rollout restart deploymentThe dispatcher creates the graph tables in the empty database. The indexers then index every group with GitLab Orbit turned on.
After the first index finishes, run the query from Verify the installation.