GuidesDevelopers and hostingErrors with GlitchTip

Track errors with GlitchTip and rootless Docker

GlitchTip 6 on Debian 13, the open-source error tracker that works with Sentry's own SDKs, in rootless Docker with PostgreSQL under a user of its own behind Caddy, with stack traces, source maps, uptime checks and alerts by email and webhook.

Tested on Docker steps follow the tested rootless Docker base guide on Debian 13 with Docker Engine 29.10.1, Compose 5.8.1 and rootlesskit 3.3.0; the app version and app-specific behaviour are from the tested Podman guide on a Melonslab server. Not re-tested end to end under Docker. Updated November 28, 2026

Recommended server for this guide

SSD RAID 1 · ECC DDR4 · 10 Gbit

VC-P Alloy · 2 vCPU · 8 GB Memory · 60 GB Storage

Month to month, no lock-in 7-day money-back guarantee

€8.99/mo

Deploy now

Quick install on a fresh VM

This command sets up a rootless container engine and a directory for this service. Podman is the default; add --engine docker to the command to use Docker instead.

curl -fsSL https://www.melonslab.com/install/rootless.sh | bash -s -- --app glitchtip-docker --manifest glitchtip --sha256 7ae55cfef6ff8f9851a5c8fcbef2d5f7f24d7a72204ee42816e5d86f0e3b6440
View the script

SHA-256: 97785be3e3e91393181a4a7caeab5f4b52803bf52e960dd488945cb38c6473a2

Run this guide on Melonslab

We ran every step below on our own server. For this workload we recommend VC-P Alloy at €8.99/mo. Order it, pick Debian 13, and follow the guide.

  1. 1. Order the server. Use the button below to order the recommended plan. Choose Debian 13 when the installer asks for an operating system.
  2. 2. Add IPv4 if needed. Add it on the order form when the guide publishes a service on the internet. It is a paid add-on, not included in the plan.
  3. 3. Connect over SSH. Log in as root with the address and credentials from your order, then run the commands below.
  4. 4. Follow the verified steps. Every command in this guide was run on a Melonslab server before it was published.
Deploy now
On this page

What you will set up

GlitchTip collects the errors your apps throw, groups them into issues and shows each one with its stack trace, the release it came from and how often it happens. It also measures how long requests and jobs take, checks that your sites are up, and sends alerts by email or to a chat. Your apps talk to it with Sentry's official SDKs, for Python, JavaScript, PHP, Go, Java, Ruby and many more, so an app that already reports to Sentry only needs a new address.

GlitchTip is made by Burke Software and Consulting, a small software company that also sells it as a hosted service, and developed in the open on GitLab. It is open source under the MIT licence. Sentry, which it is compatible with, can also be run on your own server, but it is a different kind of project. Its code is under the Functional Source License, which Sentry itself calls Fair Source rather than open source: you may run it for your own use, each release becomes Apache 2.0 after two years, and you may not offer it as a competing service. Its self-hosted version runs Kafka, ClickHouse, Redis, PostgreSQL and many other containers, and Sentry's documentation asks for at least 4 CPU cores, 16 GB of memory plus 16 GB of swap, and 20 GB of free disk (checked on 14 October 2026). It also has features GlitchTip lacks, such as session replay, profiling and release health. For a small team that wants errors, performance and uptime, GlitchTip does it in one application container and a database.

