IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
25.6k stars 1.39k forks source link

[Bug] Recent update causes docker containers to stop functionning? #1832

Closed littleblack111 closed 4 months ago

littleblack111 commented 5 months ago

Describe the bug

A clear and concise description of what the bug is.

80% of the docker containers stopped working

To Reproduce Update to newest update

Steps to reproduce the behavior:

If you try to start then you will see error like: 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 cgroup config for procHooks process: failed to write "536870912": write /sys/fs/cgroup/memory/docker/7d97ad9c62d75eefa49030b582768513f41c444305eeffb27419b150e6b72f1f/memory.soft_limit_in_bytes: operation not supported: unknown

Expected behavior

docker containers to be working

A clear and concise description of what you expected to happen.

https://www.reddit.com/r/CasaOS/comments/1cu6t9f/80_docker_containers_suddently_stopped_working/

Screenshots

https://preview.redd.it/80-docker-containers-suddently-stopped-working-v0-4w1an2luzz0d1.png?width=1004&format=png&auto=webp&s=82dac720fc96e29b163f8619c74e8f1fbaa5b833

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

 - OS: Ubuntu
 - Browser chromium based
 - Version v0.4.9

System Time

Run timedatectl and share the output

               Local time: Sat 2024-05-18 16:17:40 HKT
           Universal time: Sat 2024-05-18 08:17:40 UTC
                 RTC time: Sat 2024-05-18 08:17:40
                Time zone: Asia/Hong_Kong (HKT, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Logs

Run following command to collect corresponding logs:

sudo journalctl -xef -u casaos-gateway
sudo journalctl -xef -u casaos-user-service
sudo journalctl -xef -u casaos-local-storage
sudo journalctl -xef -u casaos-app-management
sudo journalctl -xef -u casaos.service

casaos-user-service.txt casaos-local-storage.txt casaos-gateway.txt casaos-app-managment.txt casaos.txt

Additional context

Add any other context about the problem here. just updated, worked for a few hours then this started happening. https://www.reddit.com/r/CasaOS/comments/1cu6t9f/80_docker_containers_suddently_stopped_working/ If you are a Zimaboard user, make it explicit with when you got your Zimaboard.

littleblack111 commented 4 months ago

it's a week already? Anyone?

littleblack111 commented 4 months ago

[https://www.reddit.com/r/CasaOS/comments/1cu6t9f/80_docker_containers_suddently_stopped_working/](> Solved guys.

Solutions:

To enable cgroups accounting, you must boot Linux with the command line parameters cgroup_enable=memory swapaccount=1.

if that didnt work, and you're using a real time kernel, then try a normal/generic kernel

If that still didn't work, then downgrade the kernel)