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

Docker container with image of clickhouse/clickhouse-server immediately exits on WSL2 with Ubuntu 24.04 #63370

Closed
dlarussa opened this issue May 4, 2024 · 3 comments
Labels
comp-install istallation component

Comments

@dlarussa
Copy link

dlarussa commented May 4, 2024

Installation type
Docker, via docker-compose, on WSL2 with Ubuntu-24.04

Source of the ClickHouse
https:/hub.docker.com/r/clickhouse/clickhouse-server

Logs from docker-compose up -d

2024-05-04 12:29:39 Processing configuration file '/etc/clickhouse-server/config.xml'.
2024-05-04 12:29:39 Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
2024-05-04 12:29:39 Logging trace to /var/log/clickhouse-server/clickhouse-server.log
2024-05-04 12:29:39 Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
2024-05-04 12:29:39 /entrypoint.sh: create new user 'myusername' instead 'default'
2024-05-04 12:29:39 ClickHouse Database directory appears to contain a database; Skipping initialization

docker-compose.yml file content

ch-server:
    container_name: ch-server
    image: clickhouse/clickhouse-server
    secrets:
      - source: password
    volumes:
      - $HOME/CHDB:/var/lib/clickhouse/data
    ports:
      - 8123:8123
      - 9000:9000
    ulimits:
      nofile:
        soft: 262144
        hard: 262144
    environment:
      CLICKHOUSE_DB: mychdb
      CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
      CLICKHOUSE_USER: myusername
      CLICKHOUSE_PASSWORD_FILE: /run/secrets/password 

Expected result

  • Container with clickhouse-server launches and remains running
  • Persistent database files created in $HOME/CHDB
  • Previously worked on WSL2 with Ubuntu-22.04

The actual result

  • $HOME/CHDB folder is created but empty
  • Container immediately exits

How to reproduce

  • Install Ubuntu-24.04 distro in WSL2 on Windows 11
  • Install docker desktop; ensure integration with WSL distribution is enabled in settings.
  • copy docker-compose.yaml file above:
> cd /path/to/docker-compose.yaml
> docker-compose -f docker-compose.yaml up -d
> docker ps -a

... STATUS ...
... Exited (233) ...

> docker logs <container id>
/entrypoint.sh: create new user 'myusername' instead 'default'
ClickHouse Database directory appears to contain a database; Skipping initialization
Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
@dlarussa dlarussa added the comp-install istallation component label May 4, 2024
@dlarussa
Copy link
Author

dlarussa commented May 4, 2024

Similar issue previously described: #60025

@den-crane
Copy link
Contributor

Only ext4 is supported.
Mount whole /clickhouse - $HOME/CHDB:/var/lib/clickhouse/ -- Clickhouse creates hardlinks from /data to /store

@dlarussa
Copy link
Author

dlarussa commented May 4, 2024

Thank you! That was my issue.

@dlarussa dlarussa closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-install istallation component
Projects
None yet
Development

No branches or pull requests

2 participants