Menu
AWS Greengrass
Developer Guide

Start Your AWS Greengrass Core to Connect It to the Cloud

GGC v1.0.0GGC v1.1.0
GGC v1.0.0

Run the following command from the /greengrass directory to start your core and enable a cloud connection to AWS IoT.

Copy
sudo ./greengrassd start

If the Greengass daemon starts successfully, you should see the following output:

Copy
sudo /greengrass/greengrassd start Setting up greengrass daemon Validating execution environment ggc_group:x:119: Found cgroup subsystem: cpu Found cgroup subsystem: cpuacct Found cgroup subsystem: blkio Found cgroup subsystem: memory Found cgroup subsystem: devices Found cgroup subsystem: freezer Found cgroup subsystem: net_cls Starting greengrass daemon PID: 1306 Greengrass daemon started

If you see the following error,

Copy
The cgroup subsystem is not mounted: cpuset

run this script to mount enabled cgroups:

Copy
# used script from: https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount sudo bash ./script.sh

Note

Linux control groups (cgroups) are used to limit the resources that can be accessed by Lambda functions that run on your AWS Greengrass core device.

You can automatically reconfigure the Lambda cgroup when you reboot your AWS Greengrass core device by adding cgroup /sys/fs/cgroup cgroup defaults 0 0 to the /etc/fstab file on your AWS Greengrass core device.

GGC v1.1.0

Run the following command from the /greengrass/ggc/core directory to start your core and enable a cloud connection to AWS IoT.

Copy
sudo ./greengrassd start

If the Greengass daemon starts successfully, you should see the following output:

Copy
sudo /greengrass/greengrassd start Setting up greengrass daemon Validating execution environment ggc_group:x:119: Found cgroup subsystem: cpu Found cgroup subsystem: cpuacct Found cgroup subsystem: blkio Found cgroup subsystem: memory Found cgroup subsystem: devices Found cgroup subsystem: freezer Found cgroup subsystem: net_cls Starting greengrass daemon PID: 1306 Greengrass daemon started

If you see the following error,

Copy
The cgroup subsystem is not mounted: cpuset

run this script to mount enabled cgroups:

Copy
# used script from: https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount sudo bash ./script.sh

Note

Linux control groups (cgroups) are used to limit the resources that can be accessed by Lambda functions that run on your AWS Greengrass core device.

You can automatically reconfigure the Lambda cgroup when you reboot your AWS Greengrass core device by adding cgroup /sys/fs/cgroup cgroup defaults 0 0 to the /etc/fstab file on your AWS Greengrass core device.