Devo919 / Gewechat

微信机器人框架,个人微信二次开发,最简单易用的免费二开框架,微信ipad协议
Apache License 2.0
129 stars 28 forks source link

[Fix] Failed to allocate manager object, freezing #9

Open tu1h opened 1 month ago

tu1h commented 1 month ago

有些 OS 上 docker run 该镜像后日志出现 Failed to allocate manager object, freezing,该问题产生原因可能是当前系统只挂载了 cgroupv2,可用 mount | grep cgroup 检查。

How to fix

可让系统同时兼容 cgroup v1 和 v2

  1. edit /etc/default/grub
    GRUB_CMDLINE_LINUX="SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0"
  2. regenerate grub.cfg
    grub-mkconfig -o /boot/grub/grub.cfg
  3. reboot system
1100111GTH commented 1 month ago

可行

tu1h commented 2 weeks ago

Someone who struggles with this problem can use the rebuilding image ghcr.io/tu1h/wechotd/wechotd or registry.cn-chengdu.aliyuncs.com/tu1h/wechotd