Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: hanging during docker run with docker v4.30.0 #10832

Open
1 task done
cbortz opened this issue May 15, 2024 · 4 comments
Open
1 task done

bug: hanging during docker run with docker v4.30.0 #10832

cbortz opened this issue May 15, 2024 · 4 comments
Assignees
Labels
area: docker Use Docker with LocalStack aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on type: bug Bug report

Comments

@cbortz
Copy link

cbortz commented May 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to start localstack, using DEBUG=1 localstack start, the process hangs and never starts localstack.

Here's a snippet:

2024-05-15T17:24:12.021 DEBUG --- [  MainThread] plux.runtime.manager       : loading plugin localstack.hooks.configure_localstack_container:_mount_machine_file
2024-05-15T17:24:12.021 DEBUG --- [  MainThread] l.u.c.docker_cmd_client    : Run container with cmd: ['docker', 'run', '--rm', '--entrypoint', 'sh', '-p', '0.0.0.0:53:53/udp', '-p', '0.0.0.0:53:53', 'localstack/localstack', '-c', 'echo test123']
2024-05-15T17:24:12.021 DEBUG --- [  MainThread] localstack.utils.run       : Executing command: ['docker', 'run', '--rm', '--entrypoint', 'sh', '-p', '0.0.0.0:53:53/udp', '-p', '0.0.0.0:53:53', 'localstack/localstack', '-c', 'echo test123']

full-log.txt

Expected Behavior

Localstack should start.

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

EAGER_SERVICE_LOADING=1 SERVICES="s3" localstack start -d

Environment

- OS: MacOS Sonoma 14.4.1
- LocalStack: 3.4.0 (via Homebrew)
- Docker: 4.30.0

Anything else?

Rolling Docker back to v4.29.0 works fine.

@cbortz cbortz added status: triage needed Requires evaluation by maintainers type: bug Bug report labels May 15, 2024
@localstack-bot
Copy link
Collaborator

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.

@MarcelStranak MarcelStranak added area: docker Use Docker with LocalStack aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels May 16, 2024
@MarcelStranak
Copy link

Hello @cbortz,

The issue should be addressed in Docker Desktop 4.30.0.

A similar case was reported in #10340 and resolved by the Docker team as seen in docker/for-mac#7207.

I recommend trying our minimal S3 image with docker pull localstack/localstack:s3-latest, tailored to your specific S3 service usage.

@MarcelStranak MarcelStranak self-assigned this May 16, 2024
@Igormandello
Copy link

@cbortz

I'm having the same issue on Docker Desktop v4.30.0 and was able to solve it going to my Docker Desktop Settings > Resources > Network and disable Use kernel networking for UDP.

The interesting part is that it was suggested here, and didn't seem to fix the problem in that version.

@MarcelStranak
Copy link

Thank you, @Igormandello, for the information.

We are now aware of the issue and will investigate a possible resolution.

Meanwhile, you can also switch to our default docker-compose.yml, as port 53 is not assigned, allowing LocalStack to start without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docker Use Docker with LocalStack aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on type: bug Bug report
Projects
None yet
Development

No branches or pull requests

4 participants