Self Host Wizard Documentación

Registro de errores (glitchtip)

Registro de errores en una caja Self Host Wizard: la pieza glitchtip, en errors.<dominio de apps>, ingreso oidc, límite de memoria 427 MB.

De un vistazo

DatoValor
Direcciónhttps://errors.<dominio de apps>
Ingresooidc: OpenID Connect con Authelia: el ingreso de la oficina sirve también acá
Límite de memoria427 MB (ram_mb: pico medido × 1,3)
Base de datospostgres
Necesitalldap, authelia, postgres, stalwart
La necesitannada
Contenedoresglitchtip
Imagen: glitchtipglitchtip/glitchtip:7.0.0@sha256:c245745b4179667da3aebd73fb8d4f1fd918f7d68ba07d1fd73ea688933b6e01
Script de configuración al arrancarscripts/post-up.sh, diario
Licencia (según el README)MIT
Proyecto original (según el README)https://glitchtip.com

Cómo activarla

thx enable agrega glitchtip y todo lo que necesita al estado de la caja; después thx apply la instala. Las apps se aplican recién cuando site_domain está definido.

sudo thx enable glitchtip
sudo thx apply

Notas técnicas (pieces/glitchtip/README.md)

Las notas técnicas de cada pieza están en inglés, tal como están en el repositorio.

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 to THX_DATA/uploads; the image runs as uid 5000, so THX_DATA must be owned by 5000:5000 (data_owner, as forgejo). Events are kept 90 days (GlitchTip default).
  • Login only through Authelia (django-allauth OpenID Connect app authelia, created by post_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 uses client_secret_basic at the token endpoint (Authelia's default; allauth would otherwise send client_secret_post and Authelia rejects it) and asks for the groups scope.
  • 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 with HEADLESS_ONLY allauth'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, not Sec-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 (cookie thx_sso_tried), so a failed sign-in shows GlitchTip's error instead of looping.
  • Companies → organizations, at login. post_up creates one organization per org in THX_ORGS. LLDAP groups from the login's groups claim are applied when the person signs in (thx_sso/groups.py, on allauth's user_logged_in), and again by every post_up from each user's last login:

    LLDAP groupGlitchTip
    adminssuperuser (set and unset)
    org-<org>admin of organization <org> (create teams, projects); the first member becomes owner

    A 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_PORT from THX_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>.

Los datos de esta página salen de estos archivos del repositorio selfhostwizard:

  • pieces/glitchtip/piece.toml
  • pieces/glitchtip/compose.yaml
  • pieces/glitchtip/README.md
  • internal/piece/piece.go

Esta página se genera desde el código al compilar el sitio, así que cambia cuando cambia el código.