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

An error occurred when upgrading to 23.8.0 #2398

Closed
yyzhou0811 opened this issue Sep 12, 2023 · 6 comments
Closed

An error occurred when upgrading to 23.8.0 #2398

yyzhou0811 opened this issue Sep 12, 2023 · 6 comments

Comments

@yyzhou0811
Copy link

Self-Hosted Version

22.9.0

CPU Architecture

x86_64

Docker Version

20.10.5

Docker Compose Version

2.20.3

Steps to Reproduce

1.Copy the configuration file comfig.yml to the sentry directory
2.Error when executing install.sh script

Expected Result

docker compose up -d

Actual Result

[root@ip-172-31-27-205 self-hosted-23.8.0]# ./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:bullseye-slim
---> 224855429754
Step 2/4 : LABEL MAINTAINER="[email protected]"
---> Using cache
---> 7309689f72d8
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
---> 484e97f3c07e
Step 4/4 : ENTRYPOINT ["jq"]
---> Using cache
---> f41e312ddb24
Successfully built f41e312ddb24
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? y

Thank you. 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

latest: Pulling from getsentry/sentry-cli
Digest: sha256:d53299adf9faa7b4205d342a0a86d4a1b1a4924297306e088e99e11853bfd1c5
Status: Image is up to date for getsentry/sentry-cli:latest
docker.io/getsentry/sentry-cli:latest

▶ Checking for latest commit ...
skipped

▶ Checking minimum requirements ...
Found Docker version 20.10.5
Found Docker Compose version 2.20.3

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

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

▶ Building and tagging Docker images ...

#0 building with "default" instance using docker driver

#1 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 463B 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:23.8.0
#3 DONE 0.0s

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

#5 [web internal] load build context
#5 transferring context: 36.63kB 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:12ed55b6dddf194814245b7bdee2eebbf09588019ba5a974308668c755a95f0a 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: 71B 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/yandex/clickhouse-server:20.3.9.70
#3 DONE 0.0s

#4 [clickhouse 1/1] FROM docker.io/yandex/clickhouse-server:20.3.9.70
#4 CACHED

#5 [clickhouse] exporting to image
#5 exporting layers done
#5 writing image sha256:beb226d2aa7a169357ceef42a3fdc5f1c3b8466426a027e1e072f70bc15b1e98 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 [attachments-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [attachments-consumer internal] load build context
#5 transferring context: 335B 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:1c9f2dc2564bb791ce3ad516a7ed464a9565325986922f351d589192f9df4ecb 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: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [cron internal] load build context
#5 transferring context: 335B 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:d0f5ca3d6dfcdcde2e7e4a7c00feabf1486c89ecae8ec7924192a09a8befca19
#9 writing image sha256:d0f5ca3d6dfcdcde2e7e4a7c00feabf1486c89ecae8ec7924192a09a8befca19 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 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [events-consumer internal] load build context
#5 transferring context: 335B 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:24cca89ca50c46ec0ba76d91e32088c5d3977718bdfefa7b04bad9a94d1d79ce
#9 writing image sha256:24cca89ca50c46ec0ba76d91e32088c5d3977718bdfefa7b04bad9a94d1d79ce 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: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [ingest-occurrences 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:87feccf10147861f79b64ffc0b78bdd8177c0a2b85330614ccf841e0b4466d1e 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 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [ingest-profiles internal] load build context
#5 transferring context: 335B 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:b96339071bbee43e81902c93e16586db651fa2311429b3b6a002cc7024f996a3
#9 writing image sha256:b96339071bbee43e81902c93e16586db651fa2311429b3b6a002cc7024f996a3 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 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [ingest-replay-recordings internal] load build context
#5 transferring context: 335B 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:7309abc81eace0860c7076f8702bcbf72bb0f5cba04adddd21b057f98ddd23a9 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: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [web internal] load build context
#5 transferring context: 335B 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:12ed55b6dddf194814245b7bdee2eebbf09588019ba5a974308668c755a95f0a 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: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [post-process-forwarder-errors 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:9534c06fb01202a3af04853dee5383bf31e043d5cc54066c901688c847bde40a
#9 writing image sha256:9534c06fb01202a3af04853dee5383bf31e043d5cc54066c901688c847bde40a 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: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [post-process-forwarder-issue-platform 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:f3a678478b842b43f2566386b6b3e5dfb8d2a6cd93621bcf34ed4b93255e5ea4 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 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [post-process-forwarder-transactions 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:f19bfb3a06d0ee63de33a81c6117cfac75c69a96b657675c0c13bd644a0e5c52 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: 469B 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: 658B done
#5 DONE 0.0s

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

#7 [sentry-cleanup 3/5] RUN if [ -z "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_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:7e85f48386f59b7a2f8e44545e57aecd00759cce29bcc1ff4be2a3cf718f1715 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 [subscription-consumer-events internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [subscription-consumer-events 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:ea298d62dfea4885e45ace37aa230502702f3d600e2ed9e8dc0635b15ad0c6c6 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 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [subscription-consumer-transactions internal] load build context
#5 transferring context: 335B 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:67248091654fa25aa582ef0da913df864ba436152e0b7c2b0ba0f6f69e5cd7e7 done
#9 naming to docker.io/library/sentry-self-hosted-local
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 DONE 0.1s
#0 building with "default" instance using docker driver