This Docker version follows the tested rootless Docker base guide on Debian 13. Here GlitchTip runs as a Compose project with PostgreSQL under a user of its own called glitchtip, behind Caddy from the Docker guide. The app-specific results below come from the tested Podman guide on a fresh Melonslab VC-P Alloy (2 vCPU, 8 GB) with Debian 13; they were not measured again under Docker. In that test:

  • GlitchTip 6.2.6 started with PostgreSQL 18 and no Valkey or Redis. The first account and the organisation were created over an SSH tunnel before Caddy was set up. After that, the sign-up page said "Registration is currently unavailable", and a second user could not create an organisation.
  • A team, a Python project and a Node.js project were created, and a second person joined through an email invitation.
  • A small Python app sent an error with the official Sentry SDK. GlitchTip showed it with the stack trace, the source lines and the local variables, and its 200 ms job under Performance. The issue was resolved, came back as unresolved when the same error arrived from a new release, and set off an alert by email and by webhook.
  • A minified Node.js app sent an error, and with its source maps uploaded by sentry-cli, GlitchTip showed the original file, function names and lines.
  • Uptime monitors checked an app on the same server and a heartbeat from a scheduled job, and sent alerts when each went down and came back.
  • A capture of the server's traffic showed no connections that we had not set up ourselves, and the browser loaded nothing from other sites.
  • An update from GlitchTip 6.2.3 to 6.2.6 pulled new images and ran its database migrations by itself. GlitchTip was restored from a backup into empty data directories, and everything came back by itself after a reboot.

In that test, the two containers used about 250 MB of memory: about 200 MB for GlitchTip and the rest for PostgreSQL. Its interface is in English only.

Before you start

You need:

  • a server set up as in the Docker guide, with Caddy running;
  • an A record and an AAAA record for errors.example.com pointing at your server;
  • an email account that GlitchTip can send from, for invitations, password resets and alerts (step 7).

The examples use errors.example.com for GlitchTip, 203.0.113.10 for your server's IPv4 address, Example for the organisation, anna@example.com for you and bob@example.com for a colleague. Replace them throughout.

1. Create the user

As root:

useradd -m -s /bin/bash glitchtip
loginctl enable-linger glitchtip
uid=$(id -u glitchtip)

The uid is looked up so the commands below work for any user. Keep it in this shell. Everything up to step 6 runs as glitchtip.

2. Let GlitchTip reach this server

A rootless container normally shares the server's own addresses, so an uptime check or a webhook aimed at an app on this server, such as https://wiki.example.com, would reach the container itself instead of Caddy. Compose puts the containers on a network of their own, with addresses of their own, so they can reach the server's public address and the apps behind Caddy. No extra network configuration is needed; this is the same fix as the Docker guide describes for apps that call each other on the same server.

It also lets the test apps in steps 9 and 10 send their errors to https://errors.example.com from this server.

3. Create the secrets

As root, create a 0600 environment file with the keys and the database password:

umask 077
mkdir -p /home/glitchtip/glitchtip
printf 'GLITCHTIP_SECRET_KEY=%s\n' "$(openssl rand -hex 32)" > /home/glitchtip/glitchtip/secrets.env
printf 'POSTGRES_PASSWORD=%s\n' "$(openssl rand -hex 24)" >> /home/glitchtip/glitchtip/secrets.env
printf 'DATABASE_PASSWORD=%s\n' "$(grep '^POSTGRES_PASSWORD=' /home/glitchtip/glitchtip/secrets.env | cut -d= -f2-)" >> /home/glitchtip/glitchtip/secrets.env
chown glitchtip:glitchtip /home/glitchtip/glitchtip/secrets.env

The first value is GlitchTip's secret key, which signs logins and the links in its emails. The second is the database password, passed to PostgreSQL as POSTGRES_PASSWORD and to GlitchTip as DATABASE_PASSWORD. Both are read from the file, not written into compose.yaml.

4. Define the Compose project

As root, create /home/glitchtip/glitchtip/compose.yaml:

services:
  db:
    image: docker.io/library/postgres:18
    container_name: glitchtip-db
    env_file:
      - ./secrets.env
    environment:
      POSTGRES_USER: glitchtip
      POSTGRES_DB: glitchtip
    volumes:
      - /home/glitchtip/glitchtip/db:/var/lib/postgresql
    healthcheck:
      test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "glitchtip", "-d", "glitchtip"]
      interval: 10s
    restart: always

  web:
    image: docker.io/glitchtip/glitchtip:6
    container_name: glitchtip-web
    depends_on:
      db:
        condition: service_healthy
    env_file:
      - ./secrets.env
    environment:
      SERVER_ROLE: all_in_one
      VALKEY_URL: ""
      GLITCHTIP_DOMAIN: https://errors.example.com
      ALLOWED_HOSTS: errors.example.com,localhost
      DATABASE_HOST: db
      DATABASE_NAME: glitchtip
      DATABASE_USER: glitchtip
      ENABLE_USER_REGISTRATION: "false"
      ENABLE_ORGANIZATION_CREATION: "false"
      GLITCHTIP_RETENTION_DAYS: "90"
    volumes:
      - /home/glitchtip/glitchtip/uploads:/code/uploads
    # Only Caddy, on this server, can reach GlitchTip: the port is not open to the internet.
    ports:
      - "127.0.0.1:8191:8000"
    restart: always

