You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dec 12 21:54:59 ip-172-31-18-78 ggipcd[94082]: I[ggipcd] entry.c:46: gg-ipc.socket
Dec 12 21:54:59 ip-172-31-18-78 ggipcd[94082]: I[ggipcd] entry.c:47: /var/run/greengrass/root/gg-ipc.socket
But the socket is created in /var/lib/greengrass instead of /var/run/greengrass/root
ubuntu@ip-172-31-18-78:~$ ls /var/lib/greengrass/
config.db gg-ipc.socket
ubuntu@ip-172-31-18-78:~$ ls /var/run/greengrass/root/
ggl.com.example.ExportVars.install.service ggl.com.example.ExportVars.script.run packages
ggl.com.example.ExportVars.script.install ggl.com.example.ExportVars.service work
The problem is that the systemd file for the component has the wrong location set in AWS_GG_NUCLEUS_DOMAIN_SOCKET_FILEPATH_FOR_COMPONENT
[Unit]
StartLimitInterval=3600
StartLimitBurst=3
Description=A component that only export the vars passed to it.
Wants=ggl.core.ggipcd.service
After=ggl.core.ggipcd.service
[Service]
Restart=on-failure
RestartSec=1
WorkingDirectory=/run/greengrass/root/work/com.example.ExportVars
Environment="AWS_GG_NUCLEUS_DOMAIN_SOCKET_FILEPATH_FOR_COMPONENT=/run/greengrass/root/gg-ipc.socket"
Type=exec
ExecStart=/usr/local/bin/recipe-runner -n com.example.ExportVars -v 1.0.11 -p /run/greengrass/root/ggl.com.example.ExportVars.script.run
User=root
Group=root
[Install]
WantedBy=greengrass-lite.target
Remediation
Always set root directory as /var/lib/greengrass
The text was updated successfully, but these errors were encountered:
Problem statement
When rootPath is set to a different directory
/var/run/greengrass/root
ggipcd logs the correct path,
But the socket is created in /var/lib/greengrass instead of /var/run/greengrass/root
The problem is that the systemd file for the component has the wrong location set in
AWS_GG_NUCLEUS_DOMAIN_SOCKET_FILEPATH_FOR_COMPONENT
Remediation
Always set root directory as
/var/lib/greengrass
The text was updated successfully, but these errors were encountered: