getsentry / self-hosted

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
https://develop.sentry.dev/self-hosted/
Other
7.83k stars 1.76k forks source link

Alert rules not triggering anymore after updating to 21.6.0 #1582

Closed webmozart closed 2 years ago

webmozart commented 2 years ago

Self-Hosted Version

21.6.0

CPU Architecture

x86_64

Docker Version

20.10.17

Docker Compose Version

1.29.2

Steps to Reproduce

  1. Create an alert rule with the following configuration
    • Alert: Number of errors
    • Environment: prod
    • Type: event.type:error
    • Time interval: 15 minutes
    • Threshold type: Count
    • Critical: Above 10
    • Warning: Above 5
    • Perform actions: Critical status -> Slack
    • Perform actions: Warning status -> Slack
      1. Raise an error for environment prod 6 times

Expected Result

Actual Result

image

This is the case for all of our alert rules of this type. We see that for all of them, "Last triggered at" is before the date we updated to 21.6.0, even if the graph clearly shows the alert rule should have triggered after that.

Install log

``` ▶ Parsing command line ... ▶ Initializing Docker Compose ... ▶ Setting up error handling ... ▶ Checking for latest commit ... ▶ Checking minimum requirements ... Found Docker version 20.10.17 Found Docker Compose version 1.29.2 Unable to find image 'busybox:latest' locally latest: Pulling from library/busybox 19d511225f94: Pulling fs layer 19d511225f94: Download complete 19d511225f94: Pull complete Digest: sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83 Status: Downloaded newer image for busybox:latest WARN: Recommended minimum RAM available to Docker is 7800 MB, found 7599 MB ▶ Turning things off ... Stopping sentry-self-hosted_nginx_1 ... Stopping sentry-self-hosted_relay_1 ... Stopping sentry-self-hosted_web_1 ... Stopping sentry-self-hosted_cron_1 ... Stopping sentry-self-hosted_worker_1 ... Stopping sentry-self-hosted_ingest-consumer_1 ... Stopping sentry-self-hosted_subscription-consumer-transactions_1 ... Stopping sentry-self-hosted_subscription-consumer-events_1 ... Stopping sentry-self-hosted_post-process-forwarder_1 ... Stopping sentry-self-hosted_sentry-cleanup_1 ... Stopping sentry-self-hosted_snuba-cleanup_1 ... Stopping sentry-self-hosted_snuba-transactions-cleanup_1 ... Stopping sentry-self-hosted_symbolicator-cleanup_1 ... Stopping sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... Stopping sentry-self-hosted_snuba-transactions-consumer_1 ... Stopping sentry-self-hosted_snuba-sessions-consumer_1 ... Stopping sentry-self-hosted_snuba-api_1 ... Stopping sentry-self-hosted_snuba-replacer_1 ... Stopping sentry-self-hosted_snuba-outcomes-consumer_1 ... Stopping sentry-self-hosted_snuba-subscription-consumer-events_1 ... Stopping sentry-self-hosted_snuba-consumer_1 ... Stopping sentry-self-hosted_smtp_1 ... Stopping sentry-self-hosted_memcached_1 ... Stopping sentry-self-hosted_symbolicator_1 ... Stopping sentry-self-hosted_postgres_1 ... Stopping sentry-self-hosted_kafka_1 ... Stopping sentry-self-hosted_zookeeper_1 ... Stopping sentry-self-hosted_clickhouse_1 ... Stopping sentry-self-hosted_redis_1 ... Stopping sentry-self-hosted_nginx_1 ... done Stopping sentry-self-hosted_worker_1 ... done Stopping sentry-self-hosted_relay_1 ... done Stopping sentry-self-hosted_post-process-forwarder_1 ... done Stopping sentry-self-hosted_ingest-consumer_1 ... done Stopping sentry-self-hosted_web_1 ... done Stopping sentry-self-hosted_subscription-consumer-events_1 ... done Stopping sentry-self-hosted_subscription-consumer-transactions_1 ... done Stopping sentry-self-hosted_cron_1 ... done Stopping sentry-self-hosted_symbolicator-cleanup_1 ... done Stopping sentry-self-hosted_sentry-cleanup_1 ... done Stopping sentry-self-hosted_snuba-cleanup_1 ... done Stopping sentry-self-hosted_snuba-transactions-cleanup_1 ... done Stopping sentry-self-hosted_smtp_1 ... done Stopping sentry-self-hosted_postgres_1 ... done Stopping sentry-self-hosted_snuba-consumer_1 ... done Stopping sentry-self-hosted_memcached_1 ... done Stopping sentry-self-hosted_snuba-subscription-consumer-events_1 ... done Stopping sentry-self-hosted_snuba-api_1 ... done Stopping sentry-self-hosted_snuba-transactions-consumer_1 ... done Stopping sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... done Stopping sentry-self-hosted_snuba-outcomes-consumer_1 ... done Stopping sentry-self-hosted_snuba-sessions-consumer_1 ... done Stopping sentry-self-hosted_snuba-replacer_1 ... done Stopping sentry-self-hosted_redis_1 ... done Stopping sentry-self-hosted_clickhouse_1 ... done Stopping sentry-self-hosted_kafka_1 ... done Stopping sentry-self-hosted_zookeeper_1 ... done Stopping sentry-self-hosted_symbolicator_1 ... done Removing sentry-self-hosted_nginx_1 ... Removing sentry-self-hosted_relay_1 ... Removing sentry-self-hosted_web_1 ... Removing sentry-self-hosted_cron_1 ... Removing sentry-self-hosted_worker_1 ... Removing sentry-self-hosted_ingest-consumer_1 ... Removing sentry-self-hosted_subscription-consumer-transactions_1 ... Removing sentry-self-hosted_subscription-consumer-events_1 ... Removing sentry-self-hosted_post-process-forwarder_1 ... Removing sentry-self-hosted_sentry-cleanup_1 ... Removing sentry-self-hosted_snuba-cleanup_1 ... Removing sentry-self-hosted_snuba-transactions-cleanup_1 ... Removing sentry-self-hosted_symbolicator-cleanup_1 ... Removing sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... Removing sentry-self-hosted_snuba-transactions-consumer_1 ... Removing sentry-self-hosted_snuba-sessions-consumer_1 ... Removing sentry-self-hosted_snuba-api_1 ... Removing sentry-self-hosted_snuba-replacer_1 ... Removing sentry-self-hosted_snuba-outcomes-consumer_1 ... Removing sentry-self-hosted_snuba-subscription-consumer-events_1 ... Removing sentry-self-hosted_snuba-consumer_1 ... Removing sentry-self-hosted_smtp_1 ... Removing sentry-self-hosted_memcached_1 ... Removing sentry-self-hosted_symbolicator_1 ... Removing sentry-self-hosted_postgres_1 ... Removing sentry-self-hosted_kafka_1 ... Removing sentry-self-hosted_zookeeper_1 ... Removing sentry-self-hosted_clickhouse_1 ... Removing sentry-self-hosted_redis_1 ... Removing sentry-self-hosted_zookeeper_1 ... done Removing sentry-self-hosted_smtp_1 ... done Removing sentry-self-hosted_subscription-consumer-events_1 ... done Removing sentry-self-hosted_snuba-sessions-consumer_1 ... done Removing sentry-self-hosted_cron_1 ... done Removing sentry-self-hosted_redis_1 ... done Removing sentry-self-hosted_subscription-consumer-transactions_1 ... done Removing sentry-self-hosted_snuba-transactions-cleanup_1 ... done Removing sentry-self-hosted_relay_1 ... done Removing sentry-self-hosted_memcached_1 ... done Removing sentry-self-hosted_symbolicator-cleanup_1 ... done Removing sentry-self-hosted_symbolicator_1 ... done Removing sentry-self-hosted_snuba-api_1 ... done Removing sentry-self-hosted_postgres_1 ... done Removing sentry-self-hosted_snuba-replacer_1 ... done Removing sentry-self-hosted_sentry-cleanup_1 ... done Removing sentry-self-hosted_snuba-cleanup_1 ... done Removing sentry-self-hosted_kafka_1 ... done Removing sentry-self-hosted_web_1 ... done Removing sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... done Removing sentry-self-hosted_snuba-consumer_1 ... done Removing sentry-self-hosted_snuba-subscription-consumer-events_1 ... done Removing sentry-self-hosted_snuba-transactions-consumer_1 ... done Removing sentry-self-hosted_snuba-outcomes-consumer_1 ... done Removing sentry-self-hosted_ingest-consumer_1 ... done Removing sentry-self-hosted_nginx_1 ... done Removing sentry-self-hosted_clickhouse_1 ... done Removing sentry-self-hosted_post-process-forwarder_1 ... done Removing sentry-self-hosted_worker_1 ... done Removing network sentry-self-hosted_default Removing network sentry_onpremise_default Network sentry_onpremise_default not found. ▶ 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. ▶ Ensuring Relay credentials ... ../relay/config.yml already exists, skipped creation. ../relay/credentials.json already exists, skipped creation. ▶ Generating secret key ... ▶ Replacing TSDB ... ▶ Fetching and updating Docker images ... Some service image(s) must be built from source by running: docker-compose build post-process-forwarder snuba-transactions-cleanup symbolicator-cleanup worker ingest-consumer subscription-consumer-transactions web cron sentry-cleanup subscription-consumer-events snuba-cleanup 22.6.0: Pulling from getsentry/sentry f7a1c6dad281: Already exists 92c59ec44e08: Already exists 08935196cb79: Already exists 7aa958b41dfb: Already exists 86c7a279e304: Already exists 7da37016a7e5: Pulling fs layer c141df22af5f: Pulling fs layer c7a731e338c4: Pulling fs layer a634a839732e: Pulling fs layer d7ed0a809a96: Pulling fs layer cb700d4f9979: Pulling fs layer 74d1948a63af: Pulling fs layer 2c4e4fca3d3b: Pulling fs layer 0d45f8ca3f44: Pulling fs layer 461a01d924c3: Pulling fs layer d7ed0a809a96: Waiting cb700d4f9979: Waiting 74d1948a63af: Waiting 2c4e4fca3d3b: Waiting 0d45f8ca3f44: Waiting 461a01d924c3: Waiting a634a839732e: Waiting 7da37016a7e5: Verifying Checksum 7da37016a7e5: Download complete c141df22af5f: Verifying Checksum c141df22af5f: Download complete c7a731e338c4: Verifying Checksum c7a731e338c4: Download complete 7da37016a7e5: Pull complete c141df22af5f: Pull complete c7a731e338c4: Pull complete cb700d4f9979: Verifying Checksum cb700d4f9979: Download complete d7ed0a809a96: Verifying Checksum d7ed0a809a96: Download complete 74d1948a63af: Verifying Checksum 74d1948a63af: Download complete 2c4e4fca3d3b: Verifying Checksum 2c4e4fca3d3b: Download complete 0d45f8ca3f44: Verifying Checksum 0d45f8ca3f44: Download complete 461a01d924c3: Verifying Checksum 461a01d924c3: Download complete a634a839732e: Verifying Checksum a634a839732e: Download complete a634a839732e: Pull complete d7ed0a809a96: Pull complete cb700d4f9979: Pull complete 74d1948a63af: Pull complete 2c4e4fca3d3b: Pull complete 0d45f8ca3f44: Pull complete 461a01d924c3: Pull complete Digest: sha256:804c986af20b59ea0f1c0824c9e80de5e5c1fbaabbb29ebe2289a376115dd100 Status: Downloaded newer image for getsentry/sentry:22.6.0 docker.io/getsentry/sentry:22.6.0 ▶ Building and tagging Docker images ... Building web Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Running in 12c1cc758ebe Removing intermediate container 12c1cc758ebe ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Running in 63c9678fb070 sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Removing intermediate container 63c9678fb070 ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest smtp uses an image, skipping memcached uses an image, skipping redis uses an image, skipping postgres uses an image, skipping zookeeper uses an image, skipping kafka uses an image, skipping clickhouse uses an image, skipping geoipupdate uses an image, skipping snuba-api uses an image, skipping snuba-consumer uses an image, skipping snuba-outcomes-consumer uses an image, skipping snuba-sessions-consumer uses an image, skipping snuba-transactions-consumer uses an image, skipping snuba-replacer uses an image, skipping snuba-subscription-consumer-events uses an image, skipping snuba-subscription-consumer-transactions uses an image, skipping symbolicator uses an image, skipping relay uses an image, skipping nginx uses an image, skipping Building snuba-cleanup Sending build context to Docker daemon 3.584kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> 5321b198370b Step 3/6 : USER 0 ---> Running in f34376209f68 Removing intermediate container f34376209f68 ---> f040d97f7598 Step 4/6 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* ---> Running in 23168ef80e15 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB] Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [154 kB] Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB] Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B] Fetched 8539 kB in 1s (7632 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: sensible-utils Suggested packages: anacron logrotate checksecurity Recommended packages: default-mta | mail-transport-agent The following NEW packages will be installed: cron sensible-utils 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 114 kB of archives. After this operation, 314 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB] Get:2 http://deb.debian.org/debian bullseye/main amd64 cron amd64 3.0pl1-137 [99.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 114 kB in 0s (8303 kB/s) Selecting previously unselected package sensible-utils. (Reading database ... 7032 files and directories currently installed.) Preparing to unpack .../sensible-utils_0.0.14_all.deb ... Unpacking sensible-utils (0.0.14) ... Selecting previously unselected package cron. Preparing to unpack .../cron_3.0pl1-137_amd64.deb ... Unpacking cron (3.0pl1-137) ... Setting up sensible-utils (0.0.14) ... Setting up cron (3.0pl1-137) ... Adding group `crontab' (GID 101) ... Done. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Removing intermediate container 23168ef80e15 ---> 01f2939b404a Step 5/6 : COPY entrypoint.sh /entrypoint.sh ---> f6131c551271 Step 6/6 : ENTRYPOINT ["/entrypoint.sh"] ---> Running in 620eac818c0c Removing intermediate container 620eac818c0c ---> da0387e006b2 Successfully built da0387e006b2 Successfully tagged snuba-cleanup-self-hosted-local:latest Building snuba-transactions-cleanup Sending build context to Docker daemon 3.584kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> 5321b198370b Step 3/6 : USER 0 ---> Using cache ---> f040d97f7598 Step 4/6 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* ---> Using cache ---> 01f2939b404a Step 5/6 : COPY entrypoint.sh /entrypoint.sh ---> Using cache ---> f6131c551271 Step 6/6 : ENTRYPOINT ["/entrypoint.sh"] ---> Using cache ---> da0387e006b2 Successfully built da0387e006b2 Successfully tagged snuba-cleanup-self-hosted-local:latest Building symbolicator-cleanup Sending build context to Docker daemon 3.584kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> 543d5fd4f165 Step 3/6 : USER 0 ---> Running in b1a3ebbc5637 Removing intermediate container b1a3ebbc5637 ---> cce3d22d159e Step 4/6 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* ---> Running in 931e5cdfb052 Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB] Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB] Get:4 http://deb.debian.org/debian stretch Release [118 kB] Get:5 http://deb.debian.org/debian stretch Release.gpg [3177 B] Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [778 kB] Get:7 http://deb.debian.org/debian stretch/main amd64 Packages [7080 kB] Fetched 8125 kB in 1s (6973 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Suggested packages: anacron logrotate checksecurity Recommended packages: exim4 | postfix | mail-transport-agent The following NEW packages will be installed: cron 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 96.6 kB of archives. After this operation, 257 kB of additional disk space will be used. Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 cron amd64 3.0pl1-128+deb9u2 [96.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 96.6 kB in 0s (0 B/s) Selecting previously unselected package cron. (Reading database ... 6906 files and directories currently installed.) Preparing to unpack .../cron_3.0pl1-128+deb9u2_amd64.deb ... Unpacking cron (3.0pl1-128+deb9u2) ... Setting up cron (3.0pl1-128+deb9u2) ... Adding group `crontab' (GID 101) ... Done. update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Removing intermediate container 931e5cdfb052 ---> cf2392b7a63d Step 5/6 : COPY entrypoint.sh /entrypoint.sh ---> a6238a4e10e6 Step 6/6 : ENTRYPOINT ["/entrypoint.sh"] ---> Running in c6ac470949fa Removing intermediate container c6ac470949fa ---> 27e42aa7dd32 Successfully built 27e42aa7dd32 Successfully tagged symbolicator-cleanup-self-hosted-local:latest Building web Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building cron Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building worker Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building ingest-consumer Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building post-process-forwarder Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building subscription-consumer-events Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building subscription-consumer-transactions Sending build context to Docker daemon 45.06kB Step 1/5 : ARG SENTRY_IMAGE Step 2/5 : FROM ${SENTRY_IMAGE} ---> c5386634dcb8 Step 3/5 : COPY . /usr/src/sentry ---> Using cache ---> 9c46a3ce3f68 Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi ---> Using cache ---> ae8d858bafce Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image"; pip install -r /usr/src/sentry/requirements.txt; fi ---> Using cache ---> 1f1167252fba Successfully built 1f1167252fba Successfully tagged sentry-self-hosted-local:latest Building sentry-cleanup Sending build context to Docker daemon 3.584kB Step 1/6 : ARG BASE_IMAGE Step 2/6 : FROM ${BASE_IMAGE} ---> 1f1167252fba Step 3/6 : USER 0 ---> Running in 732a2fed9ac0 Removing intermediate container 732a2fed9ac0 ---> 1b81e717f03a Step 4/6 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* ---> Running in ff02328dc416 Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB] Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB] Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [154 kB] Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB] Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B] Fetched 8539 kB in 1s (7352 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: sensible-utils Suggested packages: anacron logrotate checksecurity Recommended packages: default-mta | mail-transport-agent The following NEW packages will be installed: cron sensible-utils 0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded. Need to get 114 kB of archives. After this operation, 314 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB] Get:2 http://deb.debian.org/debian bullseye/main amd64 cron amd64 3.0pl1-137 [99.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 114 kB in 0s (9169 kB/s) Selecting previously unselected package sensible-utils. (Reading database ... 12313 files and directories currently installed.) Preparing to unpack .../sensible-utils_0.0.14_all.deb ... Unpacking sensible-utils (0.0.14) ... Selecting previously unselected package cron. Preparing to unpack .../cron_3.0pl1-137_amd64.deb ... Unpacking cron (3.0pl1-137) ... Setting up sensible-utils (0.0.14) ... Setting up cron (3.0pl1-137) ... Adding group `crontab' (GID 101) ... Done. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Removing intermediate container ff02328dc416 ---> f0acd2158948 Step 5/6 : COPY entrypoint.sh /entrypoint.sh ---> 5acff14014bb Step 6/6 : ENTRYPOINT ["/entrypoint.sh"] ---> Running in 12a9d3996be1 Removing intermediate container 12a9d3996be1 ---> 58539e575a03 Successfully built 58539e575a03 Successfully tagged sentry-cleanup-self-hosted-local:latest Docker images built. ▶ Setting up Zookeeper ... Creating network "sentry-self-hosted_default" with the default driver Creating volume "sentry-self-hosted_sentry-nginx-cache" with default driver Creating sentry-self-hosted_zookeeper_run ... Creating sentry-self-hosted_zookeeper_run ... done Creating sentry-self-hosted_zookeeper_run ... Creating sentry-self-hosted_zookeeper_run ... done Creating sentry-self-hosted_zookeeper_run ... Creating sentry-self-hosted_zookeeper_run ... done ▶ Downloading and installing wal2json ... Unable to find image 'curlimages/curl:7.77.0' locally 7.77.0: Pulling from curlimages/curl 339de151aab4: Pulling fs layer 9576f9a419e9: Pulling fs layer 5b67e0e9bce9: Pulling fs layer 7c0640a6c519: Pulling fs layer 1d8f7d50664a: Pulling fs layer 3ce74da83aeb: Pulling fs layer 7094fabf5e16: Pulling fs layer 2f4d0b649c1f: Pulling fs layer 110e7f874674: Pulling fs layer 2f4d0b649c1f: Waiting 110e7f874674: Waiting 7c0640a6c519: Waiting 1d8f7d50664a: Waiting 5b67e0e9bce9: Download complete 9576f9a419e9: Verifying Checksum 9576f9a419e9: Download complete 339de151aab4: Verifying Checksum 339de151aab4: Download complete 339de151aab4: Pull complete 9576f9a419e9: Pull complete 5b67e0e9bce9: Pull complete 7c0640a6c519: Download complete 3ce74da83aeb: Verifying Checksum 3ce74da83aeb: Download complete 1d8f7d50664a: Verifying Checksum 1d8f7d50664a: Download complete 7c0640a6c519: Pull complete 1d8f7d50664a: Pull complete 3ce74da83aeb: Pull complete 110e7f874674: Verifying Checksum 110e7f874674: Download complete 7094fabf5e16: Download complete 2f4d0b649c1f: Verifying Checksum 7094fabf5e16: Pull complete 2f4d0b649c1f: Pull complete 110e7f874674: Pull complete Digest: sha256:6e0a786e3e5181df00eaf3a0a1749c18a6bb20b01c9bd192ea72176ce8a1c94b Status: Downloaded newer image for curlimages/curl:7.77.0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5417 100 5417 0 0 31268 0 --:--:-- --:--:-- --:--:-- 31312 ▶ Bootstrapping and migrating Snuba ... Creating sentry-self-hosted_zookeeper_1 ... Creating sentry-self-hosted_redis_1 ... Creating sentry-self-hosted_clickhouse_1 ... Creating sentry-self-hosted_redis_1 ... done Creating sentry-self-hosted_clickhouse_1 ... done Creating sentry-self-hosted_zookeeper_1 ... done Creating sentry-self-hosted_kafka_1 ... Creating sentry-self-hosted_kafka_1 ... done Creating sentry-self-hosted_snuba-api_run ... Creating sentry-self-hosted_snuba-api_run ... done 2022-06-17 07:21:43,441 Attempting to connect to Kafka (attempt 0)... 2022-06-17 07:21:43,463 Connected to Kafka on attempt 0 2022-06-17 07:21:43,463 Creating Kafka topics... Creating sentry-self-hosted_snuba-api_run ... Creating sentry-self-hosted_snuba-api_run ... done 2022-06-17 07:21:47,672 Running migration: 0001_sets_aggregate_table 2022-06-17 07:21:47,710 Finished: 0001_sets_aggregate_table 2022-06-17 07:21:47,714 Running migration: 0002_sets_raw_table 2022-06-17 07:21:47,722 Finished: 0002_sets_raw_table 2022-06-17 07:21:47,725 Running migration: 0003_sets_mv 2022-06-17 07:21:47,733 Finished: 0003_sets_mv Finished running migrations ▶ Creating additional Kafka topics ... ▶ Ensuring proper PostgreSQL version ... ▶ Setting up / migrating database ... Creating sentry-self-hosted_symbolicator_1 ... Creating sentry-self-hosted_postgres_1 ... Creating sentry-self-hosted_memcached_1 ... Creating sentry-self-hosted_smtp_1 ... Creating sentry-self-hosted_snuba-sessions-consumer_1 ... Creating sentry-self-hosted_snuba-consumer_1 ... Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... Creating sentry-self-hosted_snuba-api_1 ... Creating sentry-self-hosted_snuba-replacer_1 ... Creating sentry-self-hosted_snuba-transactions-consumer_1 ... Creating sentry-self-hosted_snuba-subscription-consumer-events_1 ... Creating sentry-self-hosted_snuba-outcomes-consumer_1 ... Creating sentry-self-hosted_memcached_1 ... done Creating sentry-self-hosted_postgres_1 ... done Creating sentry-self-hosted_symbolicator_1 ... done Creating sentry-self-hosted_snuba-consumer_1 ... done Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... done Creating sentry-self-hosted_snuba-sessions-consumer_1 ... done Creating sentry-self-hosted_snuba-transactions-consumer_1 ... done Creating sentry-self-hosted_snuba-replacer_1 ... done Creating sentry-self-hosted_snuba-api_1 ... done Creating sentry-self-hosted_snuba-outcomes-consumer_1 ... done Creating sentry-self-hosted_snuba-subscription-consumer-events_1 ... done Creating sentry-self-hosted_smtp_1 ... done Creating sentry-self-hosted_web_run ... Creating sentry-self-hosted_web_run ... done sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image /usr/local/lib/python3.8/site-packages/memcache.py:1303: SyntaxWarning: "is" with a literal. Did you mean "=="? if key is '': /usr/local/lib/python3.8/site-packages/memcache.py:1304: SyntaxWarning: "is" with a literal. Did you mean "=="? if key_extra_len is 0: 07:22:27 [INFO] sentry.plugins.github: apps-not-configured Running migrations for default Operations to perform: Apply all migrations: admin, auth, contenttypes, nodestore, sentry, sessions, sites, social_auth Running migrations: Applying sentry.0291_add_new_perf_indexer... OK Creating missing DSNs Correcting Group.num_comments counter ▶ Migrating file storage ... Unable to find image 'alpine:latest' locally latest: Pulling from library/alpine 2408cc74d12b: Pulling fs layer 2408cc74d12b: Download complete 2408cc74d12b: Pull complete Digest: sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c Status: Downloaded newer image for alpine:latest ▶ Setting up GeoIP integration ... Setting up IP address geolocation ... IP address geolocation database already exists. IP address geolocation is configured for updates. Updating IP address geolocation database ... Creating sentry-self-hosted_geoipupdate_run ... Creating sentry-self-hosted_geoipupdate_run ... done Done updating IP address geolocation database. Done setting up IP address geolocation. ----------------------------------------------------------------- You're all done! Run the following command to get Sentry running: docker-compose up -d ----------------------------------------------------------------- ```

ethanhs commented 2 years ago

Hi, what version did you upgrade from? Also have you double checked the integration settings are correctly stored?

webmozart commented 2 years ago

@ethanhs I upgraded from 22.5.0. How would I double check whether my "integration settings are correctly stored"?

I upgraded to 22.7.0 and this seems to have resolved the issue so far.

ethanhs commented 2 years ago

Oh, just that they persisted between upgrades (i.e. that the settings for the integration is still there). If upgrading to 22.7.0 fixed things then I think we're good to close this?

webmozart commented 2 years ago

I believe so. :+1: