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

CSRF Verification Failed issue on web interface #3463

Open
1 task done
xiaaru opened this issue Dec 10, 2024 · 5 comments
Open
1 task done

CSRF Verification Failed issue on web interface #3463

xiaaru opened this issue Dec 10, 2024 · 5 comments

Comments

@xiaaru
Copy link

xiaaru commented Dec 10, 2024

Self-Hosted Version

sentry, version 24.12.0.dev0+173a4e885306a426190fe2384e76160e8e279250

CPU Architecture

x86_64 Linux

Docker Version

version 25.0.5, build d260a54c81efcc3f00fe67dee78c94b16c2f8692

Docker Compose Version

version v2.23.3

Machine Specification

  • My system meets the minimum system requirements of Sentry

Steps to Reproduce

  1. gitclone the directory to my vm
  2. use ./install.sh (which takes a while)
  3. after that use docker-compose up -d and all containers are up and running.

Expected Result

Expected to be able to login to the interface with my preset login credentials, instead I'm seeing a CSRF Verification Failed error every time.
I have restarted the docker containers and checked the logs, couldn't see any specific logs related to the issue

Actual Result

Image

Event ID

No response

@aldy505
Copy link
Collaborator

aldy505 commented Dec 11, 2024

Have you configured your sentry/sentry.conf.py to have the correct URLs? See https://develop.sentry.dev/self-hosted/troubleshooting/#csrf-verification-failed

@xiaaru
Copy link
Author

xiaaru commented Dec 11, 2024

I have @aldy505 no luck still :(

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 11, 2024
@aldy505
Copy link
Collaborator

aldy505 commented Dec 12, 2024

Can you be more specific about "no luck", as in.. what commands have you run, and what configuration have you changed?

@xiaaru
Copy link
Author

xiaaru commented Dec 14, 2024

I've tried to reconfigure CSRF_TRUSTED_ORIGINS on my sentry.conf.py file. Ran the ./install.sh file again and tried docker-compose up -d
same problem, no resolution.
So what am I missing here?

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 14, 2024
@aldy505
Copy link
Collaborator

aldy505 commented Dec 17, 2024

If you have make sure that the URL you set on the CSRF_TRUSTED_ORIGINS matches with what you're seeing on your web browser, then all you need to do is to clear your browser site data (including cookies & caches) for your Sentry URL. No need to prune your entire browser data, just the ones for the Sentry URL will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: No status
Development

No branches or pull requests

2 participants