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

Unable to upgrade from 24.4.2 to 24.5.0 #3077

Closed
kohenkatz opened this issue May 26, 2024 · 2 comments
Closed

Unable to upgrade from 24.4.2 to 24.5.0 #3077

kohenkatz opened this issue May 26, 2024 · 2 comments

Comments

@kohenkatz
Copy link
Contributor

Self-Hosted Version

24.5.0

CPU Architecture

x86_64

Docker Version

26.1.3

Docker Compose Version

2.27.0

Steps to Reproduce

  1. Start with a working 24.4.2
  2. git fetch
  3. git checkout 24.5.0
  4. Update image versions in .env.custom
  5. ./install.sh

Expected Result

Successful upgrade to 24.5.0

Actual Result

Saved log output is below, but the primary error appears to be this:

Error in install/bootstrap-snuba.sh:3.
'$dcr snuba-api bootstrap --no-migrate --force' exited with status 1
-> ./install.sh:main:36
--> install/bootstrap-snuba.sh:source:3

Full log:

▶ Parsing command line ...

▶ Detecting Docker platform
Detected Docker platform is linux/amd64

▶ Initializing Docker Compose ...

▶ Setting up error handling ...
#0 building with "default" instance using docker driver

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

#2 [internal] load metadata for docker.io/library/debian:bookworm-slim
#2 DONE 0.3s

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

#4 [1/2] FROM docker.io/library/debian:bookworm-slim@sha256:804194b909ef23fb995d9412c9378fb3505fe2427b70f3cc425339e48a828fca
#4 DONE 0.0s

#5 [2/2] 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/*
#5 CACHED

#6 exporting to image
#6 exporting layers done
#6 writing image sha256:b28234a4f3d9e7046f9e3be8a368f90df0fe018953a7f86462ceefc13b0e7101 done
#6 naming to docker.io/library/sentry-self-hosted-jq-local done
#6 DONE 0.0s
latest: Pulling from getsentry/sentry-cli
Digest: sha256:6cfda146ed0dc4572335073ac9c232875a5e5ea0d3f3407508ad94f155d484ae
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 26.1.3
Found Docker Compose version 2.27.0

▶ Upgrading Clickhouse ...
 Network sentry-self-hosted_default  Creating
 Network sentry-self-hosted_default  Created
 Container sentry-self-hosted-clickhouse-1  Creating
 Container sentry-self-hosted-clickhouse-1  Created
 Container sentry-self-hosted-clickhouse-1  Starting
 Container sentry-self-hosted-clickhouse-1  Started
Waiting for clickhouse server, 30 remaining attempts...
Waiting for clickhouse server, 29 remaining attempts...
Waiting for clickhouse server, 28 remaining attempts...
Waiting for clickhouse server, 27 remaining attempts...
sentry-self-hosted-clickhouse-1   clickhouse-self-hosted-local   "/entrypoint.sh"   clickhouse   13 seconds ago   Up 12 seconds (healthy)   8123/tcp, 9000/tcp, 9009/tcp
Detected clickhouse version 23.8.11.29.altinitystable. Skipping upgrades!

▶ Turning things off ...
 Container sentry-self-hosted-clickhouse-1  Stopping
 Container sentry-self-hosted-clickhouse-1  Stopped
 Container sentry-self-hosted-clickhouse-1  Removing
 Container sentry-self-hosted-clickhouse-1  Removed
 Image clickhouse-self-hosted-local:latest  Removing
 Image sentry-self-hosted-local:latest  Removing
 Image symbolicator-cleanup-self-hosted-local:latest  Removing
 Network sentry-self-hosted_default  Removing
 Image symbolicator-cleanup-self-hosted-local:latest  Removed
 Image sentry-self-hosted-local:latest  Removed
 Image clickhouse-self-hosted-local:latest  Removed
 Network sentry-self-hosted_default  Removed

