Sentry not receiving any errors logged

Hello! I’m the sole person on my team trying to figure out how Sentry works. After exhausting everyone else’s ideas I am now here.

We have set up sentry-onpremise using the install.sh provided for docker. So far the UI and everything looks totally fine, but actual error logging is not happening at all. We’ve the right users and permissions added and a test file (zero_div.py) with our project DSN and a simple “zero division” error. However, nothing is being captured by sentry.

    ~/playground/sentry  python3 zero_div.py                                                                                                                                 ✔    at 13:01:34   29%  
Traceback (most recent call last):
  File "/Users/admin/playground/sentry/zero_div.py", line 11, in <module>
    division_by_zero = 1 / 0
ZeroDivisionError: division by zero
Sentry is attempting to send 1 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
    ~/playground/sentry                                                                                                                                                    1 ✘    at 13:49:06   76%  
(production) admin@localhost:/opt/sentry_install/onpremise/cron$ docker ps
CONTAINER ID   IMAGE                                  COMMAND                  CREATED      STATUS                 PORTS                          NAMES
96c4a0342efb   nginx:1.16                             "nginx -g 'daemon of…"   9 days ago   Up 2 hours             0.0.0.0:9000->80/tcp           sentry_onpremise_nginx_1
ebcca65adecd   getsentry/relay:nightly                "/bin/bash /docker-e…"   9 days ago   Up 2 hours             3000/tcp                       sentry_onpremise_relay_1
2c272d64c0e9   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_subscription-consumer-transactions_1
9f1d9a254487   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_worker_1
2015f623ea95   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_ingest-consumer_1
945e334b6093   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_subscription-consumer-events_1
2fcf05fb48eb   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_web_1
bc15492f3e6d   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_cron_1
13a94045ee7b   sentry-cleanup-onpremise-local         "/entrypoint.sh '0 0…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_sentry-cleanup_1
402178bda128   getsentry/sentry:21.5.1                "/etc/sentry/entrypo…"   9 days ago   Up 2 hours             9000/tcp                       sentry_onpremise_post-process-forwarder_1
d8ac94ad6460   snuba-cleanup-onpremise-local          "/entrypoint.sh '*/5…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-transactions-cleanup_1
c7bd0471c937   snuba-cleanup-onpremise-local          "/entrypoint.sh '*/5…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-cleanup_1
0c63e69ce6a7   symbolicator-cleanup-onpremise-local   "/entrypoint.sh '55 …"   9 days ago   Up 2 hours             3021/tcp                       sentry_onpremise_symbolicator-cleanup_1
339c40c6d66b   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-transactions-consumer_1
ba4668b4ab6f   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-outcomes-consumer_1
92c7f7d8f116   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-consumer_1
0b2ca15b36b4   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-replacer_1
8702403e3a42   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-api_1
0dfaadc041b3   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-subscription-consumer-events_1
1923cbee75cc   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-subscription-consumer-transactions_1
63ee576d2d62   getsentry/snuba:nightly                "./docker_entrypoint…"   9 days ago   Up 2 hours             1218/tcp                       sentry_onpremise_snuba-sessions-consumer_1
9be78d351e48   memcached:1.5-alpine                   "docker-entrypoint.s…"   9 days ago   Up 2 hours (healthy)   11211/tcp                      sentry_onpremise_memcached_1
419a8fb16c6a   getsentry/symbolicator:nightly         "/bin/bash /docker-e…"   9 days ago   Up 2 hours             3021/tcp                       sentry_onpremise_symbolicator_1
9e1871dfd75d   postgres:9.6                           "/opt/sentry/postgre…"   9 days ago   Up 2 hours (healthy)   5432/tcp                       sentry_onpremise_postgres_1
5910a0a5c76c   tianon/exim4                           "docker-entrypoint.s…"   9 days ago   Up 2 hours             25/tcp                         sentry_onpremise_smtp_1
ebb332001f21   confluentinc/cp-kafka:5.5.0            "/etc/confluent/dock…"   9 days ago   Up 2 hours (healthy)   9092/tcp                       sentry_onpremise_kafka_1
a85415773b1b   yandex/clickhouse-server:20.3.9.70     "/entrypoint.sh"         9 days ago   Up 2 hours             8123/tcp, 9000/tcp, 9009/tcp   sentry_onpremise_clickhouse_1
5ea573d9b655   redis:5.0-alpine                       "docker-entrypoint.s…"   9 days ago   Up 2 hours (healthy)   6379/tcp                       sentry_onpremise_redis_1
42120cdc52a4   confluentinc/cp-zookeeper:5.5.0        "/etc/confluent/dock…"   9 days ago   Up 2 hours (healthy)   2181/tcp, 2888/tcp, 3888/tcp   sentry_onpremise_zookeeper_1

I’ve been attempting to go through the sentry/config.yml and sentry/sentry.conf.py. As well as all of the containers’ logs. However redis doesn’t seem to have a shell installed? So I’ve no idea how to debug that container.

Almost all of the config is just left as default for now, except adding our domain etc.

I also see everyone else referencing logs they have checked, but I am unsure are these specific container /var/log - logs or are there some other logs I have not been able to find? For example these users have logs: Sentry not logging errors - #8 by taxi91 - but I’ve no idea where to find that information.

Literally any assistance would be greatly appreciated.

You can find some information over at https://develop.sentry.dev/self-hosted/troubleshooting/ (how to get logs etc.)

That said it sounds to me like your app cannot communicate with your Sentry instance to me.