Skip to main content

Developer Troubleshooting

This page helps you diagnose a problem in your own local development environment. It is not an operational incident runbook — this platform's internal engineering-reference tree has detailed, dated recovery procedures for production-facing incidents (audit-pipeline recovery, Redis backup/ACL safety, disaster recovery), and none of that destructive or infrastructure- sensitive detail is reproduced here. If a symptom below looks like it might be a production issue rather than a local one, stop and escalate rather than following a local remediation step against real infrastructure.

Dependency / import failures​

Symptom: a service fails to start, or a test collection step fails, with an import or dependency-resolution error.

Likely causes: a Python-version mismatch (this ecosystem spans several declared versions — see Local Development); a missing local dependency install; a stale virtual environment.

Safe diagnostics: confirm the Python/Node version active in your shell against that repository's own declared constraint; confirm dependencies were installed inside that repository's own environment, not a different repository's.

Local remediation: reinstall dependencies in a clean environment scoped to the one repository you're working in.

When to escalate: if the repository's own declared toolchain requirement is itself internally inconsistent (for example, its README and its build configuration disagree) — that's a documentation/configuration defect to report, not something to work around silently.

Database unavailable​

Symptom: a service fails to start, or tests that touch a database fail, with a connection error.

Likely causes: no local MySQL instance running; wrong local connection string; a service that genuinely requires a database for even its own "does it start" check.

Safe diagnostics: confirm whether the specific test/command you're running actually needs a real database — many unit-test suites in this ecosystem use mocks or an in-memory database instead (see Testing & Quality).

Local remediation: start a local, disposable MySQL instance (for example, via that repository's own Compose configuration, if one exists) rather than pointing at any shared or production database.

When to escalate: never point a local service at a production database under any circumstance, including "just to check something quickly."

Redis unavailable​

Symptom: connection errors from a service that uses Redis for caching, a message broker, or the audit stream.

Likely causes: no local Redis instance running.

Safe diagnostics / local remediation: start a local, disposable Redis instance for development. Never connect to, configure against, or reuse credentials for a production Redis instance for local development, under any circumstance — this is a hard boundary throughout this documentation set, not a suggestion.

Generated-catalog drift / stale generated docs​

Symptom: npm run verify:generated fails, reporting a generated page that no longer matches a fresh render of its committed JSON.

Likely causes: a generated JSON file or rendered page was hand-edited directly; the generator was run against source that has since changed without the output being regenerated and recommitted; the overlay file (the small hand-maintained grouping/labeling input a generator reads) was edited without regenerating.

Safe diagnostics: git diff the specific generated file(s) named in the verification failure to see what changed and whether it looks like a hand-edit.

Local remediation: never hand-edit the generated output — re-run the owning generator (see Local Development) against current source and let it rewrite the artifact, then re-run verify:generated.

Authentication / permission failures while developing​

Symptom: a local API call returns 401/403 when you expect it to succeed.

Likely causes: a locally-issued token has expired (access tokens in this ecosystem are typically short-lived); the local user/role you're testing with genuinely lacks the permission being checked; you're testing against a route that has no application-level authentication check at all, so the failure is coming from somewhere else in the chain.

Safe diagnostics: check the specific service's own auth documentation and current operator guidance page for what that route actually requires; re-authenticate to get a fresh token rather than assuming a bug.

When to escalate: if a route's authorization behavior seems to contradict operator guidance's documented model, that's worth reporting — but do not attempt to "fix" it by bypassing a check locally and shipping that.

Test discovery / coverage-configuration issues​

Symptom: a test runner reports zero tests collected, or a coverage command fails with a configuration error.

Likely causes: running the test command from the wrong working directory (several repositories, including this one, expect the command to run from a specific subdirectory); a coverage-tool configuration mismatch (this ecosystem has at least one repository with two different, disagreeing coverage-threshold declarations — see Testing & Quality).

Safe diagnostics: confirm your working directory and the exact command against that repository's own README, rather than assuming a command that worked in one repository applies unchanged to another.

Docker / Compose startup issues​

Symptom: docker compose up fails, or a container exits immediately.

Likely causes: a port already in use on your machine; a missing required environment variable (the reference Compose configuration requires several secrets to be set rather than falling back to insecure defaults in its production-oriented profile); insufficient local resources for the full stack.

Safe diagnostics: check the specific failing container's logs; confirm your local .env (copied from that repository's own .env.example, never from a real deployment) has every variable Compose expects.

Local remediation: stop the conflicting local process, or adjust the published port for your own local stack — this is a local-machine configuration question, not something that touches any shared infrastructure.

Missing optional backend (GPU, Slurm, cloud batch, Singularity/Apptainer)​

Symptom: a code path that depends on GPU hardware, an HPC scheduler, a cloud batch service, or a container-execution runtime fails or is unavailable locally.

This is expected for most development machines. These are deployment- or execution-time dependencies for specific paths (see Local Development), not requirements for importing, reading, or unit-testing the surrounding service code. Where a test suite needs one of these, it is typically written to skip or mock around its absence — if it isn't, that's worth reporting as a gap rather than treated as something every contributor must provision for.