Skip to content
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

Sentry after install new organization login page error #1669

Open
kalan89 opened this issue Jan 19, 2025 · 6 comments
Open

Sentry after install new organization login page error #1669

kalan89 opened this issue Jan 19, 2025 · 6 comments

Comments

@kalan89
Copy link

kalan89 commented Jan 19, 2025

Hi Team,

Sentry fresh install was done with helm chart 26.11.0
After a fresh install created organization during the setup page testorg
Then configured Azure AD SSO login for the org testorg

When I try to access the sentry, Always the page forks into https://sentry.example.com/auth/login/sentry/

  • Is it possible to make the landing page to https://sentry.example.com/auth/login/testorg/
  • After login getting this error message
    https://sentry.example.com/_assets/chunks/app_bootstrap_initializeMain_tsx.79a2dbecf76d5c1bed86.js/

Error Page:

Image
@polarAli
Copy link

We have the same error without any SSO configuration

@ivoistaken
Copy link

I think this is related:
getsentry/self-hosted#3473

We have similar issue, and also 2FA stopped working.
We managed to alleviate the problem by applying extra headers via ingress-nginx ingress configuration

annotations:
  nginx.ingress.kubernetes.io/server-snippet: |
    location ~ ^/_assets/chunks/.*\.js {
      add_header Content-Type application/javascript;
    }

@cybercoder
Copy link

Just increase the helm timeout to 120m

@kalan89
Copy link
Author

kalan89 commented Jan 24, 2025

I think this is related: getsentry/self-hosted#3473

We have similar issue, and also 2FA stopped working. We managed to alleviate the problem by applying extra headers via ingress-nginx ingress configuration

annotations:
  nginx.ingress.kubernetes.io/server-snippet: |
    location ~ ^/_assets/chunks/.*\.js {
      add_header Content-Type application/javascript;
    }

Hi @ivoistaken I am getting the below error on the ingress config.
Can you please share your ingress full config?

cannot patch "sentry" with kind Ingress: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: nginx.ingress.kubernetes.io/server-snippet annotation cannot be used. Snippet directives are disabled by the Ingress administrator

@ivoistaken
Copy link

ivoistaken commented Jan 24, 2025

I think this is related: getsentry/self-hosted#3473
We have similar issue, and also 2FA stopped working. We managed to alleviate the problem by applying extra headers via ingress-nginx ingress configuration

annotations:
  nginx.ingress.kubernetes.io/server-snippet: |
    location ~ ^/_assets/chunks/.*\.js {
      add_header Content-Type application/javascript;
    }

Hi @ivoistaken I am getting the below error on the ingress config. Can you please share your ingress full config?

cannot patch "sentry" with kind Ingress: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: nginx.ingress.kubernetes.io/server-snippet annotation cannot be used. Snippet directives are disabled by the Ingress administrator

oopsie, you also need to allow snippet annotation on ingress controller level, e.g. add the following to the ingress-nginx-controller ConfigMap

data:
  allow-snippet-annotations: 'true'

Depending on your ingress-controller version, you may also need to add

  annotations-risk-level: Critical

@polarAli
Copy link

The Issue is fixed and released with the v24.12.1 of Sentry. When may this update will be available on this chart?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants