Repository navigation
Database connection refused on port 27017: account loading failure (15 September 2026) #8408
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Username: At request
Could the production operator check the API-to-MongoDB connection? Account data fails to load, and an independent public API request reproduced the database failure.
Reproduction and evidence
At 2026-09-15 03:50:31 UTC, this returned HTTP 500:
{"message":"Could not connect to the database. It may be down.","data":{"errorId":"a852f404-c322-4ad2-b4f8-20631a178e36","uid":""}}Rechecked at 03:55:10 UTC: same HTTP 500/message, error ID
d94d3429-78ae-4903-9233-add772732a05. These are unauthenticated HTTP-client checks, independent of browser cache. Authenticated/incognito browser scenarios were not independently replayed.The API advertises
2026.08.17_18.17_91bd24bb8. In the matching source, the returned message is selected by:Assuming the advertised source matches deployment, this identifies a refused MongoDB connection. It does not establish why the connection was refused. API
/and cached/configurationstill return 200; neither establishes database health. The official Instatus summary reportedHASISSUES.Targeted recovery steps
DB_URIwith the expected production database destination. Inspect the full connection error in process logs around the timestamps above. Test from the API's own network namespace.mongodservice, run these read-only checks:If it is running, check the intended private listener/address and API-to-database network path. Restore known-good configuration if
DB_URIchanged incorrectly. For containerized/managed MongoDB, use the existing deployment's recovery procedure instead of the systemd commands; preserve its volume and replica-set configuration./public/typingStatsdata, successful account/history loading, and a normal test result that persists after reloading.These are conditional operator instructions, not a verified production fix. No production changes have been applied. Do not recreate an empty database or delete its volume.
Follow-up
Consider database readiness separately from process liveness, HTTP 503 for database unavailability, and error reporting that does not wait for writes to the unavailable database.
All reactions