Comments (11)
The current latest
causes the container's health checks to fail, although I think the container itself "works" correctly otherwise, i.e. it will response to AWS API requests as expected.
With this docker-compose.yml:
---
version: '3.8'
services:
localstack:
image: localstack/localstack:latest
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- DEBUG=1
...running docker compose up --wait
fails because the container never becomes healthy. There's nothing useful in the container logs, but when I start a shell in the container and manually invoke the healthcheck command (taken from here) directly I get an error, presumably related to the big code restructure you mentioned:
# ./bin/localstack status services --format=json
Traceback (most recent call last):
File "/opt/code/localstack/./bin/localstack", line 23, in <module>
main()
File "/opt/code/localstack/./bin/localstack", line 17, in main
from localstack.cli import main
ModuleNotFoundError: No module named 'localstack'
from localstack.
Thanks @GREsau, great catch. should be fixed with #10894
from localstack.
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.
from localstack.
Using the tag localstack/localstack:3.4.0 seems to fix things
from localstack.
Confirmed that docker run localstack/localstack
seems to break in a similar way
from localstack.
Thank you for reporting this issue.
There was a pretty big code restructure that just merged in today. While the image seems to be working and I can start the latest image locally, it is possible that you are running into some caching issues.
Can you try deleting your cache before re-triggering and let us know if that fixed the issue.
Also, docker run localstack/localstack
is expected to show this error as you would need to mount the docker socket for docker to be available. See documentation
from localstack.
I can confirm there's a very loud exception about the docker socket not being mounted, but localstack still starts up fine.
are you having issues actually using localstack?
I don't think this has anything to do with the code restructuring. my guess would be that it has to do with the recent docker sdk upgrade from 6 to 7 https://github.com/localstack/localstack/pull/10853/files, but TBC
from localstack.
The issue reported by @robo-corg is actually related to #9761 and is expected behavior according to this change. Again I believe it's a non-issue since it's not affecting localstack in any way, but it's misleading because it suggests the startup failed. I think we should be providing better output. Something like:
LocalStack Docker information: Failed to inspect the LocalStack docker container. This is likely
because the docker socket was not mounted into the container. Without access to the docker socket,
LocalStack will not function properly. Please consult the LocalStack documentation on how to correctly
start up LocalStack, or run localstack with DEBUG=1 to find out why this error occurred.
from localstack.
Issue I encountered is that github considers the container to have not started up successfully. I didn't try actually using it since the tests never ran.
from localstack.
thanks for the clarification. in which case i think the startup issue you really had is fixed with #10894. the stack traces you reported are definitely misleading and are addressed in #10896
from localstack.
i'm closing this issue since the underlying issue (the healthcheck) has been fixed.
from localstack.
Related Issues (20)
- Support for cloudwatch logs in Appsync missing HOT 1
- bug: repeated CDK deploy fails with InvalidChangeSetStatus
- resourcegroupstaggingapi does not return tagged resources HOT 2
- bug: Events.Rule is not filtering by EventPattern
- bug: Lambda invocations don't support X-Ray Passive Tracing (via x-amzn-trace-id header)
- Installation via Helm not working HOT 1
- Eventbridge API Destination Trigger Not Working with OAuth Authorization HOT 2
- feature request: Align DynamoDB Streams user_identity field behavior with AWS for TTL-triggered deletions HOT 3
- bug: Invalid type for parameter ProviderDetails.IDPSignout, value: False, type: <class 'bool'>, valid types: <class 'str'> HOT 1
- feature request: cdklocal to use esbuild for local builds HOT 1
- feature request: cdklocal to respect CDK_DOCKER
- feature request: support sse-c in s3 HOT 2
- bug: Docker mount missing in Helm chart
- Error: "cannot execute: required file not found" when running inside ARM64 based Alpine 3.19 container. HOT 1
- bug: Unable to create AWS::Serverless::Function via Cloud Formation Template HOT 1
- bug: Unable to use Amazon Bedrock on lambda function. HOT 4
- bug: Api Gateway V1 custom authorizer CDK re-deployments do not replace the authorizer HOT 1
- bug: Incorrect Yaml formatting that causes CloudFormation to fail to create/update stack goes unnoticed HOT 1
- bug: NetworkInterfaceIds fails to resolve in describeNetworkInterfaces custom resource HOT 1
- bug: Missing LoggingConfiguration in Stepfunctions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localstack.