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.77k stars 1.75k forks source link

Error in upgrading process (Postgres) #3254

Closed AlexFisher94 closed 1 month ago

AlexFisher94 commented 1 month ago

Self-Hosted Version

24.1.1

CPU Architecture

x86_64

Docker Version

20.10.11

Docker Compose Version

2.27.0

Steps to Reproduce

  1. git checkout 24.1.2
  2. Correcting ssl certs in docker-compose.yml and in nginx.conf
  3. sudo ./install.sh

Expected Result

Successfull upgrade to 24.1.2

Actual Result

Hello all

Trying upgrade Sentry from 24.1.1 to 24.1.2 And i got error in script set-up-and-migrate-database.sh

Here's installation log

[root@sa-vm-sentry-test self-hosted]# ./install.sh
▶ Parsing command line ...

▶ Detecting Docker platform
Detected Docker platform is linux/amd64

▶ Initializing Docker Compose ...

▶ Setting up error handling ...
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM debian:bookworm-slim
 ---> 765d2dd7df99
Step 2/4 : LABEL MAINTAINER="oss@sentry.io"
 ---> Using cache
 ---> 09a46a603334
Step 3/4 : RUN set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 3ed3d66c059d
Step 4/4 : ENTRYPOINT ["jq"]
 ---> Using cache
 ---> 6b82463203ca
Successfully built 6b82463203ca
Successfully tagged sentry-self-hosted-jq-local:latest

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:

  - OS username
  - IP address
  - install log
  - runtime errors
  - performance data

Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.

y or n? 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 ...
error: unknown option `show-current'
usage: git branch [options] [-r | -a] [--merged | --no-merged]
   or: git branch [options] [-l] [-f] <branchname> [<start-point>]
   or: git branch [options] [-r] (-d | -D) <branchname>...
   or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>

Generic options
    -v, --verbose         show hash and subject, give twice for upstream branch
    -q, --quiet           suppress informational messages
    -t, --track           set up tracking mode (see git-pull(1))
    --set-upstream        change upstream info
    -u, --set-upstream-to <upstream>
                          change the upstream info
    --unset-upstream      Unset the upstream info
    --color[=<when>]      use colored output
    -r, --remotes         act on remote-tracking branches
    --contains <commit>   print only branches that contain the commit
    --abbrev[=<n>]        use <n> digits to display SHA-1s

Specific git-branch actions:
    -a, --all             list both remote-tracking and local branches
    -d, --delete          delete fully merged branch
    -D                    delete branch (even if not merged)
    -m, --move            move/rename a branch and its reflog
    -M                    move/rename a branch, even if target exists
    --list                list branch names
    -l, --create-reflog   create the branch's reflog
    --edit-description    edit the description for the branch
    -f, --force           force creation (when already exists)
    --no-merged <commit>  print only not merged branches
    --merged <commit>     print only merged branches
    --column[=<style>]    list branches in columns

▶ Checking minimum requirements ...
Found Docker version 20.10.11
Found Docker Compose version 2.27.0

▶ Turning things off ...
 Container sentry-self-hosted-postgres-1  Stopping
 Container sentry-self-hosted-kafka-1  Stopping
 Container sentry-self-hosted-clickhouse-1  Stopping
 Container sentry-self-hosted-redis-1  Stopping
 Container sentry-self-hosted-postgres-1  Stopped
 Container sentry-self-hosted-postgres-1  Removing
 Container sentry-self-hosted-redis-1  Stopped
 Container sentry-self-hosted-redis-1  Removing
 Container sentry-self-hosted-clickhouse-1  Stopped
 Container sentry-self-hosted-clickhouse-1  Removing
 Container sentry-self-hosted-kafka-1  Stopped
 Container sentry-self-hosted-kafka-1  Removing
 Container sentry-self-hosted-clickhouse-1  Removed
 Container sentry-self-hosted-postgres-1  Removed
 Container sentry-self-hosted-redis-1  Removed
 Container sentry-self-hosted-kafka-1  Removed
 Container sentry-self-hosted-zookeeper-1  Stopping
 Container sentry-self-hosted-zookeeper-1  Stopped
 Container sentry-self-hosted-zookeeper-1  Removing
 Container sentry-self-hosted-zookeeper-1  Removed
 Image vroom-cleanup-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
 Image clickhouse-self-hosted-local:latest  Removing
 Network sentry-self-hosted_default  Removing
 Image vroom-cleanup-self-hosted-local:latest  Removed
 Image sentry-self-hosted-local:latest  Removed
 Image clickhouse-self-hosted-local:latest  Removed
 Image symbolicator-cleanup-self-hosted-local:latest  Removed
 Image sentry-cleanup-self-hosted-local:latest  Removed
 Network sentry-self-hosted_default  Removed

▶ 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 ...
24.1.2: Pulling from getsentry/sentry
Digest: sha256:71a6badf47995ea03e7a14a11cf0eb4bf4f830547573fe6033ac89118aa6bb83
Status: Image is up to date for getsentry/sentry:24.1.2
docker.io/getsentry/sentry:24.1.2

▶ Building and tagging Docker images ...

#0 building with "default" instance using docker driver

#1 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [web internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [web internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [web 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [web internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [web 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [web 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [web 4/4] 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
#8 CACHED

#9 [web] exporting to image
#9 exporting layers done
#9 writing image sha256:0f1b01749474d6f304195f644d50c2377590a4501d883dac05f553c3404f5fce done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [clickhouse internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [clickhouse internal] load build definition from Dockerfile
#1 transferring dockerfile: 130B done
#1 DONE 0.0s

#2 [clickhouse internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [clickhouse internal] load metadata for docker.io/altinity/clickhouse-server:21.8.13.1.altinitystable
#3 DONE 0.4s

#4 [clickhouse 1/1] FROM docker.io/altinity/clickhouse-server:21.8.13.1.altinitystable@sha256:125d2ea49c298515c46784d202a2bd4dde05157c85a76517afc2567f262ab335
#4 CACHED

#5 [clickhouse] exporting to image
#5 exporting layers done
#5 writing image sha256:7d8818aba6c8afadfe735985f3c10c34c513b3cfe6871eb42a8c7d5400ceacd8 done
#5 naming to docker.io/library/clickhouse-self-hosted-local done
#5 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [subscription-consumer-generic-metrics internal] load build definition from Dockerfile
#1 transferring dockerfile: 522B done
#1 DONE 0.0s

#2 [subscription-consumer-generic-metrics internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [subscription-consumer-generic-metrics internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [subscription-consumer-generic-metrics 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [subscription-consumer-generic-metrics internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [subscription-consumer-generic-metrics 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [subscription-consumer-generic-metrics 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [subscription-consumer-generic-metrics 4/4] 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
#8 CACHED

#9 [subscription-consumer-generic-metrics] exporting to image
#9 exporting layers done
#9 writing image sha256:6e7565189ea4a9d922883a31b452dac75b92a1c90a9bf429fdef3184a2e9709e done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [ingest-profiles internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [ingest-profiles internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [ingest-profiles internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [ingest-profiles internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [ingest-profiles 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [ingest-profiles internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [ingest-profiles 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [ingest-profiles 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [ingest-profiles 4/4] 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
#8 CACHED

#9 [ingest-profiles] exporting to image
#9 exporting layers done
#9 writing image sha256:5f71739e4e4712c4716985d08c5b7a78e570c7e33d025c3bd48a417cecc3a542 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [post-process-forwarder-errors internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [post-process-forwarder-errors internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [post-process-forwarder-errors internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [post-process-forwarder-errors 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [post-process-forwarder-errors internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [post-process-forwarder-errors 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [post-process-forwarder-errors 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [post-process-forwarder-errors 4/4] 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
#8 CACHED

#9 [post-process-forwarder-errors] exporting to image
#9 exporting layers done
#9 writing image sha256:33f843b5c1fe66040821e466550a71e1f8376fe4114b4a6cdd4b47349f084352 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [worker internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [worker internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [worker internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [worker internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [worker 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [worker internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [worker 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [worker 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [worker 4/4] 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
#8 CACHED

#9 [worker] exporting to image
#9 exporting layers done
#9 writing image sha256:830db34a71a223abcbbede385da521a74a00e36216294e16c19818c5e9295e20 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [ingest-replay-recordings internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [ingest-replay-recordings internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [ingest-replay-recordings internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [ingest-replay-recordings internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [ingest-replay-recordings 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [ingest-replay-recordings internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [ingest-replay-recordings 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [ingest-replay-recordings 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [ingest-replay-recordings 4/4] 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
#8 CACHED

#9 [ingest-replay-recordings] exporting to image
#9 exporting layers done
#9 writing image sha256:3179872acf8dfd5cf708be5786d1a42b76140ab5f9945e43ea66f1157eaa3a9c done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [web internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [web internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [web 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [web internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [web 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [web 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [web 4/4] 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
#8 CACHED

#9 [web] exporting to image
#9 exporting layers done
#9 writing image sha256:0f1b01749474d6f304195f644d50c2377590a4501d883dac05f553c3404f5fce done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [cron internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [cron internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [cron internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [cron 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [cron internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [cron 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [cron 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [cron 4/4] 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
#8 CACHED

#9 [cron] exporting to image
#9 exporting layers done
#9 writing image sha256:cf2cba88a712329aefda5195dc7be932472bb42429c8e3562705f2dca7ab70f1 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [ingest-monitors internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [ingest-monitors internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [ingest-monitors internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [ingest-monitors internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [ingest-monitors 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [ingest-monitors internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [ingest-monitors 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [ingest-monitors 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [ingest-monitors 4/4] 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
#8 CACHED

#9 [ingest-monitors] exporting to image
#9 exporting layers done
#9 writing image sha256:6e9f6392bfad85d7e3da38175e3f32ce2b09ab3234f82694cca432e6abfb4147 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [ingest-occurrences internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [ingest-occurrences internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [ingest-occurrences internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [ingest-occurrences 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [ingest-occurrences internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [ingest-occurrences 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [ingest-occurrences 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [ingest-occurrences 4/4] 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
#8 CACHED

#9 [ingest-occurrences] exporting to image
#9 exporting layers done
#9 writing image sha256:d135e50eab39fd3a10f4d4c5a81e0f9cbc1e9f2d17850e37068582538efa45cb done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [sentry-cleanup internal] load build definition from Dockerfile
#1 transferring dockerfile: 528B done
#1 DONE 0.0s

#2 [sentry-cleanup internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [sentry-cleanup internal] load metadata for docker.io/library/sentry-self-hosted-local:latest
#3 DONE 0.0s

#4 [sentry-cleanup 1/5] FROM docker.io/library/sentry-self-hosted-local
#4 DONE 0.0s

#5 [sentry-cleanup internal] load build context
#5 transferring context: 717B done
#5 DONE 0.0s

#6 [sentry-cleanup 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_proxy}";" >> /etc/apt/apt.conf; fi
#6 CACHED

#7 [sentry-cleanup 2/5] RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy "${http_proxy}";" >> /etc/apt/apt.conf; fi
#7 CACHED

#8 [sentry-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
#8 CACHED

#9 [sentry-cleanup 5/5] COPY entrypoint.sh /entrypoint.sh
#9 CACHED

#10 [sentry-cleanup] exporting to image
#10 exporting layers done
#10 writing image sha256:ee7d0ac840cdca8cbe35ca848b50d37e7be84bb424cd875fa449cba57bd7f419 done
#10 naming to docker.io/library/sentry-cleanup-self-hosted-local done
#10 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [generic-metrics-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 522B done
#1 DONE 0.0s

#2 [generic-metrics-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [generic-metrics-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [generic-metrics-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [generic-metrics-consumer internal] load build context
#5 transferring context: 30.05kB done
#5 DONE 0.0s

#6 [generic-metrics-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [generic-metrics-consumer 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [generic-metrics-consumer 4/4] 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
#8 CACHED

#9 [generic-metrics-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:9f65e916ca215058c93b9442bf21e3e1160cfeee940d75dca04c969113fd9017 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [post-process-forwarder-transactions internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [post-process-forwarder-transactions internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [post-process-forwarder-transactions internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [post-process-forwarder-transactions internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [post-process-forwarder-transactions 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [post-process-forwarder-transactions internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [post-process-forwarder-transactions 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [post-process-forwarder-transactions 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [post-process-forwarder-transactions 4/4] 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
#8 CACHED

#9 [post-process-forwarder-transactions] exporting to image
#9 exporting layers done
#9 writing image sha256:ea51959aa1c379355b5deb10d4a59ff94ccd7d19656c2854142751a67d7bcd54 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [metrics-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [metrics-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [metrics-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [metrics-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [metrics-consumer internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [metrics-consumer 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [metrics-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [metrics-consumer 4/4] 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
#8 CACHED

#9 [metrics-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:c0d2db75ca9215aa692f5625e120dddb2e7bddeec0b1c5e765c1917281bb895e done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [subscription-consumer-events internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [subscription-consumer-events internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [subscription-consumer-events internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [subscription-consumer-events internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [subscription-consumer-events 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [subscription-consumer-events internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [subscription-consumer-events 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [subscription-consumer-events 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [subscription-consumer-events 4/4] 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
#8 CACHED

#9 [subscription-consumer-events] exporting to image
#9 exporting layers done
#9 writing image sha256:cd3454cd0b1a2e0e37347b4fcdbc9ea6ed2e2efdea49825ca601559f6003ddae done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [symbolicator-cleanup internal] load build definition from Dockerfile
#1 transferring dockerfile: 528B done
#1 DONE 0.0s

#2 [symbolicator-cleanup internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [symbolicator-cleanup internal] load metadata for docker.io/getsentry/symbolicator:24.1.2
#3 DONE 0.0s

#4 [symbolicator-cleanup 1/5] FROM docker.io/getsentry/symbolicator:24.1.2
#4 DONE 0.0s

#5 [symbolicator-cleanup internal] load build context
#5 transferring context: 717B done
#5 DONE 0.0s

#6 [symbolicator-cleanup 2/5] RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy "${http_proxy}";" >> /etc/apt/apt.conf; fi
#6 CACHED

#7 [symbolicator-cleanup 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_proxy}";" >> /etc/apt/apt.conf; fi
#7 CACHED

#8 [symbolicator-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
#8 CACHED

#9 [symbolicator-cleanup 5/5] COPY entrypoint.sh /entrypoint.sh
#9 CACHED

#10 [symbolicator-cleanup] exporting to image
#10 exporting layers done
#10 writing image sha256:3aa284615c736e820a16b5591d2e27d6289b46463b93a2c6418d128a36d70ab4 done
#10 naming to docker.io/library/symbolicator-cleanup-self-hosted-local done
#10 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [attachments-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 522B done
#1 DONE 0.0s

#2 [attachments-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [attachments-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [attachments-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [attachments-consumer internal] load build context
#5 transferring context: 30.05kB done
#5 DONE 0.0s

#6 [attachments-consumer 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [attachments-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [attachments-consumer 4/4] 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
#8 CACHED

#9 [attachments-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:2e4973ecc46659cecea2b456be225b2485cea1b92e90779396dec6be73dd78c2 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [post-process-forwarder-issue-platform internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [post-process-forwarder-issue-platform internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [post-process-forwarder-issue-platform internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [post-process-forwarder-issue-platform 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [post-process-forwarder-issue-platform internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [post-process-forwarder-issue-platform 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [post-process-forwarder-issue-platform 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [post-process-forwarder-issue-platform 4/4] 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
#8 CACHED

#9 [post-process-forwarder-issue-platform] exporting to image
#9 exporting layers done
#9 writing image sha256:c965f8ce9da01cbb3d655c1b3793ecb9e241a87eac4fb1a21339ff0375a97a0e done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [transactions-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [transactions-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [transactions-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [transactions-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [transactions-consumer internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [transactions-consumer 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [transactions-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [transactions-consumer 4/4] 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
#8 CACHED

#9 [transactions-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:6e551f57a3c5bd7d75639ed677fb81a19aacc3954d3f9a26f9d850c490616a49 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [billing-metrics-consumer internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [billing-metrics-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [billing-metrics-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [billing-metrics-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [billing-metrics-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [billing-metrics-consumer internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [billing-metrics-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#6 CACHED

#7 [billing-metrics-consumer 2/4] COPY . /usr/src/sentry
#7 CACHED

#8 [billing-metrics-consumer 4/4] 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
#8 CACHED

#9 [billing-metrics-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:10df6cc334a717482fd535380a61bbde116ec9a5bdb022ca8d8953fa32cac1e4 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [subscription-consumer-transactions internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [subscription-consumer-transactions internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [subscription-consumer-transactions internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [subscription-consumer-transactions internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [subscription-consumer-transactions 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [subscription-consumer-transactions internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [subscription-consumer-transactions 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [subscription-consumer-transactions 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [subscription-consumer-transactions 4/4] 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
#8 CACHED

#9 [subscription-consumer-transactions] exporting to image
#9 exporting layers done
#9 writing image sha256:0b57dd95669cbc1a67e9ba56cf066a793036b53e8a51c7fbf6a8543363ad1879 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [events-consumer internal] load build definition from Dockerfile
#1 DONE 0.0s

#1 [events-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [events-consumer internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [events-consumer internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [events-consumer 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [events-consumer internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [events-consumer 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [events-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [events-consumer 4/4] 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
#8 CACHED

#9 [events-consumer] exporting to image
#9 exporting layers done
#9 writing image sha256:bc2a3e84e13ffeff966e9206bd41b672c6f59c737a8b477aca10b8f4d1753260 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [subscription-consumer-metrics internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#2 [subscription-consumer-metrics internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [subscription-consumer-metrics internal] load metadata for docker.io/getsentry/sentry:24.1.2
#3 DONE 0.0s

#4 [subscription-consumer-metrics 1/4] FROM docker.io/getsentry/sentry:24.1.2
#4 DONE 0.0s

#5 [subscription-consumer-metrics internal] load build context
#5 transferring context: 769B done
#5 DONE 0.0s

#6 [subscription-consumer-metrics 2/4] COPY . /usr/src/sentry
#6 CACHED

#7 [subscription-consumer-metrics 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#7 CACHED

#8 [subscription-consumer-metrics 4/4] 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
#8 CACHED

#9 [subscription-consumer-metrics] exporting to image
#9 exporting layers done
#9 writing image sha256:127e19adbd89df4d478551c628d18d23d14c59db4e7af1ffafa0106f1df49ff2 done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [vroom-cleanup internal] load build definition from Dockerfile
#1 transferring dockerfile: 528B done
#1 DONE 0.0s

#2 [vroom-cleanup internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [vroom-cleanup internal] load metadata for docker.io/getsentry/vroom:24.1.2
#3 DONE 0.0s

#4 [vroom-cleanup 1/5] FROM docker.io/getsentry/vroom:24.1.2
#4 DONE 0.0s

#5 [vroom-cleanup internal] load build context
#5 transferring context: 717B done
#5 DONE 0.0s

#6 [vroom-cleanup 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_proxy}";" >> /etc/apt/apt.conf; fi
#6 CACHED

#7 [vroom-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
#7 CACHED

#8 [vroom-cleanup 2/5] RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy "${http_proxy}";" >> /etc/apt/apt.conf; fi
#8 CACHED

#9 [vroom-cleanup 5/5] COPY entrypoint.sh /entrypoint.sh
#9 CACHED

#10 [vroom-cleanup] exporting to image
#10 exporting layers done
#10 writing image sha256:7968e14fe2344b7b165590cc19c72385028ac582957a780b4466956051af57e6 done
#10 naming to docker.io/library/vroom-cleanup-self-hosted-local done
#10 DONE 0.0s

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-redis-1  Creating
 Container sentry-self-hosted-zookeeper-1  Creating
 Container sentry-self-hosted-clickhouse-1  Creating
 Container sentry-self-hosted-clickhouse-1  Created
 Container sentry-self-hosted-redis-1  Created
 Container sentry-self-hosted-zookeeper-1  Created
 Container sentry-self-hosted-kafka-1  Creating
 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-08-09 08:50:02,287 Initializing Snuba...
2024-08-09 08:50:04,553 Snuba initialization took 2.266885167977307s
2024-08-09 08:50:04,996 Initializing Snuba...
2024-08-09 08:50:07,272 Snuba initialization took 2.2768492400064133s
2024-08-09 08:50:07,276 Attempting to connect to Kafka (attempt 0)...
2024-08-09 08:50:07,286 Connected to Kafka on attempt 0
2024-08-09 08:50:07,286 Creating Kafka topics...
 Container sentry-self-hosted-clickhouse-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-zookeeper-1  Waiting
 Container sentry-self-hosted-zookeeper-1  Healthy
2024-08-09 08:50:09,818 Initializing Snuba...
2024-08-09 08:50:12,093 Snuba initialization took 2.2761285419983324s
2024-08-09 08:50:12,551 Initializing Snuba...
2024-08-09 08:50:14,829 Snuba initialization took 2.279077432991471s
Finished running migrations

▶ Creating additional Kafka topics ...

▶ 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
Error in install/set-up-and-migrate-database.sh:5.
'timeout 90s bash -c "until $dc exec postgres pg_isready ; do sleep 5 ; done"' exited with status 124
-> ./install.sh:main:35
--> install/set-up-and-migrate-database.sh:source:5

Cleaning up...

Aftrer it i saw postgres logs:

[root@sa-vm-sentry-test install]# docker logs sentry-self-hosted-postgres-1
Setting up Change Data Capture
Replication config already present in pg_hba. Not changing anything.

PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-08-09 08:50:19.383 UTC [1] LOG:  starting PostgreSQL 14.5 (Debian 14.5-2.pgdg110+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-08-09 08:50:19.383 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-08-09 08:50:19.383 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-08-09 08:50:19.385 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-09 08:50:19.389 UTC [33] LOG:  database system was shut down at 2024-08-09 08:44:58 UTC
2024-08-09 08:50:19.392 UTC [1] LOG:  database system is ready to accept connections
2024-08-09 08:50:19.449 UTC [46] FATAL:  role "root" does not exist
2024-08-09 08:51:51.287 UTC [1] LOG:  received fast shutdown request
2024-08-09 08:51:51.288 UTC [1] LOG:  aborting any active transactions
2024-08-09 08:51:51.290 UTC [1] LOG:  background worker "logical replication launcher" (PID 39) exited with exit code 1
2024-08-09 08:51:51.290 UTC [34] LOG:  shutting down
2024-08-09 08:51:51.298 UTC [1] LOG:  database system is shut down

So, i think that postgres trying migrate or something, but i don't know where in config files i should change the role or user... Everywhere in config files user = postgres What i do wrong?

Best wishes, Alex

Event ID

No response

joshuarli commented 1 month ago

That's a pretty old version you're trying to upgrade to... also, https://github.com/getsentry/self-hosted/pull/2779 fixes this issue which came in after 24.1.2. I'd upgrade to 24.2.0. Please reopen if you encounter any new issues.