Repository navigation
Troubleshooting
Start with Glint's log (docker logs glint, journalctl -u glint) and GitLab's webhook history (Settings → Webhooks → Edit → Recent events). Between them they show almost every problem.
Since v0.1.18 the log is JSON, one object per line. To read it, pipe it through npx pino-pretty, or filter with jq: docker logs glint | jq 'select(.level=="error" or .level=="warn")'. Set LOG_LEVEL=debug to also see webhooks Glint ignored. See Configuration → Logging.
| Symptom | Section |
|---|---|
| Container or process exits at startup | Glint won't start |
GitLab shows 401 for deliveries |
Webhook returns 401 Unauthorized |
GitLab shows 400
|
Webhook returns 400 |
202 but no comment on the MR |
Accepted but nothing is posted |
| TLS / certificate errors in the log | Certificate errors |
| "Invalid url given" when saving the webhook | Invalid url given when adding the webhook |
| GitLab can't connect / times out | GitLab can't reach Glint |
| No summary after pushing new commits | Nothing happens on new commits |
| Release description not updated, or wrong range | Release notes problems |
| Summary mentions truncation or seems incomplete | Summary is incomplete |
| e2e test fails | e2e test failures |
Glint validates its configuration before listening, and the last log line says what's wrong. See the table of startup errors.
-
Missing required environment variableunder Docker usually means the variables never reached the container. A.envfile isn't baked into the image; pass it with--env-fileor Composeenv_file:. - With the repository's example
docker-compose.yml, placeholder values underenvironment:overrideenv_file:— remove that block. See Deployment → Docker Compose. -
EADDRINUSE: another process uses the port. ChangePORT(from source) or the host side of the port mapping (Docker).
The response body says which mode failed. Glint also logs each rejection at warn (Rejected webhook: invalid token or invalid signature) with the caller's ip, which helps tell a misconfigured webhook from someone probing the endpoint.
invalid webhook token (secret token mode)
-
WEBHOOK_SECRETmust match the webhook's Secret token exactly. Look for trailing spaces or a newline in the env file, and quotes that became part of the value. - Re-enter the secret in GitLab: the field is write-only, so you can't check what's stored there.
invalid webhook signature (signing token mode)
-
WEBHOOK_SIGNING_TOKENmust be the signing token of this webhook. Regenerating the token in GitLab invalidates the old one. - The webhook must be configured with a signing token at all. If only a secret token is set in GitLab while Glint has
WEBHOOK_SIGNING_TOKEN, every request fails — Glint ignoresX-Gitlab-Tokenwhen a signing token is configured. -
Clock skew: signatures are only accepted within 5 minutes of Glint's clock. Check
date -uon the Glint host and enable NTP. - A proxy in front of Glint must not rewrite the request body (re-encoding JSON or changing whitespace breaks the signature).
A 400 with invalid JSON body means the request body wasn't valid JSON. GitLab always sends valid JSON, so this usually comes from a hand-written test request or a proxy that alters the body.
The project ID or MR IID in the payload isn't a positive integer, or the release tag is empty, over 255 characters, or contains whitespace or control characters. Genuine GitLab payloads always pass, so this usually means a hand-made or modified test request.
A 413 Payload Too Large means the JSON body exceeded Express's default 100 KB limit.
202 only means the event was accepted. The work happens afterwards, and failures only appear in Glint's log, at error level with "msg":"Failed to process merge request" (or release) and the cause in the error field, plus projectId and mrIid or tag. Versions before v0.1.18 log plain text: [webhook] Error processing MR !N: …. Common causes:
error field contains |
Cause and fix |
|---|---|
failed with status 401 on a GitLab URL |
GITLAB_TOKEN is invalid, expired or revoked. Create a new one with api scope. |
failed with status 403 |
The token's user can read the project but can't comment or edit releases. Give it Developer or above. |
failed with status 404 |
The token's user can't see the project, or GITLAB_BASE_URL is wrong (for example, includes /api/v4 or a path). |
certificate, self-signed, unable to get local issuer
|
See Certificate errors. |
ENOTFOUND, ECONNREFUSED, ETIMEDOUT
|
Glint can't reach GitLab or the AI provider (api.anthropic.com, or the host in OPENAI_BASE_URL) — DNS, firewall or proxy. For Ollama, check it's running and, from Docker, that the URL isn't localhost (use host.docker.internal). |
authentication_error, 401 from Anthropic |
ANTHROPIC_API_KEY is wrong or revoked. |
not_found_error / model mentioned |
ANTHROPIC_MODEL isn't a model your key can use. |
rate_limit_error, overloaded_error, credit / billing |
Anthropic rate limit, temporary overload, or no credit. Check the Anthropic Console. Glint doesn't retry; close and reopen the MR to try again. |
POST /chat/completions failed with status 401 |
OpenAI-compatible provider: OPENAI_API_KEY is missing, wrong or revoked. |
POST /chat/completions failed with status 404 |
OPENAI_MODEL isn't available on that server (for Ollama, run ollama pull <model>), or OPENAI_BASE_URL is missing its /v1 path. |
Unexpected response structure from the OpenAI-compatible API |
The server replied without text. Often the diff overflowed a small model's context: lower MAX_DIFF_CHARS. Otherwise the server isn't really OpenAI-compatible. |
timeout of 300000ms exceeded |
A local model took over five minutes. Use a smaller model, a GPU, or a lower MAX_DIFF_CHARS. |
If nothing at all is logged after the 202, check that you're looking at the right instance (several replicas, or an old container still running).
Errors such as self-signed certificate in certificate chain or unable to get local issuer certificate on GitLab calls mean Glint doesn't trust GitLab's CA. Set GITLAB_CA_FILE — see Private CA and TLS.
Hostname/IP does not match certificate's altnames means GITLAB_BASE_URL uses a name or IP the certificate doesn't cover. Use the hostname on the certificate.
GitLab blocks webhooks to local and private addresses by default. An administrator can allow them in Admin Area → Settings → Network → Outbound requests, either globally or for Glint's host only via the allowlist. See GitLab Webhook Setup.
Recent events show a connection error or timeout instead of a status code.
- From the GitLab server, run
curl -i http://<glint-host>:3000/health. - Check firewalls, the Docker port mapping (
docker psshows0.0.0.0:3000->3000/tcp), and that the URL ends in/webhook. - If GitLab runs in Docker too,
localhostinside the GitLab container is not the host. Use the host's address or a shared Docker network.
By design: only open and reopen actions are summarised. Pushing to an open MR sends action: update, which Glint ignores. Close and reopen the MR to get a fresh summary.
-
Not updated at all: check Releases events is ticked on the webhook, and that the release was created (edits send
update, which is ignored). Then check the log as in Accepted but nothing is posted. - Covers everything since the start: Glint found no earlier release. It looks for the release listed after the new one among the 10 most recent; releases created out of date order, or a first release, fall back to "all commits up to the tag" (capped at 100, without diffs).
- My description disappeared: Glint replaces the whole description. Keep hand-written notes elsewhere, or add them back after Glint has run.
- Tags without releases aren't considered. The range is between releases, not tags.
- MRs with more than 100 changed files: only the first 100 are fetched.
- Diffs over 20,000 characters (
MAX_DIFF_CHARS) are cut, and the prompt says so; the summary may mention it. - Small local models can lose track of a long diff even under the limit. Lower
MAX_DIFF_CHARSor use a larger model. - Replies are limited to 1,024 tokens, so very long summaries can stop mid-sentence.
Smaller, focused MRs get better summaries. Filtering out lock files and generated code is on the roadmap.
| Message | Fix |
|---|---|
WEBHOOK_SECRET not found in webhook-receiver/.env |
The harness signs its request with the secret token; set WEBHOOK_SECRET. |
ANTHROPIC_API_KEY not found |
Set it in webhook-receiver/.env, or set AI_PROVIDER=openai-compatible with OPENAI_MODEL to test the other provider. |
| Receiver exits immediately | It's missing a required variable: GITLAB_TOKEN must be non-empty (any value works against the mock). |
401 from the receiver |
WEBHOOK_SIGNING_TOKEN is set, so the receiver ignores the harness's secret token. Comment it out while testing. |
EADDRINUSE |
Ports 4000 or 3001 are taken. Set MOCK_GITLAB_PORT / RECEIVER_PORT. |
Polling timed out |
The model didn't answer within 60 s, or the receiver logged an error — read the [receiver] lines above. Raise NOTE_TIMEOUT_MS on slow connections. |
Cannot find module |
Run npm install in both webhook-receiver/ and e2e-test/. |
Open an issue with the Glint version (image tag or commit), the relevant log lines (remove tokens and internal hostnames), the webhook's response from Recent events, and your GitLab version. For security problems, see Security → Reporting a vulnerability instead.
Glint · MIT licence · Report an issue · Found a mistake in these docs? Open an issue and say which page.
Using Glint
Reference
Contributing
Help