본문 바로가기

AWS/PROJECT

[AWS Greengrass] AWS IoT Greengrass 라즈베리파이 배포 오류

728x90

대충 그린그래스 개발자가이드 버전1 중....

뜻하지 않은 오류를 맞닥뜨렸다!

 

https://engine.tistory.com/60?category=1044879 

 

[중간점검..seminarrr...,,] AWS Greengrass

디바이스 섀도우(device shadow) AWS 왈 'AWS IoT Core에서는 언제든 확인하거나 설정할 수 있도록 연결된 디바이스의 최신 상태를 저장하므로, 애플리케이션에는 디바이스가 언제나 온라인인 것처럼 표

engine.tistory.com

https://engine.tistory.com/59?category=1044879 

 

AWS Greengrass Lamdba

IoT는 현재 일어나고 있는 일들을 알 수 있는 기술 AWS IoT Core : 디바이스가 연결되고 메시지들을 받고 메시지를 보내는 역할, 들어온 메시지를 AWS 백엔드에 라우팅해주는 역할 AWS Greengrass : IoT를

engine.tistory.com

 

AWS IoT 그룹에서 배포(deploy)가 안된 것..

그냥 예제 람다함수도 안 되어서 대충 무시하고 모듈5를 진행 중이었는데 

 

여기 이 부분.. 8번에서 배포가 여전히 안 된 것.......하.........

빡쳐서 찾아봤다

원인은 :

runtime.log 파일을 확인해서 알 수 있었는데

에러가 the following cgroup subsystems are not mounted devices memory 이거였다

이게 뭔지...... 질문도 해봤는데 그땐 몰랐지만 지금은 안다.,,.,.

 

https://repost.aws/questions/QUS_597-ATSAKjWyqnpKNOpw/aws-greengrass-lambda-function-connection

 

aws greengrass lambda function connection | AWS re:Post

Hello, there was a problem connecting the Greengrass Lambda function https://docs.aws.amazon.com/ko_kr/greengrass/v1/developerguide/configs-core.html This is the tutorial I was working on, but ther...

repost.aws

내가 올렸던 질문...

 

https://github.com/aws-samples/aws-greengrass-samples/issues/41

 

cgroups check does not work with cgroups2 · Issue #41 · aws-samples/aws-greengrass-samples

At: https://github.com/aws-samples/aws-greengrass-samples/blob/master/greengrass-dependency-checker-GGCv1.11.x/check_cgroups.sh#L202 ... the check looks for mounts of type cgroup but not cgroup2. F...

github.com

이 깃허브 글을 통해 해결했다...

 

sudo nano /boot/cmdline.txt

위 명령어를 터미널에 입력해서 다음과 같이 파일을 수정한다...

엔터키 눌러서 다음줄에 삽입하는 것이 아니라!!! 그 줄 그대로!!! 띄어쓰기만!!! 엔터키 금지!!! 띄어쓰기 해서.. 추가로 작성해주면 된다...

그리고 reboot해주기..

 

그랬더니 됐다ㅠㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ

대충 찾아보니 aws greengrass 문제가 아니라 리눅스 운영체제의 cgroup 문제였던듯... 와우....... 넘 감격스러운 것............

 

cgroup : cpu, memory, I/O 등 자원을 프로세스 그룹 단위로 제어할 수 있는 리눅스 커널 기능, 프로세스들이 사용할 수 있는 컴퓨팅 자원들을 제한하고 격리시킬 수 있는 기능

728x90