#1 [symbolicator-cleanup internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [symbolicator-cleanup 3/5] RUN if [ -z "${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:9a37033668fc59ee3340044a25e67834e557e54e948d4552c296c59819325ba7 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 [transactions-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

#5 [transactions-consumer internal] load build context
#5 transferring context: 335B 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:4a0566a76771f99c837279915c539d3fd60197905013c10054390c515b2ce568
#9 writing image sha256:4a0566a76771f99c837279915c539d3fd60197905013c10054390c515b2ce568 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: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

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

#8 [vroom-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
#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:f5d34b46cfb1d626d53bbc40e1090c6d68427a07fed2cba0210eaf463fad9fe8 done
#10 naming to docker.io/library/vroom-cleanup-self-hosted-local done
#10 DONE 0.0s
#0 building with "default" instance using docker driver

#1 [worker internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B 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:23.8.0
#3 DONE 0.0s

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

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

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

#7 [worker 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then /usr/src/sentry/enhance-image.sh; fi
#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:6ecaaa633301d82b85feb7bdc74f8f0d70be9e665b10fd0b25b2858ce646191e done
#9 naming to docker.io/library/sentry-self-hosted-local done
#9 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-zookeeper-1 Creating
Container sentry-self-hosted-clickhouse-1 Creating
Container sentry-self-hosted-redis-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-zookeeper-1 Started
Container sentry-self-hosted-zookeeper-1 Waiting
Container sentry-self-hosted-clickhouse-1 Started
Container sentry-self-hosted-redis-1 Started
Container sentry-self-hosted-zookeeper-1 Healthy
Container sentry-self-hosted-kafka-1 Starting
Container sentry-self-hosted-kafka-1 Started
2023-09-12 07:23:59,134 Initializing Snuba...
2023-09-12 07:24:02,770 Snuba initialization took 3.6371277063153684s
2023-09-12 07:24:03,241 Initializing Snuba...
2023-09-12 07:24:06,277 Snuba initialization took 3.0372454808093607s
2023-09-12 07:24:06,278 Attempting to connect to Kafka (attempt 0)...
2023-09-12 07:24:06,331 Connected to Kafka on attempt 0
2023-09-12 07:24:06,332 Creating Kafka topics...
Container sentry-self-hosted-zookeeper-1 Running
Container sentry-self-hosted-clickhouse-1 Running
Container sentry-self-hosted-redis-1 Running
Container sentry-self-hosted-kafka-1 Running
Container sentry-self-hosted-zookeeper-1 Waiting
Container sentry-self-hosted-zookeeper-1 Healthy
2023-09-12 07:24:09,110 Initializing Snuba...
2023-09-12 07:24:12,166 Snuba initialization took 3.058058802038431s
2023-09-12 07:24:12,647 Initializing Snuba...
2023-09-12 07:24:15,812 Snuba initialization took 3.166538287885487s
Finished running migrations

▶ Creating additional Kafka topics ...

▶ Ensuring proper PostgreSQL version ...
sentry-postgres-new
popen failure: Cannot allocate memory
initdb: error: The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/lib/postgresql/14/bin/initdb".
Check your installation.
Error in install/upgrade-postgres.sh:6.
'docker run --rm -v sentry-postgres:/var/lib/postgresql/9.6/data -v sentry-postgres-new:/var/lib/postgresql/14/data tianon/postgres-upgrade:9.6-to-14' exited with status 1
-> ./install.sh:main:33
--> install/upgrade-postgres.sh:source:6

Looks like you've already sent this error to us, we're on it :)

Event ID

No response

@azaslavsky
Copy link
Contributor

popen failure: Cannot allocate memory

'docker run --rm -v sentry-postgres:/var/lib/postgresql/9.6/data -v sentry-postgres-new:/var/lib/postgresql/14/data tianon/postgres-upgrade:9.6-to-14' exited with status 1

I suspect you are running out of memory, which is why the postgres update is failing. This is often due to system permissions - perhaps running in sudo, or getting an admin to do it, may help?

@yyzhou0811
Copy link
Author

popen failure: Cannot allocate memory

'docker run --rm -v sentry-postgres:/var/lib/postgresql/9.6/data -v sentry-postgres-new:/var/lib/postgresql/14/data tianon/postgres-upgrade:9.6-to-14' exited with status 1

I suspect you are running out of memory, which is why the postgres update is failing. This is often due to system permissions - perhaps running in sudo, or getting an admin to do it, may help?

I executed it with root privileges. Currently, the system memory is quite sufficient.
image

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 13, 2023
@sesturm
Copy link

sesturm commented Sep 13, 2023

What was your previous version? If it was older than 23.6.2, then you must update to that version first.
See Chapter Hard Stops: https://develop.sentry.dev/self-hosted/releases/

@yyzhou0811
Copy link
Author

What was your previous version? If it was older than 23.6.2, then you must update to that version first. See Chapter Hard Stops: https://develop.sentry.dev/self-hosted/releases/

My current version is 22.9.0. I tried upgrading to 23.6.2 first, but I still get an error.
image

@azaslavsky
Copy link
Contributor

Seems like you may need to upgrade docker to get up to 23.6.2: timescale/timescaledb-docker-ha#260

@yyzhou0811
Copy link
Author

似乎您可能需要升级 docker 才能达到 23.6.2:timescale/timescaledb-docker-ha#260

Thank you very much. After upgrading the docker version, the sentry upgrade was successful.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 15, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Archived in project
Development

No branches or pull requests

3 participants