What the settings do:

  • SERVER_ROLE=all_in_one runs the web server and the background worker, which processes events and sends alerts, in one container. GlitchTip can split them into separate web and worker containers to handle more traffic; a small team does not need that.
  • VALKEY_URL left empty tells GlitchTip not to use Valkey or Redis. Since GlitchTip 6, PostgreSQL holds the task queue and the cache, and older guides that start a Redis container are out of date. GlitchTip's sample setup still includes Valkey as an option for busier servers.
  • GLITCHTIP_DOMAIN is the public address GlitchTip puts in links, emails and the DSNs of your projects. ALLOWED_HOSTS makes it answer only to that name, and to localhost for step 5.
  • ENABLE_USER_REGISTRATION=false closes the sign-up page, and ENABLE_ORGANIZATION_CREATION=false stops users from creating organisations of their own. GlitchTip still lets the very first account sign up, which is why step 5 creates it before the site is online.
  • GLITCHTIP_RETENTION_DAYS is how long events, performance data and uptime checks are kept. Step 14 has more.
  • The database password reaches GlitchTip as DATABASE_PASSWORD, separate from the other database settings, so it stays in the secret file. Source maps and other uploaded files go in /home/glitchtip/glitchtip/uploads; everything else is in the database.

Start it as the user:

chown -R glitchtip:glitchtip /home/glitchtip/glitchtip
runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose up -d'

The first start downloads about 1.2 GB of images, and GlitchTip takes a minute to set up its database. It is ready when this prints 200:

curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8191/

docker compose logs web from /home/glitchtip/glitchtip starts with a summary of the settings, such as Email: disabled (no transport configured), Cache/Queue: Database and Event retention: 90 days.

5. Create your account

The first account on a new GlitchTip can always sign up, and so can the first organisation, whoever creates them. Create both before the site is online, through an SSH tunnel. On your own computer:

ssh -L 8191:localhost:8191 root@203.0.113.10

Keep that connection open, and open http://localhost:8191 in your browser. Choose Sign Up, enter your email address and a password, and choose Register. GlitchTip logs you in and asks for an organisation: enter its Name, such as Example, and choose Create Organization. The name becomes part of addresses, such as /example/issues.

Close the tunnel with exit.

6. Put Caddy in front

As root, switch to runuser -u caddy -- /bin/bash, and add this block at the end of ~/Caddyfile:

errors.example.com {
    reverse_proxy 127.0.0.1:8191
}

Restart Caddy with runuser -u caddy -- env HOME=/home/caddy XDG_RUNTIME_DIR=/run/user/$(id -u caddy) DOCKER_HOST=unix:///run/user/$(id -u caddy)/docker.sock PATH=/usr/bin:/bin bash -lc 'cd /home/caddy/caddy && docker compose restart caddy', open https://errors.example.com, and log in. https://errors.example.com/register now says "Registration is currently unavailable. Contact your server administrator."

Under Profile > MFA you can add an authenticator app or a security key to your account. GlitchTip asks you to confirm your email address first, which needs email from step 7.

7. Email

GlitchTip sends email for invitations, password resets, confirming email addresses and alerts. Without it, GlitchTip starts and works, but:

  • an invitation says "An email invite has been sent", and nothing is sent, so the person cannot join;
  • Reset Password on the login page sends nothing;
  • multi-factor authentication cannot be set up, since the email address cannot be confirmed;
  • alerts can only go to webhooks.

Send through your email provider's SMTP server. As root, append the password to the secret file:

umask 077
printf 'EMAIL_HOST_PASSWORD=%s\n' 'the-smtp-password' >> /home/glitchtip/glitchtip/secrets.env

Then add these lines to the environment: section of the web service in compose.yaml, with your own server, account and sender address:

      EMAIL_HOST: smtp.example.com
      EMAIL_PORT: "587"
      EMAIL_USE_TLS: "true"
      EMAIL_HOST_USER: errors@example.com
      DEFAULT_FROM_EMAIL: errors@example.com

And restart the web service:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose up -d web'

The log now shows Email: SMTP. Port 587 with EMAIL_USE_TLS=true uses STARTTLS; for port 465, which uses TLS from the start, set EMAIL_PORT to 465 and EMAIL_USE_SSL to true instead of EMAIL_USE_TLS. To check it, use Reset Password on the login page with your own address. We tested sending with a mail catcher on the server, where the invitation, the password reset, the address confirmation and every alert arrived; we did not send through a real provider.

8. Teams, projects and people

In GlitchTip, an organisation has teams, and each project, usually one app, belongs to a team. Alerts by email go to the members of the project's team.

Choose Projects, then Create new project in Example. Pick the Platform, such as Python, and give it a Name, such as shop-api. Under the name, Create a team makes a team, such as backend, and adds you to it. Choose Create Project. GlitchTip then shows how to install the SDK, with the project's DSN filled in, an address like https://4f1c…@errors.example.com/1. The DSN tells the SDK where to send events; it is not a password, and it ends up in front-end code that anyone can read. You find it again under Settings for the project, in Client Keys (DSN).

With registration closed, GlitchTip only invites people who already have an account. Create Bob's account as glitchtip, without a password:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && \
    docker compose exec -T web ./manage.py shell -c '"'"'from apps.users.models import User; User.objects.create_user("bob@example.com", None)'"'"''

Then choose Organization > Members > Invite Member, enter his address, pick a Role and a Team, and choose Add Member(s). Bob gets an invitation by email. He sets his password with Reset Password on the login page, logs in, and opens the link in the invitation to join. Member can see and handle issues; Admin, Manager and Owner can also change projects, teams and members.

9. Send your first error from Python

To see it work before you change a real app, send an error from a small script in a throwaway Python container on the server. As glitchtip:

mkdir -p /home/glitchtip/sdk-test && cd /home/glitchtip/sdk-test

Create app.py:

import os, time
import sentry_sdk

sentry_sdk.init(
    dsn=os.environ["SENTRY_DSN"],
    release=os.environ.get("RELEASE", "shop-api@1.0.0"),
    environment="production",
    traces_sample_rate=1.0,
)

def average(values):
    return sum(values) / len(values)

def nightly_report(orders):
    return {"average": average([o["total"] for o in orders])}

with sentry_sdk.start_transaction(op="task", name="nightly-report"):
    with sentry_sdk.start_span(op="db.query", name="load orders"):
        time.sleep(0.2)
        orders = []
    nightly_report(orders)

Run it with the DSN of your Python project, through the same rootless Docker socket:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/sdk-test && \
    docker run --rm -v ./app.py:/app.py:ro -e RELEASE -e SENTRY_DSN="https://4f1c…@errors.example.com/1" \
    docker.io/library/python:3.13-slim sh -c "pip install -q --root-user-action=ignore sentry-sdk && python /app.py"'

The script ends with ZeroDivisionError: division by zero, and the SDK sends it as it exits. Under Issues, GlitchTip shows ZeroDivisionError: division by zero. Open it to see the stack trace, from <module> through nightly_report to average, with the source lines around each and the value of values, which was [], plus the release, the environment and the Python version. Performance lists the nightly-report job and how long it took.

In a real app, the sentry_sdk.init() call goes where the app starts. traces_sample_rate is the share of requests and jobs whose timing is sent: 1.0 sends all of them, which is fine for a test; use something like 0.1 in production, as each one is stored. GlitchTip shows its own setup instructions for each platform when you create a project.

10. JavaScript and source maps

Minified JavaScript gives stack traces full of one-letter names. Upload the source maps from your build, and GlitchTip shows the original code. This works with Sentry's sentry-cli, the same way as with Sentry.

First, create a token for uploads: Profile > Auth Tokens > Create New Token, give it a Label, tick project:read, project:releases and org:read, and choose Create Token. Then create a project with the platform Node.js, named shop-web, as in step 8.

As glitchtip, make a small app:

mkdir -p /home/glitchtip/js-test/src && cd /home/glitchtip/js-test

Create src/app.js:

const Sentry = require("@sentry/node");

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  release: "shop-web@1.0.0",
  environment: "production",
  tracesSampleRate: 1.0,
});

function parsePrice(text) {
  return Number(text.trim().replace(",", "."));
}

function cartTotal(items) {
  return items.reduce((sum, item) => sum + parsePrice(item.price) * item.qty, 0);
}

Sentry.startSpan({ name: "checkout", op: "task" }, () => {
  cartTotal([{ price: "12,50", qty: 2 }, { price: undefined, qty: 1 }]);
});

Paste the token when this waits for it, so it does not end up in your shell history:

read -rs SENTRY_AUTH_TOKEN && export SENTRY_AUTH_TOKEN

Then build it minified, with source maps, and upload them:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin SENTRY_AUTH_TOKEN="$SENTRY_AUTH_TOKEN" \
  bash -lc 'cd /home/glitchtip/js-test && docker run --rm -v .:/app -w /app \
    -e SENTRY_AUTH_TOKEN -e SENTRY_URL=https://errors.example.com \
    -e SENTRY_ORG=example -e SENTRY_PROJECT=shop-web \
    docker.io/library/node:22-slim sh -c '"'"'
npm init -y >/dev/null
npm install --silent @sentry/node
npm install --silent --save-dev esbuild @sentry/cli
npx esbuild src/app.js --bundle --minify --sourcemap --platform=node --packages=external --outfile=dist/app.js
npx sentry-cli sourcemaps inject dist
npx sentry-cli sourcemaps upload --release shop-web@1.0.0 dist'"'"''

sourcemaps inject writes a debug ID into the built file and its map, and sourcemaps upload sends both to GlitchTip, ending with a Source Map Upload Report. Now run the minified app with the project's DSN:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/js-test && \
    docker run --rm -v .:/app -w /app -e SENTRY_DSN="https://9a2e…@errors.example.com/2" \
    docker.io/library/node:22-slim node dist/app.js'

On the server, the error says at c (/app/dist/app.js:3:167). In GlitchTip, the same error shows ../src/app.js in parsePrice at line 11, with the original source. In a real project, run the two sentry-cli commands in your build after each release, with the token as a secret in your CI. For browser apps, use @sentry/browser or the SDK for your framework instead of @sentry/node.

11. Resolve, regressions and releases

Open an issue, and use the Unresolved menu at the top:

  • Resolved closes it. If the same error comes back, GlitchTip opens it again. We resolved the Python issue, ran the script again with RELEASE=shop-api@1.0.1 in front of the docker run from step 9, and the issue was unresolved again, with two events and shop-api@1.0.1 as its latest release.
  • Resolve in next release closes it until an event arrives from a newer release.
  • Ignored hides it, for errors you have decided to live with.

Releases lists every release that has sent events or source maps. Setting release in the SDK, as in the examples, is what lets you see which version brought an error back.

12. Uptime monitors

Choose Uptime Monitors > Add monitor. The types:

  • GET and POST send a request to a Site URL and expect a success code; you can also require a word in the response.
  • Ping sends an HTTP HEAD request, not an ICMP ping.
  • TCP Port checks that a port answers.
  • Heartbeat works the other way: your job calls GlitchTip, and the monitor goes down when the call does not arrive in time.

Each monitor belongs to a project, under Associated Project, and alerts go to that project's team. Interval (seconds) is how often it checks.

