Closed londi closed 2 months ago
Error:
07:55:37 [WARNING] django.security.csrf: Forbidden (CSRF cookie not set.): /api/3/envelope/ (status_code=403 request=<WSGIRequest: POST '/api/3/envelope/?sentry_key=528bef3c4572ae7d367fc1dd7c67a43f&sentry_version=7&sentry_client=sentry.javascript.angular%2F8.17.0'>) 07:55:37 [INFO] sentry.access.api: api.access (method='POST' view='django.views.generic.base.RedirectView' response=403 user_id='None' is_app='None' token_type='None' is_frontend_request='False' organization_id='None' auth_id='None' path='/api/3/envelope/' caller_ip='XXXXXX' user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.014967918395996094 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
Latest install log:
`▶ Parsing command line ...
▶ Detecting Docker platform Detected Docker platform is linux/amd64
▶ Initializing Docker Compose ...
▶ Setting up error handling ...
Hey, so ... we would love to automatically find out about issues with your Sentry instance so that we can improve the product. Turns out there is an app for that, called Sentry. Would you be willing to let us automatically send data about your instance upstream to Sentry for development and debugging purposes?
y / yes / 1 n / no / 0
(Btw, we send this to our own self-hosted Sentry instance, not to Sentry SaaS, so that we can be in this together.)
Here's the info we may collect:
Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.
y or n? Understood. To avoid this prompt in the future, use one of these flags:
--report-self-hosted-issues --no-report-self-hosted-issues
or set the REPORT_SELF_HOSTED_ISSUES environment variable:
REPORT_SELF_HOSTED_ISSUES=1 to send data REPORT_SELF_HOSTED_ISSUES=0 to not send data
▶ Checking for latest commit ... skipped
▶ Checking minimum requirements ... Found Docker version 27.0.3 Found Docker Compose version 2.28.1
▶ Upgrading Clickhouse ... Network sentry-self-hosted_default Creating Network sentry-self-hosted_default Created Container sentry-self-hosted-clickhouse-1 Creating Container sentry-self-hosted-clickhouse-1 Created Container sentry-self-hosted-clickhouse-1 Starting Container sentry-self-hosted-clickhouse-1 Started Waiting for clickhouse server, 30 remaining attempts... Waiting for clickhouse server, 29 remaining attempts... Waiting for clickhouse server, 28 remaining attempts... Waiting for clickhouse server, 27 remaining attempts... Waiting for clickhouse server, 26 remaining attempts... Waiting for clickhouse server, 25 remaining attempts... Waiting for clickhouse server, 24 remaining attempts... Waiting for clickhouse server, 23 remaining attempts... Waiting for clickhouse server, 22 remaining attempts... sentry-self-hosted-clickhouse-1 clickhouse-self-hosted-local "/entrypoint.sh" clickhouse 10 seconds ago Up 10 seconds (healthy) 8123/tcp, 9000/tcp, 9009/tcp Detected clickhouse version 23.8.11.29.altinitystable. Skipping upgrades!
▶ Turning things off ... Container sentry-self-hosted-clickhouse-1 Stopping Container sentry-self-hosted-clickhouse-1 Stopped Container sentry-self-hosted-clickhouse-1 Removing Container sentry-self-hosted-clickhouse-1 Removed Image vroom-cleanup-self-hosted-local:latest Removing Image clickhouse-self-hosted-local:latest Removing Image sentry-self-hosted-local:latest Removing Image symbolicator-cleanup-self-hosted-local:latest Removing Image sentry-cleanup-self-hosted-local:latest Removing Network sentry-self-hosted_default Removing Image symbolicator-cleanup-self-hosted-local:latest Removed Image vroom-cleanup-self-hosted-local:latest Removed Image sentry-self-hosted-local:latest Removed Image sentry-cleanup-self-hosted-local:latest Removed Image clickhouse-self-hosted-local:latest Removed Network sentry-self-hosted_default Removed
▶ Ensuring Kafka and Zookeeper volumes have correct permissions ...
▶ Creating volumes for persistent storage ... Created sentry-clickhouse. Created sentry-data. Created sentry-kafka. Created sentry-postgres. Created sentry-redis. Created sentry-symbolicator. Created sentry-zookeeper.
▶ Ensuring files from examples ... sentry/sentry.conf.py already exists, skipped creation. sentry/config.yml already exists, skipped creation. symbolicator/config.yml already exists, skipped creation.
▶ Checking memcached backend ... PyMemcacheCache found in sentry/sentry.conf.py, gonna assume you're good.
▶ Ensuring Relay credentials ... relay/config.yml already exists, skipped creation. relay/credentials.json already exists, skipped creation.
▶ Generating secret key ...
▶ Fetching and updating Docker images ... nightly: Pulling from getsentry/sentry 8a1e25ce7c4f: Already exists 1103112ebfc4: Already exists b4b80ef7128d: Already exists cc7f04ac52f8: Already exists 87b8bf94a2ac: Already exists ffd94d3d3a86: Already exists 1d081abe3821: Already exists 679bdcf9efab: Already exists bb3a650609ce: Already exists c3bdcebd8f5f: Already exists ce4c3b0432d9: Already exists 49c47ce97f8c: Pulling fs layer 5194e585c6c8: Pulling fs layer bbfc07f8fab5: Pulling fs layer 862de670fd92: Pulling fs layer 3d226113f205: Pulling fs layer 4f4fb700ef54: Pulling fs layer 862de670fd92: Waiting 3d226113f205: Waiting 4f4fb700ef54: Waiting 5194e585c6c8: Verifying Checksum 5194e585c6c8: Download complete bbfc07f8fab5: Download complete 3d226113f205: Verifying Checksum 3d226113f205: Download complete 862de670fd92: Verifying Checksum 862de670fd92: Download complete 4f4fb700ef54: Verifying Checksum 4f4fb700ef54: Download complete 49c47ce97f8c: Verifying Checksum 49c47ce97f8c: Download complete 49c47ce97f8c: Pull complete 5194e585c6c8: Pull complete bbfc07f8fab5: Pull complete 862de670fd92: Pull complete 3d226113f205: Pull complete 4f4fb700ef54: Pull complete Digest: sha256:1df7b7e65bc54051b90a396c4011261f6e0968ba0ac5b44cfba77638f56e1263 Status: Downloaded newer image for getsentry/sentry:nightly docker.io/getsentry/sentry:nightly
▶ Building and tagging Docker images ...
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6727 files and directories currently installed.)
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6772 files and directories currently installed.)
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6577 files and directories currently installed.)
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6622 files and directories currently installed.)
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6705 files and directories currently installed.)
(Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6750 files and directories currently installed.)
Docker images built.
▶ Downloading and installing wal2json ...
▶ Bootstrapping and migrating Snuba ... Network sentry-self-hosted_default Creating Network sentry-self-hosted_default Created Container sentry-self-hosted-clickhouse-1 Creating Container sentry-self-hosted-redis-1 Creating Container sentry-self-hosted-zookeeper-1 Creating Container sentry-self-hosted-clickhouse-1 Created Container sentry-self-hosted-zookeeper-1 Created Container sentry-self-hosted-kafka-1 Creating Container sentry-self-hosted-redis-1 Created Container sentry-self-hosted-kafka-1 Created Container sentry-self-hosted-clickhouse-1 Starting Container sentry-self-hosted-redis-1 Starting Container sentry-self-hosted-zookeeper-1 Starting Container sentry-self-hosted-clickhouse-1 Started Container sentry-self-hosted-redis-1 Started Container sentry-self-hosted-zookeeper-1 Started Container sentry-self-hosted-zookeeper-1 Waiting Container sentry-self-hosted-zookeeper-1 Healthy Container sentry-self-hosted-kafka-1 Starting Container sentry-self-hosted-kafka-1 Started 2024-07-16 13:29:15,160 Initializing Snuba... 2024-07-16 13:29:17,540 Snuba initialization took 2.3812864100036677s 2024-07-16 13:29:18,169 Initializing Snuba... 2024-07-16 13:29:20,674 Snuba initialization took 2.506171813001856s 2024-07-16 13:29:20,680 Attempting to connect to Kafka (attempt 0)... 2024-07-16 13:29:20,709 Connected to Kafka on attempt 0 2024-07-16 13:29:20,766 Creating Kafka topics... Container sentry-self-hosted-zookeeper-1 Running Container sentry-self-hosted-clickhouse-1 Running Container sentry-self-hosted-redis-1 Running Container sentry-self-hosted-kafka-1 Running Container sentry-self-hosted-zookeeper-1 Waiting Container sentry-self-hosted-zookeeper-1 Healthy 2024-07-16 13:29:22,958 Initializing Snuba... 2024-07-16 13:29:25,294 Snuba initialization took 2.3371981189993676s 2024-07-16 13:29:25,816 Initializing Snuba... 2024-07-16 13:29:28,360 Snuba initialization took 2.5452923199918587s {"module": "snuba.migrations.runner", "event": "Running migration: 0023_add_profiler_id_column", "severity": "info", "timestamp": "2024-07-16T13:29:28.428789Z"} {"module": "snuba.migrations.operations", "event": "Executing op: ALTER TABLE transactions_local A...", "severity": "info", "timestamp": "2024-07-16T13:29:28.433712Z"} {"module": "snuba.migrations.operations", "event": "Executing on local node: clickhouse:9000", "severity": "info", "timestamp": "2024-07-16T13:29:28.433818Z"} {"module": "snuba.migrations.runner", "event": "Finished: 0023_add_profiler_id_column", "severity": "info", "timestamp": "2024-07-16T13:29:28.443267Z"} Finished running migrations
▶ Ensuring proper PostgreSQL version ...
▶ Setting up / migrating database ... Container sentry-self-hosted-postgres-1 Creating Container sentry-self-hosted-postgres-1 Created Container sentry-self-hosted-postgres-1 Starting Container sentry-self-hosted-postgres-1 Started Container sentry-self-hosted-clickhouse-1 Running Container sentry-self-hosted-smtp-1 Creating Container sentry-self-hosted-postgres-1 Running Container sentry-self-hosted-zookeeper-1 Running Container sentry-self-hosted-kafka-1 Running Container sentry-self-hosted-redis-1 Running Container sentry-self-hosted-memcached-1 Creating Container sentry-self-hosted-symbolicator-1 Creating Container sentry-self-hosted-snuba-subscription-consumer-transactions-1 Creating Container sentry-self-hosted-snuba-api-1 Creating Container sentry-self-hosted-snuba-outcomes-consumer-1 Creating Container sentry-self-hosted-snuba-transactions-consumer-1 Creating Container sentry-self-hosted-snuba-replacer-1 Creating Container sentry-self-hosted-snuba-subscription-consumer-events-1 Creating Container sentry-self-hosted-snuba-outcomes-billing-consumer-1 Creating Container sentry-self-hosted-vroom-1 Creating Container sentry-self-hosted-snuba-errors-consumer-1 Creating Container sentry-self-hosted-snuba-transactions-consumer-1 Created Container sentry-self-hosted-smtp-1 Created Container sentry-self-hosted-snuba-outcomes-consumer-1 Created Container sentry-self-hosted-snuba-replacer-1 Created Container sentry-self-hosted-memcached-1 Created Container sentry-self-hosted-snuba-errors-consumer-1 Created Container sentry-self-hosted-vroom-1 Created Container sentry-self-hosted-snuba-subscription-consumer-events-1 Created Container sentry-self-hosted-symbolicator-1 Created Container sentry-self-hosted-snuba-subscription-consumer-transactions-1 Created Container sentry-self-hosted-snuba-outcomes-billing-consumer-1 Created Container sentry-self-hosted-snuba-api-1 Created Container sentry-self-hosted-symbolicator-1 Starting Container sentry-self-hosted-smtp-1 Starting Container sentry-self-hosted-zookeeper-1 Waiting Container sentry-self-hosted-memcached-1 Starting Container sentry-self-hosted-smtp-1 Started Container sentry-self-hosted-symbolicator-1 Started Container sentry-self-hosted-memcached-1 Started Container sentry-self-hosted-zookeeper-1 Healthy Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-vroom-1 Starting Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-errors-consumer-1 Starting Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-transactions-consumer-1 Starting Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-snuba-subscription-consumer-transactions-1 Starting Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-api-1 Starting Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-snuba-replacer-1 Starting Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-outcomes-billing-consumer-1 Starting Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-subscription-consumer-events-1 Starting Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-snuba-outcomes-consumer-1 Starting Container sentry-self-hosted-vroom-1 Started Container sentry-self-hosted-snuba-outcomes-consumer-1 Started Container sentry-self-hosted-snuba-transactions-consumer-1 Started Container sentry-self-hosted-snuba-subscription-consumer-transactions-1 Started Container sentry-self-hosted-snuba-subscription-consumer-events-1 Started Container sentry-self-hosted-snuba-outcomes-billing-consumer-1 Started Container sentry-self-hosted-snuba-replacer-1 Started Container sentry-self-hosted-snuba-errors-consumer-1 Started Container sentry-self-hosted-snuba-api-1 Started Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Container sentry-self-hosted-smtp-1 Running Container sentry-self-hosted-redis-1 Running Container sentry-self-hosted-clickhouse-1 Running Container sentry-self-hosted-symbolicator-1 Running Container sentry-self-hosted-memcached-1 Running Container sentry-self-hosted-postgres-1 Running Container sentry-self-hosted-zookeeper-1 Running Container sentry-self-hosted-kafka-1 Running Container sentry-self-hosted-snuba-replacer-1 Running Container sentry-self-hosted-snuba-outcomes-consumer-1 Running Container sentry-self-hosted-snuba-subscription-consumer-events-1 Running Container sentry-self-hosted-snuba-api-1 Running Container sentry-self-hosted-snuba-subscription-consumer-transactions-1 Running Container sentry-self-hosted-snuba-outcomes-billing-consumer-1 Running Container sentry-self-hosted-snuba-errors-consumer-1 Running Container sentry-self-hosted-vroom-1 Running Container sentry-self-hosted-snuba-transactions-consumer-1 Running Container sentry-self-hosted-zookeeper-1 Waiting Container sentry-self-hosted-zookeeper-1 Healthy Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Waiting Container sentry-self-hosted-clickhouse-1 Waiting Container sentry-self-hosted-kafka-1 Waiting Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-clickhouse-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-redis-1 Healthy Container sentry-self-hosted-kafka-1 Healthy Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Running migrations for default Operations to perform: Apply all migrations: auth, contenttypes, feedback, hybridcloud, nodestore, remote_subscriptions, replays, sentry, sessions, sites, social_auth, uptime Running migrations: Applying sentry.0740_one_relocation_file_kind_per_relocation... OK Applying sentry.0741_metric_alert_anomaly_detection... OK Applying uptime.0005_uptime_status... OK Creating missing DSNs Correcting Group.num_comments counter 13:29:57 [INFO] sentry.outboxes: Executing outbox replication backfill 13:29:57 [INFO] sentry.outboxes: Processing sentry.ControlOutboxs... 13:29:57 [INFO] sentry.outboxes: Processing sentry.RegionOutboxs... 13:29:57 [INFO] sentry.outboxes: done
▶ Setting up GeoIP integration ... Setting up IP address geolocation ... IP address geolocation database already exists. IP address geolocation is not configured for updates. See https://develop.sentry.dev/self-hosted/geolocation/ for instructions. Error setting up IP address geolocation.
You're all done! Run the following command to get Sentry running:
docker compose up -d
`
Up
Solved the problem by including the settings from the nginx.conf of the nginx-container.
Especially the special exclusions from here: https://github.com/getsentry/self-hosted/blob/ca5f35c94f33d50be04c35bcb4c16cc705538df2/nginx/nginx.conf#L69
This should definitely by a part in the docs. It's not clear, that these settings are necessary. https://develop.sentry.dev/self-hosted/reverse-proxy/#nginx
Solved the problem by including the settings from the nginx.conf of the nginx-container.
Especially the special exclusions from here:
Line 69 in ca5f35c upstream relay {
This should definitely by a part in the docs. It's not clear, that these settings are necessary. https://develop.sentry.dev/self-hosted/reverse-proxy/#nginx
Are you modifying nginx config for an nginx external to the docker-compose environment? Or the internal one? I think you're talking about internal because otherwise relay:3000
isn't resolveable?
Self-Hosted Version
21.7.0
CPU Architecture
x86_64
Docker Version
27.0.3
Docker Compose Version
2.28.1
Steps to Reproduce
Expected Result
Envelope should be successful (200-204)
Actual Result
web-container logs: WARNING django.security.csrf: Forbidden (CSRF cookie not set.): /api/3/envelope/
I‘m using nginx as described in the selfhosted docs. The sentry dashboard is reachable over https. Certificate is valid and trusted (browser shows that).
I‘ve adjusted .env and sentry.config.py (SSL and CSRF section) and restarted sentry.
Event ID
No response