Saltar al contenido

* 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:)

preguntada hace 5 años444 visualizaciones
2 Respuestas
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
respondido hace 5 años
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

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.