You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): an organization's own knowledge-database outage answers as the platform's DATABASE_UNAVAILABLE and goes unreported #4040
An organization's own knowledge database (bring-your-own, routed through getKnowledgePoolForOrg) can become unreachable. The request then answers the platform's503 DATABASE_UNAVAILABLE ("The platform's database is not answering right now — it may be restarting; retry with backoff") with Retry-After: 5, and nothing is reported. Since #4033 the browser drops DATABASE_UNAVAILABLE too. So a persistent outage of a customer's knowledge host reaches no error tracking at all, and the person is told the platform's database is restarting.
Found by the independent review of #4031 (TALE-416, note c). I verified the paths in source on main 929e9b162.
Mechanism
isDatabaseUnavailable (backend/db/unavailable.ts, from fix(platform): answer a database restart with 503, not a crash or 500 #3506) counts any postgres.js connection error as the platform database being unavailable. That covers the stamped ECONNREFUSED, ECONNRESET, EAI_AGAIN, ENOTFOUND, ETIMEDOUT, CONNECT_TIMEOUT and 57P01/02/03 errors.
The knowledge pools are postgres.js too, so their failures carry the same stamps.
The website scan lane already tells a knowledge-database outage apart (isConnectionFailure in core/knowledge/pool.ts, #3049). The request doors do not.
Expected
A knowledge-database outage is not described as the platform's database restarting.
An outage of an organization's own knowledge database that persists is reported once.
Options (needs a decision)
A distinct code. The knowledge pool layer marks its errors with their origin, and the doors answer a distinct code, for example KNOWLEDGE_DATABASE_UNAVAILABLE, with a sentence that names the organization's knowledge database. That is a REST error-code registry and contract change.
A server-side report. Report a BYO knowledge outage once per outage, at warning level, the way /events reports a long platform outage.
Consolidating this concurrent report into #4037, which already includes the BYO request paths, default knowledge database, jobs and ended-pool case. The decision is recorded at #4037 (comment): classify by database origin and retain bounded, sanitized reporting. This report adds the useful existing website-scan classifier reference (#3049); keep it as supporting evidence on the canonical issue. Closing as a duplicate, not as fixed. No implementation or production validation is claimed.
Activity
yannickmonney commentedon Oct 1, 2026
Consolidating this concurrent report into #4037, which already includes the BYO request paths, default knowledge database, jobs and ended-pool case. The decision is recorded at #4037 (comment): classify by database origin and retain bounded, sanitized reporting. This report adds the useful existing website-scan classifier reference (#3049); keep it as supporting evidence on the canonical issue. Closing as a duplicate, not as fixed. No implementation or production validation is claimed.