Skip to content

Internal error fetching user's roles. unauthorized: evaluate rego: context canceled #8928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sharkymark opened this issue Aug 6, 2023 · 4 comments
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.

Comments

@sharkymark
Copy link
Contributor

AKS deployment on 2.0.0

This message appeared in the dashboard

image

image

Stacktrace on subsequent refresh

TypeError: Cannot read properties of undefined (reading 'authMethods')
    at sve (https://aks-v2.demo.coder.com/assets/index-e49710db.js:299:27369)
    at Ib (https://aks-v2.demo.coder.com/assets/index-e49710db.js:54:19538)
    at f4 (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:44055)
    at u4 (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:39787)
    at V9 (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:39715)
    at Th (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:39568)
    at k1 (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:35933)
    at s4 (https://aks-v2.demo.coder.com/assets/index-e49710db.js:56:34882)
    at E (https://aks-v2.demo.coder.com/assets/index-e49710db.js:41:1544)
    at MessagePort.z (https://aks-v2.demo.coder.com/assets/index-e49710db.js:41:1903)

Subsequent dashboard refresh, things look fine.

image

@cdr-bot cdr-bot bot added the bug label Aug 6, 2023
@bpmct bpmct added the s2 Broken use cases or features (with a workaround). Only humans may set this. label Aug 7, 2023
@bpmct
Copy link
Member

bpmct commented Aug 7, 2023

Potentially related #6983

@smocherla-brex
Copy link

smocherla-brex commented Aug 14, 2023

Ran into this as well on our setup after activating a Coder trial license. (we are using a built-in postgres server but didn't observe any OOMs)
image

Also shows up on the login page sometimes
image

@NoOverflow
Copy link

Encountered this issue aswell when using a postgresql database setup using the helm chart. Moving to an external postgresql database running on a dedicated VM seems to have mitigated this.

Note: I'm saying "mitigated" and not "resolved" as the "Internal error fetching user's roles. unauthorized: evaluate rego: context canceled" error kept showing up for a few minutes after install and licensing setup, but disappeared completely after (my guess is that the database is heavily used right after setup, and some requests may be hanging up or timing out)

@kylecarbs
Copy link
Member

Closing for now. If we can get some additional info, we'll reopen, but this seems very rare.

@kylecarbs kylecarbs closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.
Projects
None yet
Development

No branches or pull requests

5 participants