Skip to content

Better error when database OOM or fails to connect (or other cases for cannot read properties of undefined: authMethods) #6983

Closed
@bpmct

Description

@bpmct

I ran into a scenario where my database was significantly under-resourced (and would OOM). This is the error I see from Coder:
Screenshot 2023-04-03 at 12 09 56 PM

======================= STACK TRACE ========================
Cannot read properties of undefined (reading 'authMethods')
    at j0e (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:193:32841)
    at tx (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:46:19556)
    at WR (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:44429)
    at zR (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:40066)
    at tF (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:39994)
    at Wp (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:39847)
    at jy (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:36179)
    at MR (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:48:35125)
    at S (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:33:1544)
    at MessagePort.A (https://coder-production-400f.up.railway.app/assets/index.3c840117.js:33:1903)
============================================================

Any idea how this happened? I deployed Coder using railway which @matifali is working on. Instructions here

Metadata

Metadata

Assignees

Labels

s3Bugs that confuse, annoy, or are purely cosmeticsiteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions