Blog /
Tech and Product

How we built Plane Doctor

How we built Plane Doctor, the diagnostics system for self-hosted Plane, and the engineering decisions behind its 58 checks.

Vihar Kurama and Goutham P.
●
23 Nov, 2026
Cover image illustration for the blog post titled "how we built Plane doctor"

An instance can serve pages while collaboration, imports, or licensing are broken. Plane Doctor helps admins investigate these problems in self-hosted Plane. It runs 52 server-side checks and 6 browser checks, reporting what passed, what needs attention, and what couldn't be verified. Every warning and failure includes a next step.

Password sign-in was disabled for this recording. The admin enables Passwords, selects Check again, and the check passes.

Why we built it

Self-hosted Plane runs on a team's own infrastructure, but knowing whether its services are working together isn't straightforward. Before Plane Doctor, admins had no built-in way to run these diagnostics from within Plane. Two recurring support problems were misconfigured service URLs or reverse proxies and expired license grants. Neither was apparent inside Plane until a user reported a problem.

Self-hosted Plane runs several services: the Django API, Celery workers and the beat scheduler, Live for real-time editing, Silo for imports, and any optional services the admin deploys. Browsers reach them through the admin's reverse proxy, while the services communicate over an internal network. A misconfiguration can cause a symptom far from its source.

A page in Wiki opens, but edits never sync. An import fails with a storage error even though attachments upload successfully.

An expired license grant could disable paid features, with the explanation appearing only in the API logs. From inside Plane, an admin couldn't distinguish that from a firewall blocking access to the license server. One calls for renewing the grant; the other calls for fixing network access.

We wanted one place that shows what Plane Doctor could verify and what an admin should investigate when something fails. Because admins may run it when part of the deployment is already broken, the checks must remain useful even when the database or queue is unavailable.

The check contract

Each check is a Python function that returns a structured result: a status, a one-sentence summary, diagnostic details, and, for warnings or failures, a remediation step. The four statuses are Passed, Warning, Failed, and Skipped. Checks report Passed when verification succeeds, Warning or Failed when they identify a problem, and Skipped when they cannot verify a condition, such as when a service isn't deployed or a dependency is unavailable.

Warnings and failures must include a remediation step. The warn and fail constructors require it, and the runner validates it again at run time. If a remediation is empty, the runner logs the omission and substitutes this message: "Include this report when you contact support."

The sign-in check, opened to show what it checks and how to fix it.

Adding a check requires one function and one register() call to define its name, description, group, timeout, and whether it's required. The admin UI renders the name, description, and remediation returned by the API, so new checks appear without frontend changes.

Running checks on a broken instance

If a check raises an exception, Plane Doctor marks its row Failed and flags a possible Plane bug; the rest of the run continues. A full run uses up to 12 threads and stops waiting after 20 seconds. Checks still running at the deadline receive a timeout result. Each check also receives a timeout to pass to its own network calls, although a blocked call can still occupy a thread beyond the run's deadline.

The runner masks credentials it recognizes in a check's details, such as secret keys and passwords embedded in URLs, and truncates long strings to 300 characters. Copy report puts the full run on the clipboard for a support ticket. Internal hostnames and error text may still appear, which is one reason the diagnostics endpoint is restricted to instance admins.

When God Mode is unavailable, admins can run the same server checks inside the api container with python manage.py system_checks. The command exits with status 1 if a required check fails, in both text and --json modes, so a deployment script can stop a rollout. Of the 52 checks, 14 are required. If only nonrequired checks fail, the overall result is Warning.

The 2 checks that call an AI provider, Verify LLM and Verify embeddings, can consume provider credits. A full run therefore marks them Skipped without contacting the provider; an admin can run them separately.

Celery beat schedules a full run every 15 minutes. A worker executes it, and the scheduled task trims the stored history to the latest 50 runs.

Preventing dependency cascades

Several checks depend on settings stored in PostgreSQL, including those for sign-in methods, SMTP, licensing, and migrations. Guards catch database connection errors and return Skipped with the remediation See PostgreSQL. That prevents dependent checks on the API side from reporting separate failures caused by the same unavailable database.

The database guard catches only OperationalError and InterfaceError. An earlier version also caught Django's broader DatabaseError, which includes errors such as a missing table. During an upgrade, that turned a required license failure into a gray Skipped row and directed the admin to a PostgreSQL row that was green.

A python manage.py system_checks run with PostgreSQL stopped deliberately, showing 9 of the 52 rows.

With PostgreSQL stopped on our test stack, the command reported 18 passed, 1 warning, 3 failed, and 30 skipped in 1.7 seconds. On the API side, core.database was the only failed check, and 5 rows pointed to it. Silo, which uses the same database, reported that the database didn't answer. The check in which Silo calls back into the API also failed.

The browser's view

We added browser checks to investigate a failure that admins of self-hosted instances report often: pages open, edits never reach anyone else, and the logs reveal nothing useful. One possible cause is a reverse proxy that routes /live/ without upgrading the connection to a WebSocket. The API can still reach Live on the internal network and report the service as healthy.

Plane Doctor therefore runs 6 probes from the admin's browser against the public address in WEB_URL. Five make HTTP requests to the web app, the API, Live, God Mode, and Spaces; the sixth opens the WebSocket Live uses for collaboration. If the server can reach Live but the browser cannot establish a WebSocket connection, Plane Doctor points to a possible reverse-proxy issue. The copied report identifies the Upgrade and Connection headers the proxy must forward.

