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

CLICKHOUSE_DB env variable is not respected after upgrade from 23.8 to 24.1 docker image #60020

Closed
ribtoks opened this issue Feb 15, 2024 · 2 comments

Comments

@ribtoks
Copy link

ribtoks commented Feb 15, 2024

Describe the unexpected behaviour
Default database is not created anymore when using 24.1 docker image and setting environment variable CLICKHOUSE_DB.

How to reproduce

Run clickhouse-server using this command:

docker run -d --rm \
    -p 8123:8123 \
    -p 9000:9000 \
    --ulimit nofile=262144:262144 \
    -e CLICKHOUSE_DB=mytestdb \
    clickhouse/clickhouse-server:23.8-alpine

After upgrading to 24.1, database mytestdb is not created anymore.

NOTE: alpine image was selected just for size, same behavior is when using just :23.8 image (without -alpine)

Expected behavior

24.1 is backwards-compatible with CLICKHOUSE_DB behavior.

@darwin67
Copy link

FYI
24.1.3 works, and it started breaking from 24.1.4. You can still upgrade to 24.1.x if you lock it to 24.1.3

related: #60025

@Algunenano
Copy link
Member

Fixed in #59991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants