The logs are not telling a lot here, could you try to explain what you are doing and how are you interacting with the LocalStack container?
Could you also try to add the following environment variable to see if that would fix your issue? GATEWAY_SERVER=twisted (this is now the default with the latest image).
If you’re only using the S3 service, you could also use the S3-only docker image, available with the following tag: localstack/localstack:s3-latest.
Can you please help me with the below queries now?
I am using 3.4 version. Is not that the latest version? If yes then why I have to add GATEWAY_SERVER=twisted seperately?
What does GATEWAY_SERVER=twisted do?
I am using S3 only. How can I use localstack/localstack:s3-latest? Is there a way for me to specify the version in localstack/localstack:s3-latest instead of using latest always. My goal is to first test latest and then move to that version?
localstack/localstack:s3-latest is not working with init-aws.sh I specified in my last reply. Is there a way for me to make this work?
3.4 is our latest tagged version. We release a latest version containing all the changes we currently develop, and our next tagged release will be 3.5, in early June. GATEWAY_SERVER=twisted will not be needed then, as it will be default.
GATEWAY_SERVER=twisted changes our underlying HTTP server used to serve HTTP requests. We’ve had issue with our previous implementation and worked lately to fix those issues, which also gave performance improvements. As it seems it fixes your issue, I’d advice you to keep your working configuration, and once we release 3.5, just remove the configuration flag as it will be default.
& .4 For now, the advantage of using the S3-only Docker image is that it is lightweight. Sadly, being lightweight means we removed some utilities, like the AWS CLI, which is why your init scripts are not working anymore. You would need to run pip install awscli as the first command in your bash script to make it work.
Coming back to the S3 image tags, we currently do not release tagged versions of the S3 image, and only have the s3-latest tag. Knowing this for now, I’d suggest you continue working with localstack/localstack:3.4 or localstack/localstack:latest.
I hope this answers your question, please do not hesitate if you have more!