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
Docker versions of ClickHouse server since 24.1.4 ignore initialization #60025
Comments
Same here. Our CI started failing from a day or so again all of a sudden, and can also confirm the problem started from 24.1.4 where setting the environment variable |
Might be related to #59991 |
Having the same issue. Here's initialization log and what's contained in the directory. Maybe the check on the data directory not being empty is too simple? Logs from
Docker compose config:
Noteworthy: we do not want to always run init scripts, so the new option doesn't help us too much. Edit: setting |
Fixed in #59991 |
I don't believe that to be the case. As I mentioned in my comment, the data directory already exists and always will exist with the docker setup as it is currently, meaning that the init scripts will still never get run How was this tested out of curiosity? Would love to replicate on my end. @Algunenano |
I confirm, setting |
This is now broken on the latest 23.x versions as well 😭 |
Ok, how to fix this without updating to 24.x ? |
Describe the issue
Latest version of Docker image fails to run initialisation scripts, shows "ClickHouse Database directory appears to contain a database; Skipping initialization" in logs. Either a bug or documentation not updated to reflect changes.
How to reproduce
Issue appears in clickhouse/clickhouse-server:24.1.4, still present in 24.1.5. Volume mounted to /docker-entrypoint-initdb.d/ does not initialise the database, but should, as stated here - https://hub.docker.com/r/clickhouse/clickhouse-server
The text was updated successfully, but these errors were encountered: