- 最新
- 投票最多
- 评论最多
Please see: https://github.com/aws-samples/aws-greengrass-samples/issues/41#issuecomment-974845635
You must explicitly disable cgroup v2 as Greengrass lambda supports only cgroup v1. You may also choose to not use Lambda or to use lambda in process mode rather than container mode.
Hey there, I'm reinitiating this thread. I'm having issues deploying a Lambda function with Greengrass container in my Raspberry Pi 4.
The issue effectively points out that the cgroups subsystems are not mounting devices and memory.
I already modified the /boot/cmdline.txt file, by adding the following: cgroup_memory=1 cgroup_enable=devices systemd.unified_cgroup_hierarchy=0 as per instructed here in https://github.com/aws-samples/aws-greengrass-samples/issues/41 and also in https://docs.aws.amazon.com/greengrass/v1/developerguide/setup-filter.rpi.html
console=tty1 console=serial0,115200 root=PARTUUID=bab074d2-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cgroup_enable=memory cgroup_memory=1 cgroup_enable=devices
systemd.unified_cgroup_hierarchy=0
However, when I'm trying to deploy the component, it still fails with the same issue:
2023-10-28T06:24:57.665Z [INFO] (pool-2-thread-42) signal_processing_greengrass_lambda: Setting up overlay tmpfs mounts. {serviceInstance=0, serviceName=signal_processing_greengrass_lambda, currentS
tate=STARTING}
2023-10-28T06:24:57.665Z [WARN] (Copier) signal_processing_greengrass_lambda: stderr. 2023/10/28 08:24:57 unable to setup worker process factories: The following cgroup subsystems are not mounted: d
evices, memory. {scriptName=services.signal_processing_greengrass_lambda.lifecycle.startup.script, serviceInstance=0, serviceName=signal_processing_greengrass_lambda, currentState=STARTING}
2023-10-28T06:24:57.666Z [INFO] (pool-2-thread-42) signal_processing_greengrass_lambda: Finding mounted cgroups.. {serviceInstance=0, serviceName=signal_processing_greengrass_lambda, currentState=ST
ARTING}
2023-10-28T06:24:57.724Z [INFO] (Copier) signal_processing_greengrass_lambda: Startup script exited. {exitCode=1, serviceInstance=0, serviceName=signal_processing_greengrass_lambda, currentState=STA
RTING}
This is the output of my cgroups configuration in the kernel
#subsys_name hierarchy num_cgroups enabled
cpuset 0 97 1
cpu 0 97 1
cpuacct 0 97 1
blkio 0 97 1
memory 0 97 1
devices 0 97 1
freezer 0 97 1
net_cls 0 97 1
perf_event 0 97 1
net_prio 0 97 1
pids 0 97 1
Hope you're able to help me since I've facing this issue for some days now 🙏
相关内容
- AWS 官方已更新 10 个月前
Please also take note that you are using Greengrass V1. Greengrass V1 is now in maintenance mode and should not be used for any reason for new development.
https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-v2-whats-new.html
thank you very much!!