The browser cannot open a WebSocket to Live even though the API reaches it internally. We disabled the WebSocket upgrade in our proxy for this screenshot.

Four of the 5 HTTP probes cannot inspect the responses they receive. The targets may not send CORS headers for the God Mode origin, so those requests use no-cors mode and receive opaque responses with no accessible status code or body. An opaque response cannot distinguish a working endpoint from a proxy returning HTTP 404. Plane Doctor therefore marks these responses Skipped and excludes them from the browser tally.

Testing the upload path

A self-hoster using OCI Object Storage reported that attachment uploads worked while the Notion importer failed. Our server-side storage check already wrote a small object and compared the bytes it read back. But the browser-initiated Test an upload check only verified that an uploaded object existed. A bucket policy could permit writes and metadata reads while denying object reads, yet still pass that browser test.

The admin selects a file roughly the size of an import attachment. The browser uploads it through the API or directly to storage with a presigned URL, depending on how the instance handles uploads. The API now reads the first byte before deleting the object. This tests object-read access using the API's credentials without transferring the full file through the API.

Test an upload sends 2.0 MiB directly to storage with a presigned URL. The API then reads back the first byte.

What services report about themselves

The API can tell whether Live answers its health check, but not whether Live can reach Redis or its export queue. Live, Silo, Plane AI, Argus, and the automation runner each report on their own dependencies. Plane Doctor shows one row per service, with its dependency results underneath.

Determining whether an optional service is deployed took us two attempts. Plane's settings fall back to WEB_URL when SILO_BASE_URL is unset, so a probe using that derived setting reached the web app, got HTTP 200, and incorrectly marked an undeployed Silo healthy. Reading only the raw variable broke Kubernetes installs, because the Helm chart leaves it empty and relies on the fallback.

The check now probes the service first. If Silo returns its expected health response, it is treated as deployed, whether the URL was explicitly configured or derived. Otherwise, an unset SILO_BASE_URL means the service is treated as not deployed; a set variable means it is treated as deployed but failing.

False alarms on healthy instances

Our first run against a healthy cloud preview environment reported 16 failures. An OpenSearch cluster serving 1,036,541 documents was flagged with the diagnostic message did not answer. A licensed instance with working Plane AI was marked unlicensed, and all 6 browser probes were reported as unreachable.

The OpenSearch check called ping(), which sends HEAD /, a cluster-level request that an index-scoped user cannot make. The method also converts errors into False. On Amazon OpenSearch Service with fine-grained access control, a permission-denied response therefore looked like an unavailable cluster.

The check now requests cluster health first. If that request is denied for lack of permission, it falls back to counting Plane's indices. It still treats HTTP 429 and 5xx responses as failures rather than permission-related fallbacks.

A follow-up pull request addressed the remaining false alarms and added regression tests based on healthy instances. We had already fixed other false alarms during the first implementation:

  • The version check compared version strings lexicographically. With 2.3.0 installed and v1.4.2 published, it suggested the older release as an update. It now parses versions into comparable tuples.
  • The public URL check treated http://localhost and http://localhost:80 as different origins. It now removes the scheme's default port before comparing them.
  • The scheduler check failed after each API restart. At startup, the API cleared its cache through django-redis using FLUSHDB, which also removed the scheduler's heartbeat. Startup cache clearing now deletes only the cache's own keys.

What it caught on our own stack

We deployed a fresh Plane stack behind our reverse proxy to capture the examples in this article. During setup, Plane Doctor identified 5 configuration problems:

  • Spaces returned HTTP 403 because its development server rejected the hostname the API used to reach it.
  • Silo couldn't authenticate with the API because the two services didn't share a signing secret.
  • Sign-in methods failed with the message No sign-in method is enabled. Our setup had never seeded the instance settings.
  • Test an upload returned HTTP 404 and then 400 until we routed uploads to storage through our reverse proxy.
  • The CORS check failed on a scheduled run but passed on a manual run.

The CORS check failed only on the scheduled run because manual runs execute in the API process and use its environment variables. Scheduled runs execute in a Celery worker, and our worker had a different WEB_URL from the API.

What it can't see

  • Four of the 6 browser probes cannot inspect the response, so they cannot tell whether the correct service answered.
  • Test an upload reads the object with the API's storage credentials. A pass does not prove that Silo, which builds its own storage client, can read the bucket.
  • A check blocked in a network call can occupy its thread beyond the run's deadline.
  • Dependency guards cover only the API's checks. A downstream service, such as Silo during a PostgreSQL outage, can still report a secondary failure.

Plane Doctor cannot guarantee that an instance is healthy. It shows which checks passed, which failed, and which could not be completed. The harder engineering work was making those results useful during partial outages without hiding real problems behind Skipped rows or mistaking restricted access for a service failure.

Availability

Plane Doctor was introduced in self-hosted Plane v4.1.0 and is available on Free and higher plans. Instance admins can open it in God Mode or run the same server checks from the api container with python manage.py system_checks. See the v4.1.0 release notes.

Recommended for you

View all blogs
Plane

Every team, every use case, the right momentum

Hundreds of Jira, Linear, Asana, and ClickUp customers have rediscovered the joy of work. We’d love to help you do that, too.
Plane
Nacelle