GlitchTip refuses monitors for private addresses, such as http://127.0.0.1:8191/, with "There was an error saving your monitor details", so that users cannot probe your internal network. Point monitors at the public address of a site instead; step 2 is what makes that work for sites on this server.

A heartbeat suits backups and other scheduled jobs. Create a Heartbeat monitor with an interval a little longer than the job's, and copy the Endpoint URL from the monitor's page. Then make the job call it when it succeeds, for example in a crontab:

30 2 * * * /usr/local/bin/backup.sh && curl -fsS -X POST https://errors.example.com/api/0/organizations/example/heartbeat_check/160bc2c5-…/

In our tests, a new monitor sent a "back up" email after its first check, a stopped app on this server sent "Test site is down" within a minute, and a heartbeat that did not arrive sent "Nightly backup is down".

13. Alerts

Alerts are set per project, under Settings for the project > Project Alerts > Create New Alert:

  • Tick If an event happens, and set Quantity and Timespan, such as 1 time in 1 minute to hear about every new error, or higher to hear only about errors that happen often.
  • Tick If an uptime monitor is triggered to get the project's uptime alerts too.
  • Recipients starts with email, which goes to the members of the project's team. Add An Alert Recipient adds a webhook: General (slack-compatible) Webhook, which also suits Mattermost and Rocket.Chat, Discord, Google Chat, ntfy, Microsoft Teams, Zulip or Feishu (Lark) Webhook, with its Webhook URL.

Choose submit. With one event in one minute, the regression in step 11 sent an email, "Error in shop-api: ZeroDivisionError: division by zero", and posted GlitchTip Alert with the issue's title, link, project, environment and release to the webhook, about a minute after the event. Uptime alerts post GlitchTip Uptime Alert. For push notifications on your phone, ntfy works as a recipient.

Webhooks cannot point at private addresses either, and GlitchTip does not follow redirects for them. Each user can also turn alert emails off for a project under Profile > Notifications.

14. Retention and limits

GlitchTip deletes events, performance data and uptime checks older than GLITCHTIP_RETENTION_DAYS, 90 days by default. Older guides call it GLITCHTIP_MAX_EVENT_LIFE_DAYS, which still works. To keep 30 days, change the line in compose.yaml, then recreate the web service as in step 7. The log then shows Event retention: 30 days. GLITCHTIP_EVENT_RETENTION_DAYS, GLITCHTIP_TRANSACTION_RETENTION_DAYS and GLITCHTIP_UPTIME_RETENTION_DAYS set each kind separately.

Each event is checked for size when it arrives. In our tests, a compressed event that grew past 5 MB when unpacked was refused with Cannot parse request body, and a request body over 15 MB got 413. The first limit is GLITCHTIP_MAX_UNZIPPED_PAYLOAD_SIZE. The SDKs compress what they send and trim large values before they do.

GlitchTip itself does not limit how many events a project may send on your own server: 60 events sent at once were all accepted. A loop that throws errors will fill the database. Keep the number down in the SDK, with sample_rate for errors and traces_sample_rate for performance, and watch the disk with df -h and docker system df.

15. Outside connections

GlitchTip makes no connections of its own. We captured the server's DNS lookups and outgoing connections while GlitchTip started, received events, took source maps and sent alerts. The only ones were those we had set up: the uptime monitors, the webhooks, the email server, and the test apps sending to errors.example.com. There was no update check and no usage data. In the browser, every page loaded only from errors.example.com.

The SDKs in your apps send their events only to the address in the DSN. Each event can contain request data, local variables and user details. The Python SDK leaves out personal data unless you set send_default_pii=True, and GlitchTip can remove secrets from events as they arrive; see GLITCHTIP_PII_SCRUB_DEFAULT in its documentation, which we did not test.

16. Back up

As root:

umask 077
mkdir -p /root/backup
runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose exec -T db pg_dump -U glitchtip -Fc glitchtip > glitchtip-db.dump'
cp /home/glitchtip/glitchtip/glitchtip-db.dump /root/backup/glitchtip-db.dump
tar -czf /root/backup/glitchtip.tar.gz -C /home/glitchtip glitchtip

The database holds the users, organisations, projects, issues, events, monitors and alerts. The archive also holds the uploaded source maps, the Compose file and secrets.env. The dump runs while GlitchTip keeps working. Copy /root/backup to another machine, for example with restic, and keep it private: the events can contain your users' data.

To restore into empty data directories, as root, with the backup in /root/backup:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose down'
rm -rf /home/glitchtip/glitchtip/db /home/glitchtip/glitchtip/uploads
tar -xzf /root/backup/glitchtip.tar.gz -C /home/glitchtip
cp /root/backup/glitchtip-db.dump /home/glitchtip/glitchtip/glitchtip-db.dump
chown -R glitchtip:glitchtip /home/glitchtip/glitchtip
runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose up -d db'
runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose exec -T db pg_restore -U glitchtip -d glitchtip --no-owner < glitchtip-db.dump'
runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose up -d'

Starting only the database first loads the backup before GlitchTip sets up an empty one. On a new server, set it up as in steps 1 to 4 first, but restore secrets.env from the backup instead of creating new values in step 3: with a new secret key, users are logged out and links in emails stop working.

17. Update

Add the weekly update timer from the Docker guide and test it once:

runuser -u glitchtip -- env XDG_RUNTIME_DIR=/run/user/$uid \
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus PATH=/usr/bin:/bin \
  systemctl --user enable --now docker-update.timer
runuser -u glitchtip -- env XDG_RUNTIME_DIR=/run/user/$uid \
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus PATH=/usr/bin:/bin \
  systemctl --user start docker-update.service

The timer runs docker compose pull and docker compose up -d from /home/glitchtip/glitchtip, which checks for new GlitchTip and PostgreSQL images and recreates the containers when one has changed. GlitchTip runs its database migrations when it starts, which shows as Applying … lines in its log. To update now:

runuser -u glitchtip -- env HOME=/home/glitchtip XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/glitchtip/glitchtip && docker compose pull && docker compose up -d'

The 6 tag follows every GlitchTip 6 release, and 18 every PostgreSQL 18 release. A new major version, such as GlitchTip 7, needs a change of tag, which GlitchTip announces on its blog. Read the changelog before you change it, and back up first. Some updates change stored data: the update from 6.2.3 to 6.2.6 emptied the uptime check history, as its changelog said, while monitors and alerts kept working.

Troubleshooting

curl http://localhost:8191/ prints 400. The name you used is not in ALLOWED_HOSTS. http://127.0.0.1:8191/ gets 400 too; use localhost.

"Only existing users may be invited". Registration is closed, so the person needs an account first. Create it as in step 8.

An invitation says it was sent, and nothing arrives. Email is not set up, or the settings are wrong. The first lines of docker compose logs web show Email: disabled or Email: SMTP, and errors from the mail server appear further down.

An uptime monitor or a webhook for an app on this server fails, while the app works in your browser. The Compose network from step 2 is missing: recreate the project with docker compose up -d from /home/glitchtip/glitchtip.

The SDK runs, and no issue appears. The DSN must be the https:// address from the project's settings, and the app must be able to reach errors.example.com. Short scripts must give the SDK time to send before they exit; the Python SDK does that by itself, and Sentry.flush() does it in JavaScript.

The stack trace still shows minified names. The source maps were uploaded after the error, or for another file. Check that sentry-cli sourcemaps inject ran before the build was deployed, and that the upload report lists the same debug ID as the file you run.

Run it on your own server

SSD RAID 1 · ECC DDR4 · 10 Gbit

VC-P Alloy

€8.99/mo

vCPU
2
Memory
8 GB
Storage
60 GB
Transfer
10 TB
Performance
SSD · RAID 1
  • Full root access
  • Native /64 IPv6
  • RAID-protected storage
  • Malmö, Sweden
  • Month to month, no lock-in
  • 7-day money-back guarantee
All guides