▶ Ensuring Kafka and Zookeeper volumes have correct permissions ...
chmod: cannot access '/var/lib/docker/volumes/sentry-zookeeper/_data': No such file or directory
chmod: cannot access '/var/lib/docker/volumes/sentry-kafka/_data': No such file or directory
chmod: cannot access '/var/lib/docker/volumes/sentry-self-hosted_sentry-zookeeper-log/_data': No such file or directory
WARNING: Error when setting appropriate permissions for zookeeper, kafka, and zookeeper log docker volumes. This may corrupt your self-hosted install. See https://github.com/confluentinc/kafka-images/issues/127 for context on why this was added.

▶ 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.5.0: Pulling from getsentry/sentry
Digest: sha256:e5376187ffe53d517f29bb9e2f810715c64bd2fb4ce0f57d2b5c095481aea131
Status: Image is up to date for getsentry/sentry:24.5.0
docker.io/getsentry/sentry:24.5.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 metadata for docker.io/getsentry/sentry:24.5.0
#2 DONE 0.0s

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

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

#5 [web internal] load build context
#5 transferring context: 333B 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:e4173f226c9d8da753ebc3b2703f3308c6b3f8fdc37d258fcdb10d063fdc8000 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 transferring dockerfile: 71B done
#1 DONE 0.0s

#2 [clickhouse internal] load metadata for docker.io/altinity/clickhouse-server:23.8.11.29.altinitystable
#2 DONE 0.1s

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

#4 [clickhouse 1/1] FROM docker.io/altinity/clickhouse-server:23.8.11.29.altinitystable@sha256:a91987eab83bdc8fa5ee9725694b2bcf57779e68fa3934291cd20020484dd391
#4 CACHED

#5 [clickhouse] exporting to image
#5 exporting layers done
#5 writing image sha256:9f129240c0f1fa6fe0913e9c22ad6ce47edeaaf147c343ac28d13b2755d76455 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [subscription-consumer-generic-metrics internal] load build context
#5 transferring context: 333B 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:bde03c5da8ae37e917f54f6473fb69a9ae3263d68bb0f476db80617734e0b34f 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 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [ingest-monitors 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#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:64c24a30cb39535aec97fe29d19cb50fdbd1c5e6b3b91aa492d9e16ee2bdff9b 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [ingest-replay-recordings 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#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:8ac488c0cd476f3c623fa5362cfbdef692348b391710e8448c5c94b25fdf2a83 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [post-process-forwarder-errors internal] load build context
#5 transferring context: 333B 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:d2fdec71da5cf77fc1c84b149c7b589955c0dc23c1461e672b59c20bfca3b112 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [post-process-forwarder-transactions internal] load build context
#5 transferring context: 333B 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:074599b84beaa9f4b7e1f4701eab750fa0f13d0eef63389a2b3ad7a8da8d4fcd 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 metadata for docker.io/library/sentry-self-hosted-local:latest
#2 DONE 0.0s

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

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

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

#6 [sentry-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
#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 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_proxy}";" >> /etc/apt/apt.conf; fi
#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:ed22f66be2488772abb9241315c87c3ce3ccee7ac787a52dcd2ed27462c5dd16 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 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

#5 [web internal] load build context
#5 transferring context: 32.56kB 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:e4173f226c9d8da753ebc3b2703f3308c6b3f8fdc37d258fcdb10d063fdc8000 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [events-consumer internal] load build context
#5 transferring context: 333B 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:b74f96baf61072bff5dcd383fb4387f12ca1c489cb29a699776fd6409a1fc29e 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [metrics-consumer 2/4] COPY . /usr/src/sentry
#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:8f33521307fc7b3ca78ae217d468a5fc61addc71eff5854dd06eaa1d4d3c98a3 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 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

#5 [subscription-consumer-events internal] load build context
#5 transferring context: 333B 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:db7bdcf09527ff1fbe0645a44336fff09bfc4dcec736b43bd3e94c9245bf211e 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: 469B done
#1 DONE 0.0s

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

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

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

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

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

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

#8 [vroom-cleanup 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_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:89d2d9e046091d002b4c010d59aa58d62c1ffda629d87db9a58f01e059a60d81 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 [post-process-forwarder-issue-platform internal] load build definition from Dockerfile
#1 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

#5 [post-process-forwarder-issue-platform internal] load build context
#5 transferring context: 32.56kB 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:2c45a976d48637c014fa4ec3b4564914dac6a118f03fe5f9bb6471068d99b4cf 0.0s 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [ingest-occurrences internal] load build context
#5 transferring context: 333B 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:4f702979e55ea65d68f3a36a5836f394e61114fa90047e6f1ba78b6d7123b8b6 0.0s 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [subscription-consumer-metrics internal] load build context
#5 transferring context: 333B 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:5795a874013dc8b9565f069facceea648ccdf405802de2847017e9724579b67e 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [transactions-consumer 2/4] COPY . /usr/src/sentry
#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:46b094388767c48fa9816716904418e8cca076a253d313eac1d2b6bec2f6b157 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 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

#5 [billing-metrics-consumer internal] load build context
#5 transferring context: 333B 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:4d766bc06e5be5f18140c968ba3e8d9a92de7ed7d1613829468e960f85f29703 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [subscription-consumer-transactions 2/4] COPY . /usr/src/sentry
#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:c2d0cb070c1d7849e5aabf2a301606a21a3790048a51c61ce322bf2740f1f11f 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: 469B done
#1 DONE 0.0s

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

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

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

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

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

#7 [symbolicator-cleanup 2/5] RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy "${http_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:34c216d5ef5094ffd549d9fde0e1b593add04be433bc95fd5792baa475837ef4 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [attachments-consumer 2/4] COPY . /usr/src/sentry
#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:50cce8e9e1ed76afd35fce4339f08ed4b2a8246bd8dfe917a5f37e634b642d57 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: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [ingest-profiles 2/4] COPY . /usr/src/sentry
#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:0ea8d301a44a678fbaafb1b67d15b18325bd275d2e84d4f38156646bca9da365 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: 463B done
#1 DONE 0.0s

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

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

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

#5 [cron internal] load build context
#5 transferring context: 333B 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:6dceff1baf65ba026abf52f52c3a642c8295a7bb74b88533fd3cb66f848ef575 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 [generic-metrics-consumer internal] load build definition from Dockerfile
#1 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

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

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

#7 [generic-metrics-consumer 3/4] RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
#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:5338f9030914669d082ce811af9cf86e3f322bdd64b64be643d0d1186fe8b321 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 transferring dockerfile: 463B done
#1 DONE 0.0s

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

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

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

#5 [worker internal] load build context
#5 transferring context: 333B 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:fbb9f0f5b6ed7dcd46bdfaf0d47ec93688582267af49f2f1b268126f89ad83ef 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-redis-1  Starting
 Container sentry-self-hosted-clickhouse-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  Error
dependency failed to start: container sentry-self-hosted-zookeeper-1 is unhealthy
Error in install/bootstrap-snuba.sh:3.
'$dcr snuba-api bootstrap --no-migrate --force' exited with status 1
-> ./install.sh:main:36
--> install/bootstrap-snuba.sh:source:3

Envelope from file sentry-envelope-0cdb4e7cfc2b94b3336f3afc7e7fd042 dispatched
Cleaning up...

Event ID

No response

@kohenkatz
Copy link
Contributor Author

The root issue appears to actually be here:

▶ Ensuring Kafka and Zookeeper volumes have correct permissions ...
chmod: cannot access '/var/lib/docker/volumes/sentry-zookeeper/_data': No such file or directory
chmod: cannot access '/var/lib/docker/volumes/sentry-kafka/_data': No such file or directory
chmod: cannot access '/var/lib/docker/volumes/sentry-self-hosted_sentry-zookeeper-log/_data': No such file or directory
WARNING: Error when setting appropriate permissions for zookeeper, kafka, and zookeeper log docker volumes. This may corrupt your self-hosted install. See https://github.com/confluentinc/kafka-images/issues/127 for context on why this was added.

On this machine, the docker storage directory is on a different storage device, so it is at /data/docker instead of /var/lib/docker.

I changed the path in install/update-docker-volume-permissions.sh to my path, and now it works.

I would think it should be possible for this permissions check to get the actual storage path instead of assuming the default.

@kohenkatz
Copy link
Contributor Author

Looks like this was fixed in #3064.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Archived in project
Development

No branches or pull requests

1 participant