An error tracker groups failures, preserves stack traces and helps a team find regressions after a release. Sentry and GlitchTip can both be self-hosted, but they have different service requirements and feature boundaries. Installing either also makes you responsible for the system that receives your incident evidence.
This guide keeps the practical path: choose a product, size a host, deploy behind HTTPS, connect an SDK, check source maps, and prove recovery. It does not assume that a single VPS can ingest any number of events. We operate DanubeData, which is one hosting option discussed below.
Last reviewed: 2 November 2026. The upstream examples and pricing pages are linked below. This refresh checks documentation; it does not report a deployment rehearsal, capacity benchmark or measured cost saving.
Why self-host error tracking?
Self-hosting can help when you need control over storage, access, retention or integration. It can also consolidate an existing operations stack. Those benefits come with patching, database maintenance, disk management, recovery and on-call work.
A hosted service may be less work even if its invoice is higher than a server's rental. Hosted GlitchTip also offers an EU instance in Germany, so European location alone does not force a self-hosting decision. Check logs, email, integrations and support access as part of your own data-flow requirements.
Hosted pricing versus self-hosting costs
| Option | Current public pricing reference | What to include in your comparison |
|---|---|---|
| Sentry hosted | Team $26/month and Business $80/month when billed annually with default prepaid data | Product quotas, billing cadence, extra usage and add-ons |
| GlitchTip hosted | Free 1,000 events/month; Small $15 for 100k; Medium $50 for 500k; Large $250 for 3M | Retention, on-demand settings, support and location |
| Self-hosted | Infrastructure and operations for the selected stack | CPU/RAM, databases, storage, backups, email, upgrades and incident time |
Sources: Sentry pricing and GlitchTip pricing. Sentry currently lists tracing in spans, not the old transaction allowance used in earlier versions of this article. GlitchTip counts errors and transactions as events, with different weighting for some other data. Model your actual mix rather than comparing a single “events” total across products.
We have removed the old overage estimates and claims that self-hosting pays for itself at a fixed number of events. A monthly count does not describe burst rate, event size, retention or query load. Self-hosting removes the SaaS event meter, but storage and processing still have limits and costs.
Sentry or GlitchTip?
| Requirement | How to evaluate it |
|---|---|
| Error tracking with existing Sentry SDKs | GlitchTip supports the Sentry integration path; verify your language, SDK version and payloads |
| Performance analysis | GlitchTip now documents transaction groups and span breakdowns; compare the views you need |
| Replay, profiling and native crash processing | Check the selected Sentry release and the exact GlitchTip feature set, rather than assume parity |
| Simple service topology | GlitchTip can use PostgreSQL with an all-in-one application service; Valkey is optional |
| A broader multi-service observability stack | Sentry bundles several stateful services and needs substantially more host resources |
| Vendor support | Self-hosted Sentry has community support and no guarantees or dedicated support; negotiate any other support explicitly |
GlitchTip's current performance guide describes spans and endpoint analysis; the old “no span breakdown” description is outdated. Its 6.1 release also added minidump support, so an old JavaScript-only symbolication row is too restrictive.
Sentry documents self-hosted differences, including unavailable AI features and limitations around some platform symbols and integrations. Self-hosted is not a promise of identical SaaS functionality. Review each project's license for your intended use; publicly available source and an open-source license are different claims.
Size from requirements, then measure
Sentry's current documented minimum is 4 CPU cores, 16 GB RAM plus 16 GB swap, and 20 GB free disk; 32 GB RAM is recommended. The documented tooling minimum is Docker 19.03.6 and Compose 2.32.2. Treat free disk as an installation floor, not a retention budget. Disk I/O matters because several stateful services share the host.
GlitchTip's installation guide requires PostgreSQL 14 or later and documents an all-in-one service, with optional Valkey/Redis 7 or later. It recommends 512 MB for the application setup, but that is not a guaranteed total RAM budget for an application plus a busy local database.
- Measure peak ingestion and event payload sizes, not only monthly totals.
- Include database, indexes, uploaded files and any cold-storage archive.
- Choose retention and leave disk space for upgrades and maintenance.
- Watch queue delay, errors, database growth, CPU, memory and I/O during a rehearsal.
- Set alerts before capacity is exhausted and document an ingestion-reduction procedure.
For DanubeData, choose a VPS from current CPU, RAM and storage specifications. A managed PostgreSQL instance is a separate purchase; confirm compatibility and required database settings. Do not reuse the old €19.99 database price or fixed event-capacity recommendations.
Part 1: deploy GlitchTip
1. Prepare the host and database
Use a supported server OS, configure SSH access and install Docker Engine and Compose using the current upstream instructions. Record the versions. Point a test hostname such as errors.example.com at the server. Restrict public ingress to the intended SSH and HTTPS services, and check container-published ports separately from host firewall rules.
Create a dedicated database and user, with a verified TLS connection if PostgreSQL is remote. Confirm connectivity from the container network. Review the upstream PostgreSQL tuning notes and the chosen managed service's supported settings before starting migrations.
2. Start from the current upstream configuration
The current GlitchTip Compose sample uses the version 6 image family and SERVER_ROLE=all_in_one. The following reduced example uses an external PostgreSQL database and disables Valkey. It illustrates the topology; validate it with your selected release and pin the image to a reviewed immutable digest before production use.
services:
web:
image: glitchtip/glitchtip:6
restart: unless-stopped
ports:
- "127.0.0.1:8000:8000"
env_file: .env
environment:
SERVER_ROLE: all_in_one
VALKEY_URL: ""
volumes:
- uploads:/code/uploads
volumes:
uploads:
Create the secret as an actual random value. A command inside a quoted here-document is literal text, so SECRET_KEY=$(openssl ...) in such a block does not generate a key.
mkdir -p /opt/glitchtip
cd /opt/glitchtip
umask 077
printf 'SECRET_KEY=%s\n' "$(openssl rand -hex 32)" > .env
Add your database connection and SMTP settings to that protected file using an editor. Configure the public domain, allowed hosts and trusted CSRF origin for your proxy. Use the current configuration reference for the exact variables. Keep the file out of Git, logs and support screenshots.
Disable open registration according to your access policy. GlitchTip's documented registration setting still allows initial bootstrap; establish the first account through a restricted setup path and verify subsequent account creation is blocked as intended.
3. Put HTTPS in front
Use a reverse proxy with request buffering, as the installation guide recommends. Its sample nginx configuration forwards to loopback port 8000 and carries the host and forwarding headers. Configure a valid certificate and a suitable upload limit. Test HTTP-to-HTTPS redirects and the application's generated URLs before using real event data.
Do not expose an unprotected bootstrap page to claim the first account. If using an existing proxy, verify its forwarding-header trust and body-size settings rather than copying an unrelated configuration.
4. Validate configuration and start
docker compose config --quiet
docker compose up -d
docker compose ps
docker compose logs --tail=100 web
Current GlitchTip performs initialization and migrations on startup unless configured otherwise. Check their outcome, create the initial account and project, and send a harmless test error. The 6.2 release notes and installation guide should be checked before selecting a version or upgrading an older installation.
Part 2: deploy self-hosted Sentry
1. Select a release and review prerequisites
Use the official self-hosted repository. The release page resolved to 26.10.1 when reviewed. Read its release notes and current follow-ups, then select the appropriate supported release for your installation. Do not leave a production installation pinned to the old 25.4.0 example.
The repository owns the service topology. Avoid replacing its Compose bundle with an old hand-maintained list of Kafka, database and worker containers. Verify host resources, Docker/Compose versions, disk budget and your proxy before running the installer.
2. Install from the selected tag
git clone https://github.com/getsentry/self-hosted.git
cd self-hosted
git checkout 26.10.1
./install.sh
docker compose up --wait
This is a documentation example, not an executed deployment. Use a reviewed service account with the required permissions and protect local configuration. Docker access is privileged host access. Follow the installer's prompts, including its monitoring-data choice, and retain the exact release and image inventory.
3. Configure the public endpoint, email and retention
Set the public URL and SMTP through the release's documented configuration. Create the administrator using its interactive flow so a password is not placed in shell history. Configure the reverse proxy and verify the intended upstream binding; do not assume port 9000 is private merely because the UI is reached through HTTPS.
Set retention using the current SENTRY_EVENT_RETENTION_DAYS configuration path. Check the selected release's configuration documentation for overrides and separate product-storage settings. A smaller retention window reduces historical evidence as well as disk demand.
4. Verify the deployment
- Login and project creation work through the final HTTPS address.
- A harmless SDK error reaches the intended project with release and environment.
- Email and a test alert reach their destination.
- Uploads such as source maps succeed and resolve the intended test stack trace.
- Service health and queue/ingestion behaviour remain acceptable under a representative burst.
- The recovery procedure works on an isolated host before production dependence.
Connect the SDK without assuming feature parity
Create a project and copy its DSN into the appropriate application configuration. Select the SDK for the actual environment: @sentry/node is a server SDK; a browser application needs its browser/framework SDK. Start with errors, then enable the other data types you have verified.
import * as Sentry from "@sentry/node";
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
release: process.env.GIT_SHA,
sendDefaultPii: false,
});
For Python, a minimal initialization keeps configuration in environment variables:
import os
import sentry_sdk
sentry_sdk.init(
dsn=os.environ["SENTRY_DSN"],
environment=os.environ.get("APP_ENV"),
release=os.environ.get("GIT_SHA"),
send_default_pii=False,
)
Use the current framework setup for Django or Laravel rather than treating a config fragment as a full installation. See Node options, Python options and GlitchTip's SDK links. Check payloads and server behaviour with your pinned SDK version. Unsupported features may not produce the expected result, even when ordinary errors arrive.
Source maps, symbols and releases
Use an exact release identifier in the application and its uploaded artifacts. Upload source maps/debug files using the selected server's current integration procedure and a scoped CI credential. Confirm the path mapping by generating an intentional harmless error from the built application and checking the resolved source location.
Do not expose source maps or upload tokens publicly by accident. Native debug formats and platform symbols have product-specific limitations; test the exact mobile or native crash path you require. Historical source maps and symbols are also part of a recovery inventory.
Performance monitoring and sampling
Enable tracing only after errors work. Choose sampling from your required diagnostic coverage and ingestion budget, then verify which transactions and spans arrive. GlitchTip's sampling guidance distinguishes error sampling from performance sampling.
Do not copy a sampler from an older SDK without checking the callback shape in the installed version. Exclude known low-value traffic deliberately and keep enough representative failures to investigate incidents. Reducing ingestion can control load, but it also removes evidence.
PII and data handling
sendDefaultPii: false is a useful starting setting, not a guarantee that no personal or secret data is sent. Error messages, URLs, request context, custom tags, breadcrumbs and application-added fields can contain sensitive values. What is collected depends on the SDK and integrations.
- Inspect a harmless representative event before enabling production ingestion.
- Remove credentials and unnecessary personal fields at the source, before transmission.
- Configure server-side filtering and verify the stored result.
- Review replay masking separately if using replay; do not describe one option as a legal guarantee.
- Limit access and retention, including uploads, archives and backups.
- Review external email, chat, AI and other integrations before enabling them.
Self-hosting does not automatically change your legal role or remove international-transfer questions. Map your processing and processors, then assess the actual deployment. A server in Germany does not determine where an alerting integration sends an event.
Backups: configuration is not historical event recovery
Sentry's backup documentation explicitly calls its JSON export partial: it includes low-volume configuration, not historical events and external files. It also describes a full-volume approach with limitations. A PostgreSQL dump alone is not a full Sentry recovery plan, and Kafka retention should not be assumed to reconstruct all ClickHouse history.
- Define the recovery scope: accounts/configuration only, or historical events and uploaded artifacts too.
- Inventory every stateful service, volume, object store, secret and configuration file for the selected version.
- Create application-consistent backups using the appropriate procedure. Encrypt them and retain the keys separately.
- Restore to an isolated installation of the same version. Confirm users, projects, permissions and a sample of required historical evidence.
- Send a new harmless test event, check processing and alerts, then record recovery duration and data loss window.
For GlitchTip, include PostgreSQL, uploads and any configured cold-storage files or object bucket, plus configuration and secrets. “Only PostgreSQL” becomes incomplete when files or cold storage are enabled. Managed database backups cover their stated database scope; confirm how you restore the rest.
Use the Linux backup guide and object storage pricing/features for the storage side, while preserving each application's consistency requirements.
Monitor the monitor
An HTTP health check alone does not prove that events are processed. Use an independent check of availability and periodic harmless end-to-end events. Alert outside the tracker on missing checks, queue delay, ingestion failures, storage growth and backup failures.
Track host and database resource trends. A single machine can lose both the monitor and its history during a host failure, so keep recovery evidence and alerts elsewhere. Choose thresholds from measured growth and response time, rather than assuming one disk percentage is safe for every system.
Upgrades and common pitfalls
- Sentry upgrades: follow the documented hard stops and known-bad releases. Back up, rehearse and schedule the documented downtime; do not blindly run
git pullacross skipped migrations. - GlitchTip upgrades: review release and PostgreSQL requirements, back up all configured storage, pull the selected image and check startup migrations and ingestion.
- Memory: use current upstream requirements. A dedicated VPS does not make swap requirements disappear.
- Disk: retention, attachments, replay and cold archives need separate budgets. Do not change an old environment variable name without checking the selected release.
- Email: verify actual alert/password-reset receipt and the sender domain configuration.
- Noise: fix runaway errors and filter deliberately; blanket suppression can hide real regressions.
Frequently asked questions
Does changing the DSN migrate my old issues?
No. It routes new SDK traffic. Users, configuration, issues, historical events and artifacts require a separate supported migration or archive plan. Keep the old service available until the new one is verified.
How many events can one VPS handle?
There is no defensible fixed number from its price or monthly event count alone. Test your payloads, peak rate, retention and queries, then set limits and alerts.
Who supports a self-hosted installation?
You operate it unless a provider has explicitly agreed otherwise. Sentry's self-hosted distribution does not include a dedicated support guarantee. A managed database or VPS does not imply application maintenance.
Which would I choose?
Start with GlitchTip if its documented error and performance features meet your needs and you want the simpler service topology. Choose Sentry when its particular diagnostics justify the larger stack and maintenance. Choose hosted service when that operating responsibility is more than your team wants.
Review DanubeData VPS specifications and, if useful, managed PostgreSQL options. Select resources from current requirements and a rehearsal, not from the old fixed event-to-plan table.