CanastaWiki / Canasta

MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
https://www.canasta.wiki
MIT License
36 stars 27 forks source link

docker compose error for elasticsearch #435

Open ozz-project opened 1 week ago

ozz-project commented 1 week ago

Summary: docker compose up -d

elastic search crashes with Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting rlimits for ready process: error setting rlimit type 8: operation not permitted: unknown

Description: seem to be the parameter for elasticserach :ulimit with hard and Soft: -1 in docker-compose.yml

  1. uncomment/leave in docker-compose.yml the line in elasticsearch with ulimit up to volumens
  2. run docker again
  3. error from above
  4. comment the lines
  5. run docker again
  6. works fine

Expected behavior

Docker should run through there also some warnings as well

WARN[0000] /opt/wiki/Canasta-DockerCompose/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /opt/wiki/Canasta-DockerCompose/docker-compose.override.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 

System info

latest version

yaronkoren commented 1 week ago

@ozz-project - what versions of Docker and Docker Compose are you running? And what operating system are you running?

ozz-project commented 1 week ago

Docker Compose version v2.29.2

Client: Docker Engine - Community Version: 27.2.0 API version: 1.47 Go version: go1.21.13 Git commit: 3ab4256 Built: Tue Aug 27 14:15:13 2024 OS/Arch: linux/amd64 Context: default

Server: Docker Engine - Community Engine: Version: 27.2.0 API version: 1.47 (minimum version 1.24) Go version: go1.21.13 Git commit: 3ab5c7d Built: Tue Aug 27 14:15:13 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.21 GitCommit: 472731909fa34bd7bc9c087e4c27943f9835f111 runc: Version: 1.1.13 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0

OS: Debian Workworm/SID

yaronkoren commented 1 week ago

Alright, that looks reasonable. Could you try calling sudo docker compose up -d instead? The lack of sufficient privileges is often the cause of these sorts of issues.

ozz-project commented 1 week ago

i tried it with sudo... the same as before