ERROR: for clickhouse Cannot create container for service clickhouse

Hi everyone.
I have an issue with starting Sentry.
I use ubuntu 18.04.
It’s fresh installation.

Here a log file:

    Checking minimum requirements...

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

sentry/sentry.conf.py already exists, skipped creation.
sentry/config.yml already exists, skipped creation.
sentry/requirements.txt already exists, skipped creation.
symbolicator/config.yml already exists, skipped creation.
relay/config.yml already exists, skipped creation.

Fetching and updating Docker images...

Some service image(s) must be built from source by running:
    docker-compose build post-process-forwarder subscription-consumer-transactions sentry-cleanup snuba-cleanup web worker subscription-consumer-events ingest-consumer symbolicator-cleanup cron
20.11.1-py3: Pulling from getsentry/sentry
8559a31e96f4: Already exists
62e60f3ef11e: Already exists
6f66b7415d8a: Already exists
7814b5d1b3ca: Already exists
0ac0b60bec89: Already exists
1c06a3573871: Pulling fs layer
949b6661a0a7: Pulling fs layer
dfaef6213d36: Pulling fs layer
4ed1382317e1: Pulling fs layer
2c61db529506: Pulling fs layer
87affca90403: Pulling fs layer
6b10d0007ffb: Pulling fs layer
6777691c5a9a: Pulling fs layer
9828c83adec0: Pulling fs layer
c6bf7958574a: Pulling fs layer
4ed1382317e1: Waiting
2c61db529506: Waiting
87affca90403: Waiting
6b10d0007ffb: Waiting
6777691c5a9a: Waiting
9828c83adec0: Waiting
c6bf7958574a: Waiting
1c06a3573871: Download complete
1c06a3573871: Pull complete
dfaef6213d36: Verifying Checksum
dfaef6213d36: Download complete
949b6661a0a7: Download complete
949b6661a0a7: Pull complete
dfaef6213d36: Pull complete
2c61db529506: Verifying Checksum
2c61db529506: Download complete
87affca90403: Verifying Checksum
87affca90403: Download complete
6b10d0007ffb: Verifying Checksum
6b10d0007ffb: Download complete
6777691c5a9a: Download complete
9828c83adec0: Verifying Checksum
9828c83adec0: Download complete
c6bf7958574a: Verifying Checksum
c6bf7958574a: Download complete
4ed1382317e1: Verifying Checksum
4ed1382317e1: Download complete
4ed1382317e1: Pull complete
2c61db529506: Pull complete
87affca90403: Pull complete
6b10d0007ffb: Pull complete
6777691c5a9a: Pull complete
9828c83adec0: Pull complete
c6bf7958574a: Pull complete
Digest: sha256:2817906224e0f2912bdf1a2b44fc44404018ee170ed92b6ba6ce9b30ccea9d7e
Status: Downloaded newer image for getsentry/sentry:20.11.1-py3
docker.io/getsentry/sentry:20.11.1-py3

Building and tagging Docker images...

Building web
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Running in b6e2f0c4c964
Removing intermediate container b6e2f0c4c964
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
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
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                      ... 
Building symbolicator-cleanup               ... 
Building web                                ... 
Building cron                               ... 
Building worker                             ... 
Building ingest-consumer                    ... 
Building post-process-forwarder             ... 
Building subscription-consumer-events       ... 
Building subscription-consumer-transactions ... 
Building sentry-cleanup                     ... 
Building cron
Building subscription-consumer-transactions
Building snuba-cleanup
Building sentry-cleanup
Building symbolicator-cleanup
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Building cron                               ... done
Building ingest-consumer
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Building subscription-consumer-transactions ... done
Building post-process-forwarder
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
 ---> 7cf07ea0a0a6
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
 ---> Using cache
 ---> c2f9d72fa284
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
 ---> Using cache
 ---> 73ac0b0d8327
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Using cache
 ---> 53962efc60e5

Successfully built 53962efc60e5
Successfully tagged snuba-cleanup-onpremise-local:latest
Building snuba-cleanup                      ... done
Building subscription-consumer-events
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
 ---> 810e44f8f08f
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
 ---> 3a8b8c057e0c
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
 ---> Using cache
 ---> 253fa76cb6b6
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
 ---> Using cache
 ---> d1c41a3aeee0
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Using cache
 ---> 6cf245d0c5f9

Successfully built 6cf245d0c5f9
Successfully tagged symbolicator-cleanup-onpremise-local:latest
Building symbolicator-cleanup               ... done
Building worker
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Building ingest-consumer                    ... done
Building web
 ---> Running in 42126145f178
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Building post-process-forwarder             ... done
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Building subscription-consumer-events       ... done
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Successfully tagged sentry-onpremise-local:latest
Step 1/5 : ARG SENTRY_IMAGE
Step 2/5 : ARG SENTRY_PYTHON3
Step 3/5 : FROM ${SENTRY_IMAGE}${SENTRY_PYTHON3:+-py3}
 ---> f7a3ea86258c
Step 4/5 : COPY . /usr/src/sentry
 ---> Using cache
 ---> 96fc21cb792f
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
 ---> Using cache
 ---> 810e44f8f08f

Successfully built 810e44f8f08f
Building web                                ... done
Successfully tagged sentry-onpremise-local:latest
Building worker                             ... done
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [260 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7860 B]
Fetched 8414 kB in 2s (3685 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  lsb-base sensible-utils
Suggested packages:
  anacron logrotate checksecurity
Recommended packages:
  default-mta | mail-transport-agent
The following NEW packages will be installed:
  cron lsb-base sensible-utils
0 upgraded, 3 newly installed, 0 to remove and 18 not upgraded.
Need to get 143 kB of archives.
After this operation, 383 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 sensible-utils all 0.0.12 [15.8 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 lsb-base all 10.2019051400 [28.4 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 cron amd64 3.0pl1-134+deb10u1 [99.0 kB]
e[91mdebconf: delaying package configuration, since apt-utils is not installed
e[0mFetched 143 kB in 0s (13.3 MB/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 ... 11928 files and directories currently installed.)
Preparing to unpack .../sensible-utils_0.0.12_all.deb ...
Unpacking sensible-utils (0.0.12) ...
Selecting previously unselected package lsb-base.
Preparing to unpack .../lsb-base_10.2019051400_all.deb ...
Unpacking lsb-base (10.2019051400) ...
Selecting previously unselected package cron.
Preparing to unpack .../cron_3.0pl1-134+deb10u1_amd64.deb ...
Unpacking cron (3.0pl1-134+deb10u1) ...
Setting up lsb-base (10.2019051400) ...
Setting up sensible-utils (0.0.12) ...
Setting up cron (3.0pl1-134+deb10u1) ...
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 42126145f178
 ---> 724b09686d53
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
 ---> 322c07ede2e0
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
 ---> Running in 490fd0d6c560
Removing intermediate container 490fd0d6c560
 ---> 78fe521c45a3

Successfully built 78fe521c45a3
Successfully tagged sentry-cleanup-onpremise-local:latest
Building sentry-cleanup                     ... done

Docker images built.
Removing network onpremise_default
Network onpremise_default not found.
Removing network sentry_onpremise_default
Network sentry_onpremise_default not found.
Creating network "sentry_onpremise_default" with the default driver
Creating sentry_onpremise_zookeeper_run ... 
Creating sentry_onpremise_zookeeper_run ... done
Creating sentry_onpremise_zookeeper_run ... 
Creating sentry_onpremise_zookeeper_run ... done
Creating sentry_onpremise_zookeeper_run ... 
Creating sentry_onpremise_zookeeper_run ... done
Bootstrapping and migrating Snuba...
Creating sentry_onpremise_clickhouse_1 ... 
Creating sentry_onpremise_redis_1      ... 
Creating sentry_onpremise_zookeeper_1  ... 
Creating sentry_onpremise_clickhouse_1 ... error

ERROR: for sentry_onpremise_clickhouse_1  Cannot create container for service clickhouse: invalid mount config for type "bind": bind source path does not exist: /var/www/sentry/clickhouse/config.xml
Creating sentry_onpremise_zookeeper_1  ... done
Creating sentry_onpremise_kafka_1      ... 
Creating sentry_onpremise_redis_1      ... done
Creating sentry_onpremise_kafka_1      ... done

ERROR: for clickhouse  Cannot create container for service clickhouse: invalid mount config for type "bind": bind source path does not exist: /var/www/sentry/clickhouse/config.xml
Encountered errors while bringing up the project.
An error occurred, caught SIGERR on line 254
Cleaning up...

Do you have any ideas?
Maybe need some extra information?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.