Skip to content

Instantly share code, notes, and snippets.

@sajphon
Created December 3, 2021 14:52
Show Gist options
  • Save sajphon/ef85f11488f8fe0a9b7699e971ecc642 to your computer and use it in GitHub Desktop.
Save sajphon/ef85f11488f8fe0a9b7699e971ecc642 to your computer and use it in GitHub Desktop.
+++ basename ./install.sh
++ [[ install.sh = \i\n\s\t\a\l\l\.\s\h ]]
+++ dirname ./install.sh
++ cd ./install/
++ [[ -f ../.env.custom ]]
+++ realpath ../.env
++ _ENV=/opt/sentry/onpremise/.env
+++ mktemp
++ t=/tmp/tmp.uGKbpxUzIp
++ export -p
++ set -a
++ . /opt/sentry/onpremise/.env
+++ COMPOSE_PROJECT_NAME=sentry-self-hosted
+++ SENTRY_EVENT_RETENTION_DAYS=90
+++ SENTRY_BIND=9000
+++ SENTRY_IMAGE=getsentry/sentry:nightly
+++ SNUBA_IMAGE=getsentry/snuba:nightly
+++ RELAY_IMAGE=getsentry/relay:nightly
+++ SYMBOLICATOR_IMAGE=getsentry/symbolicator:nightly
+++ WAL2JSON_VERSION=latest
++ set +a
++ . /tmp/tmp.uGKbpxUzIp
+++ declare -x DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
+++ declare -x DEBUG=1
+++ declare -x HOME=/root
+++ declare -x LANG=en_US.UTF-8
+++ declare -x LANGUAGE=en_US:en
+++ declare -x LOGNAME=root
+++ declare -x 'LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
+++ declare -x LS_OPTIONS=--color=auto
+++ declare -x MOTD_SHOWN=pam
+++ declare -x OLDPWD=/opt/sentry/onpremise
+++ declare -x PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
+++ declare -x PWD=/opt/sentry/onpremise/install
+++ declare -x SHELL=/bin/bash
+++ declare -x SHLVL=2
+++ declare -x 'SSH_CLIENT=192.168.10.200 6794 22'
+++ declare -x 'SSH_CONNECTION=192.168.10.200 6794 192.168.10.130 22'
+++ declare -x SSH_TTY=/dev/pts/0
+++ declare -x TERM=xterm
+++ declare -x USER=root
+++ declare -x XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
+++ declare -x XDG_RUNTIME_DIR=/run/user/0
+++ declare -x XDG_SESSION_CLASS=user
+++ declare -x XDG_SESSION_ID=163
+++ declare -x XDG_SESSION_TYPE=tty
++ rm /tmp/tmp.uGKbpxUzIp
++ unset t
++ '[' '' = true ']'
++ _group='â–¶ '
++ _endgroup=
+++ docker compose version
+++ echo docker-compose
++ dc_base=docker-compose
++ dc='docker-compose --ansi never --env-file /opt/sentry/onpremise/.env'
++ dcr='docker-compose --ansi never --env-file /opt/sentry/onpremise/.env run --rm'
++ SENTRY_CONFIG_PY=../sentry/sentry.conf.py
++ SENTRY_CONFIG_YML=../sentry/config.yml
++ STOP_TIMEOUT=60
+ source parse-cli.sh
++ echo 'â–¶ Parsing command line ...'
â–¶ Parsing command line ...
++ SKIP_USER_PROMPT=
++ MINIMIZE_DOWNTIME=
++ (( 1 ))
++ case "$1" in
++ SKIP_USER_PROMPT=1
++ shift
++ (( 0 ))
++ echo ''
+ source error-handling.sh
++ echo 'â–¶ Setting up error handling ...'
â–¶ Setting up error handling ...
++ DID_CLEAN_UP=0
++ trap_with_arg cleanup ERR INT TERM EXIT
++ func=cleanup
++ shift
++ for sig in "$@"
++ trap 'cleanup ERR $LINENO' ERR
++ for sig in "$@"
++ trap 'cleanup INT $LINENO' INT
++ for sig in "$@"
++ trap 'cleanup TERM $LINENO' TERM
++ for sig in "$@"
++ trap 'cleanup EXIT $LINENO' EXIT
++ echo ''
+ source check-minimum-requirements.sh
++ echo 'â–¶ Checking minimum requirements ...'
â–¶ Checking minimum requirements ...
+++ dirname ./install.sh
++ source ./_min-requirements.sh
+++ MIN_DOCKER_VERSION=19.03.6
+++ MIN_COMPOSE_VERSION=1.28.0
+++ MIN_RAM_HARD=3800
+++ MIN_RAM_SOFT=7800
+++ MIN_CPU_HARD=2
+++ MIN_CPU_SOFT=4
+++ docker version --format '{{.Server.Version}}'
++ DOCKER_VERSION=20.10.11
+++ ver 20.10.11
+++ echo 20.10.11
+++ awk -F. '{ printf("%d%03d%03d", $1,$2,$3); }'
+++ ver 19.03.6
+++ echo 19.03.6
+++ awk -F. '{ printf("%d%03d%03d", $1,$2,$3); }'
++ [[ 20010011 -lt 19003006 ]]
++ docker compose version
+++ docker-compose version
+++ head -n1
+++ sed -E 's/^.* version:? v?([0-9.]+),?.*$/\1/'
++ COMPOSE_VERSION=1.29.2
+++ ver 1.29.2
+++ echo 1.29.2
+++ awk -F. '{ printf("%d%03d%03d", $1,$2,$3); }'
+++ ver 1.28.0
+++ echo 1.28.0
+++ awk -F. '{ printf("%d%03d%03d", $1,$2,$3); }'
++ [[ 1029002 -lt 1028000 ]]
+++ docker run --rm busybox nproc --all
++ CPU_AVAILABLE_IN_DOCKER=6
++ [[ 6 -lt 2 ]]
++ [[ 6 -lt 4 ]]
+++ docker run --rm busybox free -m
+++ awk '/Mem/ {print $2}'
++ RAM_AVAILABLE_IN_DOCKER=15000
++ [[ 15000 -lt 3800 ]]
++ [[ 15000 -lt 7800 ]]
+++ docker run --rm busybox grep -c 'Common KVM processor' /proc/cpuinfo
+++ :
++ IS_KVM=0
++ [[ 0 -eq 0 ]]
+++ docker run --rm busybox grep -c sse4_2 /proc/cpuinfo
++ SUPPORTS_SSE42=6
++ [[ 6 -eq 0 ]]
++ echo ''
+ source create-docker-volumes.sh
++ echo 'â–¶ Creating volumes for persistent storage ...'
â–¶ Creating volumes for persistent storage ...
+++ docker volume create --name=sentry-clickhouse
++ echo 'Created sentry-clickhouse.'
Created sentry-clickhouse.
+++ docker volume create --name=sentry-data
++ echo 'Created sentry-data.'
Created sentry-data.
+++ docker volume create --name=sentry-kafka
++ echo 'Created sentry-kafka.'
Created sentry-kafka.
+++ docker volume create --name=sentry-postgres
++ echo 'Created sentry-postgres.'
Created sentry-postgres.
+++ docker volume create --name=sentry-redis
++ echo 'Created sentry-redis.'
Created sentry-redis.
+++ docker volume create --name=sentry-symbolicator
++ echo 'Created sentry-symbolicator.'
Created sentry-symbolicator.
+++ docker volume create --name=sentry-zookeeper
++ echo 'Created sentry-zookeeper.'
Created sentry-zookeeper.
++ echo ''
+ source ensure-files-from-examples.sh
++ echo 'â–¶ Ensuring files from examples ...'
â–¶ Ensuring files from examples ...
++ ensure_file_from_example ../sentry/sentry.conf.py
++ [[ -f ../sentry/sentry.conf.py ]]
++ echo 'Creating ../sentry/sentry.conf.py...'
Creating ../sentry/sentry.conf.py...
+++ echo ../sentry/sentry.conf.py
+++ sed 's/\.[^.]*$/.example&/'
++ cp -n ../sentry/sentry.conf.example.py ../sentry/sentry.conf.py
++ ensure_file_from_example ../sentry/config.yml
++ [[ -f ../sentry/config.yml ]]
++ echo 'Creating ../sentry/config.yml...'
Creating ../sentry/config.yml...
+++ echo ../sentry/config.yml
+++ sed 's/\.[^.]*$/.example&/'
++ cp -n ../sentry/config.example.yml ../sentry/config.yml
++ ensure_file_from_example ../symbolicator/config.yml
++ [[ -f ../symbolicator/config.yml ]]
++ echo 'Creating ../symbolicator/config.yml...'
Creating ../symbolicator/config.yml...
+++ echo ../symbolicator/config.yml
+++ sed 's/\.[^.]*$/.example&/'
++ cp -n ../symbolicator/config.example.yml ../symbolicator/config.yml
++ ensure_file_from_example ../sentry/requirements.txt
++ [[ -f ../sentry/requirements.txt ]]
++ echo 'Creating ../sentry/requirements.txt...'
Creating ../sentry/requirements.txt...
+++ echo ../sentry/requirements.txt
+++ sed 's/\.[^.]*$/.example&/'
++ cp -n ../sentry/requirements.example.txt ../sentry/requirements.txt
++ echo ''
+ source generate-secret-key.sh
++ echo 'â–¶ Generating secret key ...'
â–¶ Generating secret key ...
++ grep -xq 'system.secret-key: '\''!!changeme!!'\''' ../sentry/config.yml
+++ export LC_ALL=C
+++ LC_ALL=C
+++ head /dev/urandom
+++ tr -dc 'a-z0-9@#%^&*(-_=+)'
+++ head -c 50
+++ sed -e 's/[\/&]/\\&/g'
++ SECRET_KEY='l]hWkIU?KrzLuRChr=i7)l*VXJ)OAL4dy0#6p>ox^)A^5(t<_E'
++ sed -i -e 's/^system.secret-key:.*$/system.secret-key: '\''l]hWkIU?KrzLuRChr=i7)l*VXJ)OAL4dy0#6p>ox^)A^5(t<_E'\''/' ../sentry/config.yml
++ echo 'Secret key written to ../sentry/config.yml'
Secret key written to ../sentry/config.yml
++ echo ''
+ source replace-tsdb.sh
++ echo 'â–¶ Replacing TSDB ...'
â–¶ Replacing TSDB ...
++ replace_tsdb
++ [[ -f ../sentry/sentry.conf.py ]]
++ grep -xq 'SENTRY_TSDB = "sentry.tsdb.redissnuba.RedisSnubaTSDB"' ../sentry/sentry.conf.py
++ echo ''
+ source update-docker-images.sh
++ echo 'â–¶ Fetching and updating Docker images ...'
â–¶ Fetching and updating Docker images ...
++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env pull -q --ignore-pull-failures
++ grep -v -- -self-hosted-local
Some service image(s) must be built from source by running:
docker-compose build snuba-transactions-cleanup sentry-cleanup symbolicator-cleanup snuba-cleanup
++ docker pull getsentry/sentry:nightly
nightly: Pulling from getsentry/sentry
Digest: sha256:a21c5f2719f367c9e806c7af5b3d864ee6a831283279ba31f9c0f9ad7d6b0b80
Status: Image is up to date for getsentry/sentry:nightly
docker.io/getsentry/sentry:nightly
++ echo ''
+ source build-docker-images.sh
++ echo 'â–¶ Building and tagging Docker images ...'
â–¶ Building and tagging Docker images ...
++ echo ''
++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env build --force-rm
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
web uses an image, skipping
cron uses an image, skipping
worker uses an image, skipping
ingest-consumer uses an image, skipping
post-process-forwarder uses an image, skipping
subscription-consumer-events uses an image, skipping
subscription-consumer-transactions 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/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> e292ac9af27f
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 66fc64494786
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 44af6e395a71
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> d869303cb9ac
Successfully built d869303cb9ac
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building snuba-transactions-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> e292ac9af27f
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 66fc64494786
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 44af6e395a71
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> d869303cb9ac
Successfully built d869303cb9ac
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building symbolicator-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> d9bacb58ab47
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 3f6a71c67234
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> 44469ab04b62
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Running in 005a37242b14
Removing intermediate container 005a37242b14
---> 84b675637485
Successfully built 84b675637485
Successfully tagged symbolicator-cleanup-self-hosted-local:latest
Building sentry-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> 8101ee10fa48
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> cff99c379662
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 6201920dce9d
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 8148433372a7
Successfully built 8148433372a7
Successfully tagged sentry-cleanup-self-hosted-local:latest
++ echo ''
++ echo 'Docker images built.'
Docker images built.
++ echo ''
+ source turn-things-off.sh
++ echo 'â–¶ Turning things off ...'
â–¶ Turning things off ...
++ [[ -n '' ]]
++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env down -t 60 --rmi local --remove-orphans
Stopping sentry-self-hosted_memcached_1 ...
Stopping sentry-self-hosted_smtp_1 ...
Stopping sentry-self-hosted_symbolicator-cleanup_1 ...
Stopping sentry-self-hosted_postgres_1 ...
Stopping sentry-self-hosted_symbolicator_1 ...
Stopping sentry-self-hosted_kafka_1 ...
Stopping sentry-self-hosted_zookeeper_1 ...
Stopping sentry-self-hosted_clickhouse_1 ...
Stopping sentry-self-hosted_redis_1 ...
Stopping sentry-self-hosted_kafka_1 ... done
Stopping sentry-self-hosted_redis_1 ... done
Stopping sentry-self-hosted_smtp_1 ... done
Stopping sentry-self-hosted_postgres_1 ... done
Stopping sentry-self-hosted_zookeeper_1 ... done
Stopping sentry-self-hosted_memcached_1 ... done
Stopping sentry-self-hosted_clickhouse_1 ... done
Stopping sentry-self-hosted_symbolicator-cleanup_1 ... done
Stopping sentry-self-hosted_symbolicator_1 ... done
Removing sentry-self-hosted_memcached_1 ...
Removing sentry-self-hosted_smtp_1 ...
Removing sentry-self-hosted_symbolicator-cleanup_1 ...
Removing sentry-self-hosted_postgres_1 ...
Removing sentry-self-hosted_geoipupdate_1 ...
Removing sentry-self-hosted_symbolicator_1 ...
Removing sentry-self-hosted_kafka_1 ...
Removing sentry-self-hosted_zookeeper_1 ...
Removing sentry-self-hosted_clickhouse_1 ...
Removing sentry-self-hosted_redis_1 ...
Removing sentry-self-hosted_geoipupdate_1 ... done
Removing sentry-self-hosted_postgres_1 ... done
Removing sentry-self-hosted_symbolicator-cleanup_1 ... done
Removing sentry-self-hosted_redis_1 ... done
Removing sentry-self-hosted_zookeeper_1 ... done
Removing sentry-self-hosted_smtp_1 ... done
Removing sentry-self-hosted_symbolicator_1 ... done
Removing sentry-self-hosted_clickhouse_1 ... done
Removing sentry-self-hosted_kafka_1 ... done
Removing sentry-self-hosted_memcached_1 ... done
Removing network sentry-self-hosted_default
++ echo ''
+ source set-up-zookeeper.sh
++ echo 'â–¶ Setting up Zookeeper ...'
â–¶ Setting up Zookeeper ...
+++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env run --rm zookeeper bash -c 'ls 2>/dev/null -Ubad1 -- /var/lib/zookeeper/data/version-2 | wc -l | tr -d [:space:]'
Creating network "sentry-self-hosted_default" with the default driver
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done
++ ZOOKEEPER_SNAPSHOT_FOLDER_EXISTS=1
++ [[ 1 -eq 1 ]]
+++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env run --rm zookeeper bash -c 'ls 2>/dev/null -Ubad1 -- /var/lib/zookeeper/log/version-2/* | wc -l | tr -d [:space:]'
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done
++ ZOOKEEPER_LOG_FILE_COUNT=2
+++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env run --rm zookeeper bash -c 'ls 2>/dev/null -Ubad1 -- /var/lib/zookeeper/data/version-2/* | wc -l | tr -d [:space:]'
Creating sentry-self-hosted_zookeeper_run ...
Creating sentry-self-hosted_zookeeper_run ... done
++ ZOOKEEPER_SNAPSHOT_FILE_COUNT=6
++ cd ..
++ [[ 2 -gt 0 ]]
++ [[ 6 -eq 0 ]]
++ cd install
++ echo ''
+ source install-wal2json.sh
++ echo 'â–¶ Downloading and installing wal2json ...'
â–¶ Downloading and installing wal2json ...
++ FILE_TO_USE=../postgres/wal2json/wal2json.so
+++ uname -m
++ ARCH=x86_64
++ FILE_NAME=wal2json-Linux-x86_64-glibc.so
++ [[ latest == \l\a\t\e\s\t ]]
+++ docker_curl https://api.github.com/repos/getsentry/wal2json/releases/latest
+++ docker run --rm -e http_proxy -e https_proxy -e HTTPS_PROXY -e no_proxy -e NO_PROXY curlimages/curl:7.77.0 https://api.github.com/repos/getsentry/wal2json/releases/latest
+++ grep '"tag_name":'
+++ sed -E 's/.*"([^"]+)".*/\1/'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5417 100 5417 0 0 18893 0 --:--:-- --:--:-- --:--:-- 18940
++ VERSION=0.0.2
++ [[ ! -n 0.0.2 ]]
++ mkdir -p ../postgres/wal2json
++ '[' '!' -f ../postgres/wal2json/0.0.2/wal2json-Linux-x86_64-glibc.so ']'
++ mkdir -p ../postgres/wal2json/0.0.2
++ docker_curl -L https://github.com/getsentry/wal2json/releases/download/0.0.2/wal2json-Linux-x86_64-glibc.so
++ docker run --rm -e http_proxy -e https_proxy -e HTTPS_PROXY -e no_proxy -e NO_PROXY curlimages/curl:7.77.0 -L https://github.com/getsentry/wal2json/releases/download/0.0.2/wal2json-Linux-x86_64-glibc.so
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 669 100 669 0 0 1784 0 --:--:-- --:--:-- --:--:-- 1784
100 101k 100 101k 0 0 136k 0 --:--:-- --:--:-- --:--:-- 136k
++ cp ../postgres/wal2json/0.0.2/wal2json-Linux-x86_64-glibc.so ../postgres/wal2json/wal2json.so
++ echo ''
+ source bootstrap-snuba.sh
++ echo 'â–¶ Bootstrapping and migrating Snuba ...'
â–¶ Bootstrapping and migrating Snuba ...
++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env run --rm snuba-api bootstrap --no-migrate --force
Creating sentry-self-hosted_zookeeper_1 ...
Creating sentry-self-hosted_clickhouse_1 ...
Creating sentry-self-hosted_redis_1 ...
Creating sentry-self-hosted_redis_1 ... done
Creating sentry-self-hosted_clickhouse_1 ... done
Creating sentry-self-hosted_zookeeper_1 ... done
Creating sentry-self-hosted_kafka_1 ...
Creating sentry-self-hosted_kafka_1 ... done
ERROR: for snuba-api Container "1a0d5a8f6507" is unhealthy.
Encountered errors while bringing up the project.
+++ cleanup ERR 3
+++ [[ 0 -eq 1 ]]
+++ DID_CLEAN_UP=1
+++ [[ ERR != \E\X\I\T ]]
+++ echo 'An error occurred, caught SIGERR on line 3'
An error occurred, caught SIGERR on line 3
+++ [[ -n '' ]]
+++ echo 'Cleaning up...'
Cleaning up...
+++ [[ -z '' ]]
+++ docker-compose --ansi never --env-file /opt/sentry/onpremise/.env stop -t 60
+ cleanup EXIT 1
+ [[ 1 -eq 1 ]]
+ return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment