Error tracking (glitchtip)
Error tracking on a Self Host Wizard box: the glitchtip piece, served at errors.<apps domain>, oidc sign-in, memory limit 427 MB.
At a glance
| Field | Value |
|---|---|
| Address | https://errors.<apps domain> |
| Sign-in | oidc: OpenID Connect through Authelia: the office sign-in carries over |
| Memory limit | 427 MB (ram_mb: measured peak × 1.3) |
| Database | postgres |
| Needs | lldap, authelia, postgres, stalwart |
| Needed by | nothing |
| Containers | glitchtip |
Image: glitchtip | glitchtip/glitchtip:7.0.0@sha256:c245745b4179667da3aebd73fb8d4f1fd918f7d68ba07d1fd73ea688933b6e01 |
| Set-up script after start | scripts/post-up.sh, daily |
| Licence (from the README) | MIT |
| Upstream (from the README) | https://glitchtip.com |
Turn it on
thx enable adds glitchtip and everything it needs to the box's state; thx apply then installs it. Apps are applied only once site_domain is set.
sudo thx enable glitchtip
sudo thx apply
Engineering notes (pieces/glitchtip/README.md)
Upstream: GlitchTip 7.0.0, MIT, image glitchtip/glitchtip:7.0.0, pinned
by multi-arch index digest (docker buildx imagetools inspect lists linux/amd64 and
linux/arm64). We ship compose and config only.
Served at https://errors.<apps_domain>. Speaks the Sentry protocol: any official Sentry SDK
works with a GlitchTip DSN (the test uses sentry-sdk 3.0.0 for Python).
What it does on the box
- One container, no Valkey/Redis. 7.0 runs web (granian, 1 worker), the task worker and the
scheduler in one process. With
VALKEY_URL=""the cache is Django's database cache and the task queue is a Postgres table (django-vtasks DB backend); the test asserts both. Ingest runs at most 4 tasks at a time; uptime monitoring is off (that is Uptime Kuma's job). - Postgres through
THX_DB_*. Uploads (source maps, debug files) go toTHX_DATA/uploads; the image runs as uid 5000, soTHX_DATAmust be owned by5000:5000(data_owner, as forgejo). Events are kept 90 days (GlitchTip default). - Login only through Authelia (django-allauth OpenID Connect app
authelia, created bypost_up). First login creates the account (email from LLDAP). No local sign-up, no organization creation by users, no invites to addresses that have no account yet. Callback:https://errors.<apps_domain>/accounts/oidc/authelia/login/callback/. The app usesclient_secret_basicat the token endpoint (Authelia's default; allauth would otherwise sendclient_secret_postand Authelia rejects it) and asks for thegroupsscope. - Login is automatic (
scripts/thx_sso, mounted read-only at/code/thx_sso;DJANGO_SETTINGS_MODULE=thx_sso.settings= GlitchTip's settings plus this). GlitchTip's login page only offers a button, and withHEADLESS_ONLYallauth's/accounts/<provider>/login/answers 404, so a middleware does what the button does (allauth's headless provider redirect): a person who is not signed in and opens one of the app's pages from outside (GET,Sec-Fetch-Mode: navigate, notSec-Fetch-Site: same-origin) goes to Authelia and comes back to that page. Not after signing out from the app's own pages, never for the API, ingest or static files, and at most once a minute (cookiethx_sso_tried), so a failed sign-in shows GlitchTip's error instead of looping. Companies → organizations, at login.
post_upcreates one organization per org inTHX_ORGS. LLDAP groups from the login'sgroupsclaim are applied when the person signs in (thx_sso/groups.py, on allauth'suser_logged_in), and again by everypost_upfrom each user's last login:LLDAP group GlitchTip adminssuperuser (set and unset) org-<org>admin of organization <org>(create teams, projects); the first member becomes ownerA new person is in their organization on their first visit. Memberships are only added, never removed (removing could orphan an organization); leaving a company means an org owner removes the member in the UI.
- Mail through
THX_SMTP_HOST:THX_SMTP_PORTfromTHX_MAIL_FROM(alerts, invites).
Caddy
The ingest endpoints must stay reachable without forward auth: SDKs post to
/api/<project_id>/envelope/ and /api/<project_id>/store/ with the DSN key, from browsers and
servers anywhere. The rest of the app does its own login (OIDC), so the piece is auth = "oidc"
and Caddy just proxies.
Using it
Create a team and a project in your organization; Project → Settings → Client Keys shows the
DSN, https://<key>@errors.<apps_domain>/<project_id>. Then, for example in Python:
import sentry_sdk
sentry_sdk.init(dsn="https://<key>@errors.<apps_domain>/<project_id>")
RAM
Measured by test.sh (login of two users, project creation, one SDK event processed, mail, then
10 s idle): peak 248, 269, 283 and 309 MiB for the glitchtip container in four runs (the 309 on 2026-11-25, conform lane).
With the automatic sign-in (headless Chrome, sign-ins applying memberships at login; sso lane,
2026-11-25): 328 and 250 MiB. ram_mb = 427 (328 × 1.3, rounded up).
The worker starts 20 threads; a burst of events is bounded by the 4-task ingest limit.
Test
./test.sh (via HEAVY_CLASS=check ~/.cache/run-heavy.sh 4G <script>): post_up idempotent,
Authelia is the only login; in headless Chrome alice (Authelia session) opens GlitchTip and is
inside, in acme, with no click, and bob (no session) signs in at Authelia once and lands inside,
in beta; both log in again through the SPA's own button; post_up then has nothing to add; alice makes a team, project and DSN, bob cannot read it, sentry-sdk in its own
container sends an exception that shows up as issue SHOP-1, outsiders cannot be invited, mail
reaches the catcher, cache and queue are Postgres. Prints PASS glitchtip ram_peak_mb=<n>.