티스토리 뷰
Environment
- AWS Lambda
- python 2.7
Error
- errno 30 read-only file system
Situation
- AWS Lambda에서 S3에 있는 파일을 다운로드 받을때 해당 에러가 발생했다.
import boto3
FILE_PATH = 'image/atv_rider0001.jpg'
BUCKET_NAME = 'flxr-yolo'
KEY = 'image/atv_rider0001.jpg'
client = boto3.client('s3')
client.download_file(BUCKET_NAME, KEY, FILE_PATH)
Solution
- Code에서 FILE_PATH는 S3의 파일을 다운받아 저장되는 곳을 지정하는데 AWS Lambda에서는 오직 /tmp 에만 파일을 작성할 수 있다.
- 따라서 FILE_PATH = '/tmp/file_name' 형식으로 고쳐주면 제대로 작동한다.
Ref
'Computer Science > 에러 기록 정리' 카테고리의 다른 글
[tf, keras] 'ModelCheckpoint' object has no attribute '_implements_train_batch_hooks' (0) | 2020.06.29 |
---|---|
Colab과 Google drive를 사용하면서 일어난 불편한 일들 (4) | 2020.06.28 |
[boto3]An error occurred (404) when calling the HeadObject operation (0) | 2019.11.13 |
[boto3]The AWS Access Key Id you provided does not exist in our records. (0) | 2019.11.12 |
[boto3]ImportError: No module named boto3 (0) | 2019.11.12 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- tensorflow
- AWS
- S3
- nlg
- librosa
- TF2.0
- Tensorflow2.0
- MIT
- aws cli
- 알고리즘 강의
- 핵심어 검출
- netron
- BOJ
- lambda
- 6.006
- stft
- keras
- nlp
- 인공지능 스피커 호출
- 시계열
- nlp 트렌드
- LSTM
- boto3
- 알고리즘
- wavenet
- 모델 시각화
- MFCC
- Introduction to Algorithm
- 오디오 전처리
- RNN
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
글 보관함