Strange behaviour after fetching 1MB file from S3 in Lambda function (Node.js)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- aws, docker, javascript, node.js
- Ambito
- cloud, devops, infrastructure
Direzione di ricerca
Start with docker-compose.yml and the LocalStack 0.9.0 configuration, especially the Docker-based Lambda executor, mounted data directory, and Docker socket. Reproduce the repeated S3 and Lambda workflow on macOS, inspect the timeout behavior, and consider the issue done when the bucket can be created after repeated cleanup cycles without restarting Docker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Steps:
- Create a bucket
- Deploy Lambda function (~20MB) with
ffmpeg - Call ffprobe using S3 signed URL:
const input = s3.client.getSignedUrl('getObject', {
Bucket: 'my-bucket',
Key: 'video_1mb.mp4',
Expires: 1000
})
const metadata = await (new Promise((resolve, reject) => {
ffmpeg.ffprobe(input, async (err, data) => {
if (err) {
return reject(err)
}
resolve(data)
})
}))
- Stop & Destroy all containers and images
- Remove Localstack directory
./localstack
// Repeat 1 - 5 (~5 times) - Start localstack
- Try to create the S3 bucket
- Got a timeout error:
make_bucket failed: s3://my-bucket Read timeout on endpoint URL: "http://localhost:4572/my-bucket"
Workaround: Restart Docker daemon
docker-compose.yml
version: '3.7'
services:
localstack:
image: localstack/localstack:0.9.0
container_name: localstack
ports:
- '4567-4593:4567-4593'
- '8080:8080'
environment:
- SERVICES=iam,lambda,s3,dynamodb,apigateway
- DEBUG=yes
- DATA_DIR=/tmp/localstack/data
- PORT_WEB_UI=8080
- LAMBDA_EXECUTOR=docker-reuse
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- './localstack:/tmp/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
Host platform: MacOS
Localstack image version: 0.9.0
Docker version: 18.09.2, build 6247962
docker-compose version: 1.23.2, build 1110ad01
- Lingua principale
- JavaScript
- Stelle
- 1.4k
- Fork
- 185
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di motdotla/node-lambda
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
motdotla/node-lambda#840 · 1 commento ·
-
Migration to AWS SDK v3 Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
motdotla/node-lambda#641 · 6 commenti · 2 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
motdotla/node-lambda#618 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
motdotla/node-lambda#544 · 1 reazione ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
motdotla/node-lambda#537 · 2 commenti · 1 reazione ·
Tutte le issue di motdotla/node-lambda
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
curation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
aemdemos/patients-stryker#253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
clerk/javascript#9852 ·