* failed to open vchiq instance

0

Hi,

I was trying to do edge ML following the instruction below.
https://docs.aws.amazon.com/greengrass/v1/developerguide/ml-dlc-console.html

I had no problem doing it with Lambda without GG container, but had the error message '* failed to open vchiq instance' when trying to do the same thing with Lambda inside of the GG container.

I used 0(root) for UID/GID for Lambda. I added camera device and ML model as resources to GGG. I also chmod 777 /dev/vchiq on my RaspberryPi.

I'm stuck. I'd be happy if I could get some help:)

asked 4 years ago391 views
2 Answers
0

Hi,

Please make sure you follow the instructions for containerized lambda here https://docs.aws.amazon.com/greengrass/v1/developerguide/ml-dlc-console.html#ml-console-dlc-config-lambda. Specifically choose Use group default for Run as instead of using 0 for UID/GUID.

Also make sure you're adding both /dev/vcsm and /dev/vchiq as resources to the GG group with correct file access permissions and Lambda function affiliations, as documented here https://docs.aws.amazon.com/greengrass/v1/developerguide/ml-dlc-console.html#ml-console-dlc-add-cam-resource.

Thanks,
Anmol

AWS
answered 4 years ago
0

Anmol,

Thank you again. The problem was solved! I thought running Lambda as root clears all the permission problems.

I ran Lambda as group default(ggc_user), after adding /dev/vcsm and /dev/vchiq resource to the GGG, and it worked.

It took a while for me to understand adding volume and device resource to GGG is purely for the sake of container, while adding ML model resource to GGG is not.

Thanks:)

HM

answered 4 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