IPC connection error

0

We just started implementing a dockerized greengrass v2 component, inspired by - https://github.com/awslabs/aws-greengrass-labs-local-web-server

When we do "self._ipc_client: GreengrassCoreIPCClient = awsiot.greengrasscoreipc.connect()" we get the following error:

`"``14:07:51 - robot.system - INFO - Start Init IPC
Traceback (most recent call last):
File "/usr/local/bin/start-farm", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/command/farm.py", line 139, in main
mqtt: IPC = IPC(config, logger)
File "/usr/local/lib/python3.10/site-packages/common/ipc.py", line 75, in __init__
self._ipc_client: GreengrassCoreIPCClient = awsiot.greengrasscoreipc.connect()
File "/usr/local/lib/python3.10/site-packages/awsiot/greengrasscoreipc/__init__.py", line 65, in connect
connect_future = connection.connect(lifecycle_handler)
File "/usr/local/lib/python3.10/site-packages/awsiot/eventstreamrpc.py", line 449, in connect
raise e
File "/usr/local/lib/python3.10/site-packages/awsiot/eventstreamrpc.py", line 437, in connect
protocol.ClientConnection.connect(
File "/usr/local/lib/python3.10/site-packages/awscrt/eventstream/rpc.py", line 305, in connect
_awscrt.event_stream_rpc_client_connection_connect(
RuntimeError: 44 (AWS_ERROR_FILE_INVALID_PATH): Invalid file path."
`

Any idea where this comes from?

Thanks !!

AWS
SUPPORT ENGINEER
Harsh_S
asked 2 years ago530 views
1 Answer
1

You can check https://github.com/awslabs/aws-greengrass-labs-nodered-docker/blob/main/recipe.yaml for an example on which environment variables to pass and volumes to mount in the container to enable IPC communication.

AWS
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions