【Sentry运维】版本升级

44 篇文章 0 订阅
9 篇文章 1 订阅

今天发现sentry版本有点低,想对其进行版本升级,由于之前有升级的经历,所以就信心满满的开始操作了

>>> git clone https://github.com/getsentry/self-hosted.git
>>> git checkout 21.12.0
>>> ./install.sh
>>> docker-compose up -d

切记不要对原来的进行’docker-compose --rmi all’操作,否则在./install.sh时会报错

其他的注意事项可以参考:《基于Docker部署的Sentry数据备份与导入以及问题修复

如果出现如下图所示的错误提示则只需restart一下就好了
在这里插入图片描述

>>> docker-compose restart

参考:https://develop.sentry.dev/self-hosted/releases/


2022-07-14升级记录

从21.12.0升级至22.6.0

>>> git pull
remote: Enumerating objects: 280, done.
remote: Counting objects: 100% (280/280), done.
remote: Compressing objects: 100% (129/129), done.
remote: Total 280 (delta 161), reused 256 (delta 150), pack-reused 0
Receiving objects: 100% (280/280), 65.11 KiB | 0 bytes/s, done.
Resolving deltas: 100% (161/161), completed with 27 local objects.
From https://github.com/getsentry/self-hosted
   433493b..eb4d709  master     -> origin/master
 * [new branch]      rgibert/add-create-user-staff-arg-fix -> origin/rgibert/add-create-user-staff-arg-fix
From https://github.com/getsentry/self-hosted
 * [new tag]         22.1.0     -> 22.1.0
 * [new tag]         22.2.0     -> 22.2.0
 * [new tag]         22.3.0     -> 22.3.0
 * [new tag]         22.4.0     -> 22.4.0
 * [new tag]         22.5.0     -> 22.5.0
 * [new tag]         22.6.0     -> 22.6.0
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>
>>> git checkout 22.6.0
Previous HEAD position was 63bb01c... release: 21.12.0
HEAD is now at eaed29a... release: 22.6.0
>>> vim cron/Dockerfile
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
USER 0
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf \
    && sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list \
    && apt-get update && apt-get install -y --no-install-recommends cron \
    && rm -r /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
>>> ./install
▶ Parsing command line ...

▶ Initializing Docker Compose ...

▶ Setting up error handling ...

▶ Checking for latest commit ...

▶ Checking minimum requirements ...
Found Docker version 20.10.17
Found Docker Compose version 1.29.0

▶ Turning things off ...
Removing network sentry-self-hosted_default
Network sentry-self-hosted_default not found.
Removing network sentry_onpremise_default
Network sentry_onpremise_default not found.

▶ Creating volumes for persistent storage ...
Created sentry-clickhouse.
Created sentry-data.
Created sentry-kafka.
Created sentry-postgres.
Created sentry-redis.
Created sentry-symbolicator.
Created sentry-zookeeper.

▶ Ensuring files from examples ...
../sentry/sentry.conf.py already exists, skipped creation.
../sentry/config.yml already exists, skipped creation.
../symbolicator/config.yml already exists, skipped creation.

▶ Ensuring Relay credentials ...
../relay/config.yml already exists, skipped creation.
../relay/credentials.json already exists, skipped creation.

▶ Generating secret key ...

▶ Replacing TSDB ...

▶ Fetching and updating Docker images ...
Some service image(s) must be built from source by running:
    docker-compose build post-process-forwarder ingest-consumer web sentry-cleanup symbolicator-cleanup subscription-consumer-transactions snuba-transactions-cleanup snuba-cleanup worker cron subscription-consumer-events
22.6.0: Pulling from getsentry/sentry
Digest: sha256:804c986af20b59ea0f1c0824c9e80de5e5c1fbaabbb29ebe2289a376115dd100
Status: Image is up to date for getsentry/sentry:22.6.0
docker.io/getsentry/sentry:22.6.0

▶ Building and tagging Docker images ...

Building web
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
smtp uses an image, skipping
memcached uses an image, skipping
redis uses an image, skipping
postgres uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
clickhouse uses an image, skipping
geoipupdate uses an image, skipping
snuba-api uses an image, skipping
snuba-consumer uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
snuba-transactions-consumer uses an image, skipping
snuba-replacer uses an image, skipping
snuba-subscription-consumer-events uses an image, skipping
snuba-subscription-consumer-transactions uses an image, skipping
symbolicator uses an image, skipping
relay uses an image, skipping
nginx uses an image, skipping
Building snuba-cleanup
Sending build context to Docker daemon  3.584kB

Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
 ---> 5321b198370b
Step 3/6 : USER 0
 ---> Using cache
 ---> 5d52edd44846
Step 4/6 : RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf     && sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list     && apt-get update && apt-get install -y --no-install-recommends cron     && rm -r /var/lib/apt/lists/*
 ---> Running in a94fb6607478
Get:1 http://mirrors.aliyun.com/debian bullseye InRelease [116 kB]
Get:2 http://mirrors.aliyun.com/debian bullseye-updates InRelease [39.4 kB]
Get:3 http://mirrors.aliyun.com/debian bullseye/main amd64 Packages [8182 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [166 kB]
Get:6 http://mirrors.aliyun.com/debian bullseye-updates/main amd64 Packages [2592 B]
Fetched 8550 kB in 49s (175 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  sensible-utils
Suggested packages:
  anacron logrotate checksecurity
Recommended packages:
  default-mta | mail-transport-agent
The following NEW packages will be installed:
  cron sensible-utils
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 114 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB]
Get:2 http://mirrors.aliyun.com/debian bullseye/main amd64 cron amd64 3.0pl1-137 [99.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 114 kB in 1s (146 kB/s)
Selecting previously unselected package sensible-utils.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 7032 files and directories currently installed.)
Preparing to unpack .../sensible-utils_0.0.14_all.deb ...
Unpacking sensible-utils (0.0.14) ...
Selecting previously unselected package cron.
Preparing to unpack .../cron_3.0pl1-137_amd64.deb ...
Unpacking cron (3.0pl1-137) ...
Setting up sensible-utils (0.0.14) ...
Setting up cron (3.0pl1-137) ...
Adding group `crontab' (GID 101) ...
Done.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Removing intermediate container a94fb6607478
 ---> 85b0954fc320
Step 5/6 : COPY entrypoint.sh /entrypoint.sh
 ---> efb28839e1b0
Step 6/6 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Running in c484ac6556db
Removing intermediate container c484ac6556db
 ---> 07e58f29b6ae
Successfully built 07e58f29b6ae
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building snuba-transactions-cleanup
Sending build context to Docker daemon  3.584kB

Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
 ---> 5321b198370b
Step 3/6 : USER 0
 ---> Using cache
 ---> 5d52edd44846
Step 4/6 : RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf     && sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list     && apt-get update && apt-get install -y --no-install-recommends cron     && rm -r /var/lib/apt/lists/*
 ---> Using cache
 ---> 85b0954fc320
Step 5/6 : COPY entrypoint.sh /entrypoint.sh
 ---> Using cache
 ---> efb28839e1b0
Step 6/6 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Using cache
 ---> 07e58f29b6ae
Successfully built 07e58f29b6ae
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building symbolicator-cleanup
Sending build context to Docker daemon  3.584kB

Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
 ---> 543d5fd4f165
Step 3/6 : USER 0
 ---> Running in d6a0cd7a65e2
Removing intermediate container d6a0cd7a65e2
 ---> c346cb456450
Step 4/6 : RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf     && sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list     && apt-get update && apt-get install -y --no-install-recommends cron     && rm -r /var/lib/apt/lists/*
 ---> Running in 99829ad9f0de
Ign:1 http://mirrors.aliyun.com/debian stretch InRelease
Get:2 http://mirrors.aliyun.com/debian stretch-updates InRelease [93.6 kB]
Get:3 http://mirrors.aliyun.com/debian stretch Release [118 kB]
Get:4 http://mirrors.aliyun.com/debian stretch Release.gpg [3177 B]
Get:5 http://mirrors.aliyun.com/debian stretch/main amd64 Packages [7080 kB]
Get:6 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB]
Fetched 8129 kB in 27s (295 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  anacron logrotate checksecurity
Recommended packages:
  exim4 | postfix | mail-transport-agent
The following NEW packages will be installed:
  cron
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 96.6 kB of archives.
After this operation, 257 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 cron amd64 3.0pl1-128+deb9u2 [96.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 96.6 kB in 2min 1s (794 B/s)
Selecting previously unselected package cron.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6906 files and directories currently installed.)
Preparing to unpack .../cron_3.0pl1-128+deb9u2_amd64.deb ...
Unpacking cron (3.0pl1-128+deb9u2) ...
Setting up cron (3.0pl1-128+deb9u2) ...
Adding group `crontab' (GID 101) ...
Done.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Removing intermediate container 99829ad9f0de
 ---> 45d4dbbbc5a5
Step 5/6 : COPY entrypoint.sh /entrypoint.sh
 ---> eeb24bebde84
Step 6/6 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Running in 701865a02656
Removing intermediate container 701865a02656
 ---> 6206fa418f5c
Successfully built 6206fa418f5c
Successfully tagged symbolicator-cleanup-self-hosted-local:latest
Building web
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building cron
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building worker
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building ingest-consumer
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building post-process-forwarder
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building subscription-consumer-events
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building subscription-consumer-transactions
Sending build context to Docker daemon  32.77kB

Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : FROM ${SENTRY_IMAGE}
 ---> c5386634dcb8
Step 3/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> c2ea21f9372c
Step 4/5 : RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then     /usr/src/sentry/enhance-image.sh; fi
 ---> Using cache
 ---> 36d89d302246
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then     echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image";     pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> f4de7e254d51
Successfully built f4de7e254d51
Successfully tagged sentry-self-hosted-local:latest
Building sentry-cleanup
Sending build context to Docker daemon  3.584kB

Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
 ---> f4de7e254d51
Step 3/6 : USER 0
 ---> Running in db3259841495
Removing intermediate container db3259841495
 ---> 9c31e2b3b6df
Step 4/6 : RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf     && sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list     && apt-get update && apt-get install -y --no-install-recommends cron     && rm -r /var/lib/apt/lists/*
 ---> Running in e0a42159c56f
Get:1 http://mirrors.aliyun.com/debian bullseye InRelease [116 kB]
Get:2 http://mirrors.aliyun.com/debian bullseye-updates InRelease [39.4 kB]
Get:3 http://mirrors.aliyun.com/debian bullseye/main amd64 Packages [8182 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [166 kB]
Get:6 http://mirrors.aliyun.com/debian bullseye-updates/main amd64 Packages [2592 B]
Fetched 8550 kB in 37s (233 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  sensible-utils
Suggested packages:
  anacron logrotate checksecurity
Recommended packages:
  default-mta | mail-transport-agent
The following NEW packages will be installed:
  cron sensible-utils
0 upgraded, 2 newly installed, 0 to remove and 23 not upgraded.
Need to get 114 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB]
Get:2 http://mirrors.aliyun.com/debian bullseye/main amd64 cron amd64 3.0pl1-137 [99.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 114 kB in 1s (166 kB/s)
Selecting previously unselected package sensible-utils.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12313 files and directories currently installed.)
Preparing to unpack .../sensible-utils_0.0.14_all.deb ...
Unpacking sensible-utils (0.0.14) ...
Selecting previously unselected package cron.
Preparing to unpack .../cron_3.0pl1-137_amd64.deb ...
Unpacking cron (3.0pl1-137) ...
Setting up sensible-utils (0.0.14) ...
Setting up cron (3.0pl1-137) ...
Adding group `crontab' (GID 101) ...
Done.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Removing intermediate container e0a42159c56f
 ---> 0cbbf9ea9c9f
Step 5/6 : COPY entrypoint.sh /entrypoint.sh
 ---> f1786dab9182
Step 6/6 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Running in ed9ed7ed4d91
Removing intermediate container ed9ed7ed4d91
 ---> 11750d158f2f
Successfully built 11750d158f2f
Successfully tagged sentry-cleanup-self-hosted-local:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Docker images built.

▶ Setting up Zookeeper ...
Creating network "sentry-self-hosted_default" with the default driver
Creating volume "sentry-self-hosted_sentry-nginx-cache" with default driver
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done

▶ Downloading and installing wal2json ...
Unable to find image 'curlimages/curl:7.77.0' locally
7.77.0: Pulling from curlimages/curl
339de151aab4: Pulling fs layer
9576f9a419e9: Pulling fs layer
5b67e0e9bce9: Pulling fs layer
7c0640a6c519: Pulling fs layer
1d8f7d50664a: Pulling fs layer
3ce74da83aeb: Pulling fs layer
7094fabf5e16: Pulling fs layer
2f4d0b649c1f: Pulling fs layer
110e7f874674: Pulling fs layer
7c0640a6c519: Waiting
1d8f7d50664a: Waiting
7094fabf5e16: Waiting
2f4d0b649c1f: Waiting
110e7f874674: Waiting
3ce74da83aeb: Waiting
5b67e0e9bce9: Verifying Checksum
5b67e0e9bce9: Download complete
339de151aab4: Verifying Checksum
339de151aab4: Download complete
9576f9a419e9: Verifying Checksum
9576f9a419e9: Download complete
339de151aab4: Pull complete
9576f9a419e9: Pull complete
5b67e0e9bce9: Pull complete
7c0640a6c519: Verifying Checksum
7c0640a6c519: Pull complete
3ce74da83aeb: Download complete
1d8f7d50664a: Download complete
1d8f7d50664a: Pull complete
3ce74da83aeb: Pull complete
7094fabf5e16: Download complete
7094fabf5e16: Pull complete
2f4d0b649c1f: Download complete
110e7f874674: Verifying Checksum
110e7f874674: Download complete
2f4d0b649c1f: Pull complete
110e7f874674: Pull complete
Digest: sha256:6e0a786e3e5181df00eaf3a0a1749c18a6bb20b01c9bd192ea72176ce8a1c94b
Status: Downloaded newer image for curlimages/curl:7.77.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5417  100  5417    0     0   5642      0 --:--:-- --:--:-- --:--:--  5642

▶ Bootstrapping and migrating Snuba ...
Creating sentry-self-hosted_zookeeper_1 ...
Creating sentry-self-hosted_clickhouse_1 ...
Creating sentry-self-hosted_redis_1      ...
Creating sentry-self-hosted_zookeeper_1  ... done
Creating sentry-self-hosted_clickhouse_1 ... done
Creating sentry-self-hosted_redis_1      ... done
Creating sentry-self-hosted_kafka_1      ...
Creating sentry-self-hosted_kafka_1      ... done
Creating sentry-self-hosted_snuba-api_run ...
Creating sentry-self-hosted_snuba-api_run ... done
2022-07-14 06:46:06,046 Attempting to connect to Kafka (attempt 0)...
2022-07-14 06:46:06,076 Connected to Kafka on attempt 0
2022-07-14 06:46:06,077 Creating Kafka topics...
2022-07-14 06:46:06,217 Topic processed-profiles created
2022-07-14 06:46:06,217 Topic snuba-dead-letter-inserts created
2022-07-14 06:46:06,217 Topic snuba-dead-letter-metrics created
2022-07-14 06:46:06,217 Topic snuba-dead-letter-sessions created
Creating sentry-self-hosted_snuba-api_run ...
Creating sentry-self-hosted_snuba-api_run ... done
2022-07-14 06:46:11,869 Running migration: 0016_drop_legacy_events
2022-07-14 06:46:11,880 Finished: 0016_drop_legacy_events
2022-07-14 06:46:11,886 Running migration: 0014_transactions_remove_flattened_columns
2022-07-14 06:46:11,942 Finished: 0014_transactions_remove_flattened_columns
2022-07-14 06:46:11,951 Running migration: 0016_metrics_sets_consolidated_granularity
2022-07-14 06:46:11,964 Finished: 0016_metrics_sets_consolidated_granularity
2022-07-14 06:46:11,969 Running migration: 0017_metrics_counters_consolidated_granularity
2022-07-14 06:46:11,977 Finished: 0017_metrics_counters_consolidated_granularity
2022-07-14 06:46:11,982 Running migration: 0018_metrics_distributions_consolidated_granularity
2022-07-14 06:46:11,990 Finished: 0018_metrics_distributions_consolidated_granularity
2022-07-14 06:46:11,996 Running migration: 0019_aggregate_tables_add_ttl
2022-07-14 06:46:12,013 Finished: 0019_aggregate_tables_add_ttl
2022-07-14 06:46:12,019 Running migration: 0020_polymorphic_buckets_table
2022-07-14 06:46:12,028 Finished: 0020_polymorphic_buckets_table
2022-07-14 06:46:12,033 Running migration: 0021_polymorphic_bucket_materialized_views
2022-07-14 06:46:12,048 Finished: 0021_polymorphic_bucket_materialized_views
2022-07-14 06:46:12,054 Running migration: 0022_repartition_polymorphic_table
2022-07-14 06:46:12,063 Finished: 0022_repartition_polymorphic_table
2022-07-14 06:46:12,069 Running migration: 0023_polymorphic_repartitioned_bucket_matview
2022-07-14 06:46:12,083 Finished: 0023_polymorphic_repartitioned_bucket_matview
2022-07-14 06:46:12,089 Running migration: 0024_metrics_distributions_add_histogram
2022-07-14 06:46:12,107 Finished: 0024_metrics_distributions_add_histogram
2022-07-14 06:46:12,113 Running migration: 0025_metrics_counters_aggregate_v2
2022-07-14 06:46:12,137 Finished: 0025_metrics_counters_aggregate_v2
2022-07-14 06:46:12,143 Running migration: 0026_metrics_counters_v2_writing_matview
2022-07-14 06:46:12,149 Finished: 0026_metrics_counters_v2_writing_matview
2022-07-14 06:46:12,155 Running migration: 0027_fix_migration_0026
2022-07-14 06:46:12,163 Finished: 0027_fix_migration_0026
2022-07-14 06:46:12,169 Running migration: 0028_metrics_sets_aggregate_v2
2022-07-14 06:46:12,191 Finished: 0028_metrics_sets_aggregate_v2
2022-07-14 06:46:12,196 Running migration: 0029_metrics_distributions_aggregate_v2
2022-07-14 06:46:12,220 Finished: 0029_metrics_distributions_aggregate_v2
2022-07-14 06:46:12,225 Running migration: 0030_metrics_distributions_v2_writing_mv
2022-07-14 06:46:12,233 Finished: 0030_metrics_distributions_v2_writing_mv
2022-07-14 06:46:12,238 Running migration: 0031_metrics_sets_v2_writing_mv
2022-07-14 06:46:12,247 Finished: 0031_metrics_sets_v2_writing_mv
2022-07-14 06:46:12,252 Running migration: 0032_redo_0030_and_0031_without_timestamps
2022-07-14 06:46:12,265 Finished: 0032_redo_0030_and_0031_without_timestamps
2022-07-14 06:46:12,271 Running migration: 0033_metrics_cleanup_old_views
2022-07-14 06:46:12,300 Finished: 0033_metrics_cleanup_old_views
2022-07-14 06:46:12,305 Running migration: 0034_metrics_cleanup_old_tables
2022-07-14 06:46:12,318 Finished: 0034_metrics_cleanup_old_tables
2022-07-14 06:46:12,324 Running migration: 0001_sets_aggregate_table
2022-07-14 06:46:12,355 Finished: 0001_sets_aggregate_table
2022-07-14 06:46:12,360 Running migration: 0002_sets_raw_table
2022-07-14 06:46:12,370 Finished: 0002_sets_raw_table
2022-07-14 06:46:12,375 Running migration: 0003_sets_mv
2022-07-14 06:46:12,384 Finished: 0003_sets_mv
Finished running migrations

▶ Creating additional Kafka topics ...

▶ Ensuring proper PostgreSQL version ...

▶ Setting up / migrating database ...
Creating sentry-self-hosted_memcached_1 ...
Creating sentry-self-hosted_postgres_1  ...
Creating sentry-self-hosted_symbolicator_1 ...
Creating sentry-self-hosted_smtp_1         ...
Creating sentry-self-hosted_snuba-api_1    ...
Creating sentry-self-hosted_snuba-replacer_1 ...
Creating sentry-self-hosted_snuba-consumer_1 ...
Creating sentry-self-hosted_snuba-transactions-consumer_1 ...
Creating sentry-self-hosted_snuba-outcomes-consumer_1     ...
Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 ...
Creating sentry-self-hosted_snuba-subscription-consumer-events_1       ...
Creating sentry-self-hosted_snuba-sessions-consumer_1                  ...
Creating sentry-self-hosted_postgres_1                                 ... done
Creating sentry-self-hosted_memcached_1                                ... done
Creating sentry-self-hosted_symbolicator_1                             ... done
Creating sentry-self-hosted_snuba-replacer_1                           ... done
Creating sentry-self-hosted_snuba-api_1                                ... done
Creating sentry-self-hosted_smtp_1                                     ... done
Creating sentry-self-hosted_snuba-transactions-consumer_1              ... done
Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... done
Creating sentry-self-hosted_snuba-consumer_1                           ... done
Creating sentry-self-hosted_snuba-outcomes-consumer_1                  ... done
Creating sentry-self-hosted_snuba-sessions-consumer_1                  ... done
Creating sentry-self-hosted_snuba-subscription-consumer-events_1       ... done
Creating sentry-self-hosted_web_run                                    ...
Creating sentry-self-hosted_web_run                                    ... done
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://github.com/getsentry/self-hosted#enhance-sentry-image
/usr/local/lib/python3.8/site-packages/memcache.py:1303: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if key is '':
/usr/local/lib/python3.8/site-packages/memcache.py:1304: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if key_extra_len is 0:
06:46:55 [INFO] sentry.plugins.github: apps-not-configured
Running migrations for default
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, nodestore, sentry, sessions, sites, social_auth
Running migrations:
  Applying sentry.0264_use_booleanfield_docintegration... OK
  Applying sentry.0265_add_userrole... OK
  Applying sentry.0266_add_dashboard_widget_detail_field... OK
  Applying sentry.0267_sentry_release_version_btree... OK
  Applying sentry.0268_rename_issue_widget_query_fields... OK
  Applying sentry.0269_alertrule_remove_unique_name... OK
  Applying sentry.0270_group_history_project_date_added_index... OK
  Applying sentry.0271_add_codeowners_auto_sync_setting... OK
  Applying sentry.0272_seq_scan_indexes... OK
  Applying sentry.0273_fix_grouplink_seqscans... OK
  Applying sentry.0274_add_dashboardwidgetquery_columns_aggregates... OK
  Applying sentry.0275_rule_fire_history... OK
  Applying sentry.0276_rulefirehistory_date_added_index... OK
  Applying sentry.0277_backfill_dashboard_widget_query_columns_aggregates... OK
  Applying sentry.0278_backfill_codeowners_auto_sync_setting... OK
  Applying sentry.0279_add_limit_dashboard_widget... OK
  Applying sentry.0280_extend_commit_author_email_length... OK
  Applying sentry.0281_add_new_indexer_table... OK
  Applying sentry.0282_add_field_aliases_dashboard_widget_query... OK
  Applying sentry.0283_extend_externalissue_key... OK
  Applying sentry.0284_metrics_indexer_alter_seq... OK
  Applying sentry.0285_add_organization_member_team_role... OK
  Applying sentry.0286_backfill_alertrule_organization... OK
  Applying sentry.0287_backfill_snubaquery_environment... OK
  Applying sentry.0288_fix_savedsearch_state... OK
  Applying sentry.0289_dashboardwidgetquery_convert_orderby_to_field... OK
Projects: 100% |################################################| Time:  0:00:00
  Applying sentry.0290_fix_project_has_releases... OK
  Applying sentry.0291_add_new_perf_indexer... OK
Creating missing DSNs
Correcting Group.num_comments counter

▶ Migrating file storage ...
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
59bf1c3509f3: Already exists
Digest: sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
Status: Downloaded newer image for alpine:latest

▶ Setting up GeoIP integration ...
Setting up IP address geolocation ...
IP address geolocation database already exists.
IP address geolocation is not configured for updates.
See https://develop.sentry.dev/self-hosted/geolocation/ for instructions.
Error setting up IP address geolocation.


-----------------------------------------------------------------

You're all done! Run the following command to get Sentry running:

  docker-compose up -d

-----------------------------------------------------------------
>>> docker-compose restart
Restarting sentry-self-hosted_nginx_1                                    ... done
Restarting sentry-self-hosted_relay_1                                    ... done
Restarting sentry-self-hosted_subscription-consumer-transactions_1       ... done
Restarting sentry-self-hosted_post-process-forwarder_1                   ... done
Restarting sentry-self-hosted_ingest-consumer_1                          ... done
Restarting sentry-self-hosted_web_1                                      ... done
Restarting sentry-self-hosted_worker_1                                   ... done
Restarting sentry-self-hosted_subscription-consumer-events_1             ... done
Restarting sentry-self-hosted_cron_1                                     ... done
Restarting sentry-self-hosted_sentry-cleanup_1                           ... done
Restarting sentry-self-hosted_snuba-transactions-cleanup_1               ... done
Restarting sentry-self-hosted_snuba-cleanup_1                            ... done
Restarting sentry-self-hosted_symbolicator-cleanup_1                     ... done
Restarting sentry-self-hosted_geoipupdate_1                              ... done
Restarting sentry-self-hosted_snuba-sessions-consumer_1                  ... done
Restarting sentry-self-hosted_snuba-subscription-consumer-events_1       ... done
Restarting sentry-self-hosted_snuba-subscription-consumer-transactions_1 ... done
Restarting sentry-self-hosted_snuba-outcomes-consumer_1                  ... done
Restarting sentry-self-hosted_snuba-transactions-consumer_1              ... done
Restarting sentry-self-hosted_snuba-consumer_1                           ... done
Restarting sentry-self-hosted_snuba-replacer_1                           ... done
Restarting sentry-self-hosted_snuba-api_1                                ... done
Restarting sentry-self-hosted_smtp_1                                     ... done
Restarting sentry-self-hosted_symbolicator_1                             ... done
Restarting sentry-self-hosted_memcached_1                                ... done
Restarting sentry-self-hosted_postgres_1                                 ... done
Restarting sentry-self-hosted_kafka_1                                    ... done
Restarting sentry-self-hosted_clickhouse_1                               ... done
Restarting sentry-self-hosted_redis_1                                    ... done
Restarting sentry-self-hosted_zookeeper_1                                ... done

在这里插入图片描述
升级完成后可能会出现无法获取新的event的情况,这个时候可以通过

>>> docker-compose up

实时查看日志

非常玄学的是,我用调试半天没有成功,通过docker-compose up竟然能接收到了,然后我就重新

>>> docker-compose up -d

一切恢复正常

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值