내용으로 건너뛰기

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

질문됨 5년 전445회 조회
2개 답변
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
답변함 5년 전
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

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