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

Web container healthcheck does not consider SENTRY_BIND variable #3550

Open
1 task done
Bart-Westenenk opened this issue Jan 22, 2025 · 6 comments
Open
1 task done

Comments

@Bart-Westenenk
Copy link

Self-Hosted Version

24.12.1

CPU Architecture

x86_64

Docker Version

27.4.1

Docker Compose Version

2.32.1

Machine Specification

  • My system meets the minimum system requirements of Sentry

Steps to Reproduce

  1. Change the SENTRY_BIND variable using a .env.custom file as documented in the docs.
  2. Run ./install.sh
  3. Run docker compose --env-file .env.custom up -d

Expected Result

Expected the container to be healthy after booting up.

Actual Result

Output of running docker compose --env-file .env.custom up -d:

[+] Running 58/58ry-self-hosted-symbolicator-cleanup-1                          Started                                                                                                                                                 4.4s 
 ✔ Network sentry-self-hosted_default                                           Created                                                                                                                                                 0.2s 
 ✔ Container sentry-self-hosted-clickhouse-1                                    Healthy                                                                                                                                                14.2s 
 ✔ Container sentry-self-hosted-smtp-1                                          Started                                                                                                                                                 4.1s 
 ✔ Container sentry-self-hosted-vroom-cleanup-1                                 Started                                                                                                                                                 4.3s 
 ✔ Container sentry-self-hosted-kafka-1                                         Healthy                                                                                                                                                57.2s 
 ✔ Container sentry-self-hosted-redis-1                                         Healthy                                                                                                                                                57.2s 
 ✔ Container sentry-self-hosted-geoipupdate-1                                   Started                                                                                                                                                 4.2s 
 ✔ Container sentry-self-hosted-symbolicator-cleanup-1                          Started                                                                                                                                                 4.4s 
 ✔ Container sentry-self-hosted-memcached-1                                     Started                                                                                                                                                 3.4s 
 ✔ Container sentry-self-hosted-symbolicator-1                                  Started                                                                                                                                                 3.7s 
 ✔ Container sentry-self-hosted-postgres-1                                      Healthy                                                                                                                                                40.9s 
 ✔ Container sentry-self-hosted-vroom-1                                         Started                                                                                                                                                38.1s 
 ✔ Container sentry-self-hosted-snuba-profiling-profiles-consumer-1             Started                                                                                                                                                48.2s 
 ✔ Container sentry-self-hosted-snuba-profiling-functions-consumer-1            Started                                                                                                                                                44.2s 
 ✔ Container sentry-self-hosted-snuba-subscription-consumer-metrics-1           Started                                                                                                                                                48.9s 
 ✔ Container sentry-self-hosted-snuba-group-attributes-consumer-1               Started                                                                                                                                                38.5s 
 ✔ Container sentry-self-hosted-snuba-errors-consumer-1                         Started                                                                                                                                                46.4s 
 ✔ Container sentry-self-hosted-snuba-subscription-consumer-transactions-1      Started                                                                                                                                                39.8s 
 ✔ Container sentry-self-hosted-snuba-transactions-consumer-1                   Started                                                                                                                                                38.7s 
 ✔ Container sentry-self-hosted-snuba-generic-metrics-gauges-consumer-1         Started                                                                                                                                                37.8s 
 ✔ Container sentry-self-hosted-snuba-outcomes-consumer-1                       Started                                                                                                                                                37.1s 
 ✔ Container sentry-self-hosted-snuba-generic-metrics-counters-consumer-1       Started                                                                                                                                                48.4s 
 ✔ Container sentry-self-hosted-snuba-replays-consumer-1                        Started                                                                                                                                                36.6s 
 ✔ Container sentry-self-hosted-snuba-issue-occurrence-consumer-1               Started                                                                                                                                                39.1s 
 ✔ Container sentry-self-hosted-snuba-generic-metrics-sets-consumer-1           Started                                                                                                                                                42.5s 
 ✔ Container sentry-self-hosted-snuba-subscription-consumer-events-1            Started                                                                                                                                                36.7s 
 ✔ Container sentry-self-hosted-snuba-api-1                                     Started                                                                                                                                                39.8s 
 ✔ Container sentry-self-hosted-snuba-metrics-consumer-1                        Started                                                                                                                                                39.0s 
 ✔ Container sentry-self-hosted-snuba-generic-metrics-distributions-consumer-1  Started                                                                                                                                                38.1s 
 ✔ Container sentry-self-hosted-snuba-outcomes-billing-consumer-1               Started                                                                                                                                                38.5s 
 ✔ Container sentry-self-hosted-snuba-replacer-1                                Started                                                                                                                                                41.6s 
 ✔ Container sentry-self-hosted-snuba-spans-consumer-1                          Started                                                                                                                                                36.2s 
 ✔ Container sentry-self-hosted-transactions-consumer-1                         Started                                                                                                                                                58.9s 
 ✔ Container sentry-self-hosted-ingest-profiles-1                               Started                                                                                                                                                59.7s 
 ✔ Container sentry-self-hosted-attachments-consumer-1                          Started                                                                                                                                                60.2s 
 ✔ Container sentry-self-hosted-subscription-consumer-events-1                  Started                                                                                                                                                53.8s 
 ✔ Container sentry-self-hosted-post-process-forwarder-transactions-1           Started                                                                                                                                                58.4s 
 ✔ Container sentry-self-hosted-metrics-consumer-1                              Started                                                                                                                                                52.7s 
 ✔ Container sentry-self-hosted-billing-metrics-consumer-1                      Started                                                                                                                                                58.9s 
 ✔ Container sentry-self-hosted-monitors-clock-tasks-1                          Started                                                                                                                                                60.4s 
 ✔ Container sentry-self-hosted-cron-1                                          Started                                                                                                                                                55.2s 
 ✔ Container sentry-self-hosted-post-process-forwarder-issue-platform-1         Started                                                                                                                                                48.6s 
 ✔ Container sentry-self-hosted-post-process-forwarder-errors-1                 Started                                                                                                                                                57.9s 
 ✔ Container sentry-self-hosted-ingest-feedback-events-1                        Started                                                                                                                                                56.9s 
 ✔ Container sentry-self-hosted-sentry-cleanup-1                                Started                                                                                                                                                57.1s 
 ✔ Container sentry-self-hosted-subscription-consumer-transactions-1            Started                                                                                                                                                60.2s 
 ✔ Container sentry-self-hosted-subscription-consumer-generic-metrics-1         Started                                                                                                                                                55.3s 
 ✔ Container sentry-self-hosted-events-consumer-1                               Started                                                                                                                                                57.8s 
 ✔ Container sentry-self-hosted-monitors-clock-tick-1                           Started                                                                                                                                                52.4s 
 ✔ Container sentry-self-hosted-subscription-consumer-metrics-1                 Started                                                                                                                                                59.3s 
 ✘ Container sentry-self-hosted-web-1                                           Error                                                                                                                                                 358.2s 
 ✔ Container sentry-self-hosted-worker-1                                        Started                                                                                                                                                58.6s 
 ✔ Container sentry-self-hosted-ingest-occurrences-1                            Started                                                                                                                                                60.3s 
 ✔ Container sentry-self-hosted-ingest-monitors-1                               Started                                                                                                                                                56.1s 
 ✔ Container sentry-self-hosted-ingest-replay-recordings-1                      Started                                                                                                                                                51.6s 
 ✔ Container sentry-self-hosted-generic-metrics-consumer-1                      Started                                                                                                                                                52.8s 
 ✔ Container sentry-self-hosted-relay-1                                         Created                                                                                                                                                 0.2s 
 ✔ Container sentry-self-hosted-nginx-1                                         Created                                                                                                                                                 0.3s

Event ID

No response

@Bart-Westenenk
Copy link
Author

I have investigated this a bit on my own, if you change this line to use your custom port (in my case 9200), then it does boot up correctly.

@Bart-Westenenk
Copy link
Author

Bart-Westenenk commented Jan 22, 2025

I still seem to get a bad gateway, probably due to this line in the nginx config

@Bart-Westenenk
Copy link
Author

The following lines in the relay container point to problems in ingestion:

2025-01-23T09:37:06.145413Z ERROR relay_server::services::upstream: authentication encountered error error=could not send request to upstream error.sources=[error sending request for url (http://web:9000/api/0/relays/register/challenge/), client error (Connect), tcp connect error: Connection refused (os error 111), Connection refused (os error 111)] tags.attempts=17

@aldy505
Copy link
Collaborator

aldy505 commented Jan 23, 2025

Hey @Bart-Westenenk what was your SENTRY_BIND value? It should be fine to put anything. Unless you're using Docker host networking.

@Bart-Westenenk
Copy link
Author

Bart-Westenenk commented Jan 23, 2025

I set it to 9200. The healtcheck is run from the perspective of the host machine so changing the bind port does change the way the healthcheck should function.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 23, 2025
@Bart-Westenenk
Copy link
Author

Any news regarding this issue? Will this be picked up? Can I help out in some way?

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

No branches or pull requests

2 participants