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: localstack won't start ( M1, cli 3,4.0, Docker Desktop 4.30.0 ) #10905

Closed
1 task done
gkatsanos opened this issue May 27, 2024 · 5 comments
Closed
1 task done

bug: localstack won't start ( M1, cli 3,4.0, Docker Desktop 4.30.0 ) #10905

gkatsanos opened this issue May 27, 2024 · 5 comments
Labels
status: backlog Triaged but not yet being worked on status: triage needed Requires evaluation by maintainers type: bug Bug report

Comments

@gkatsanos
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

$ brew install localstack/tap/localstack-cli

==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 3 taps (supabase/tap, homebrew/core and homebrew/cask).
==> New Formulae
apache-flink-cdc       cloudflare-cli4        llama.cpp              ocicl                  vedic
==> New Casks
bias-fx                      font-playwrite-ca            font-playwrite-in            font-playwrite-us-modern
blitz-gg                     font-playwrite-de-la         font-playwrite-it-moderna    font-playwrite-us-trad
font-playwrite-au-nsw        font-playwrite-es            font-playwrite-it-trad       font-playwrite-za
font-playwrite-au-qld        font-playwrite-es-deco       font-playwrite-mx            hopper-disassembler
font-playwrite-au-sa         font-playwrite-fr-moderne    font-playwrite-ng-modern     mac-mouse-fix@2
font-playwrite-au-tas        font-playwrite-id            font-playwrite-nz            nessus
font-playwrite-au-vic        font-playwrite-ie            font-playwrite-tz

You have 4 outdated formulae installed.

==> Fetching localstack/tap/localstack-cli
==> Downloading https://github.com/localstack/localstack-cli/releases/download/v3.4.0/localstack-cli-3.4.0-darwin-ar
Already downloaded: /Users/gkatsanos/Library/Caches/Homebrew/downloads/7052f16917a6149cadd17ea908a6cb0e99419ed5316a5adce4e54fce8207140f--localstack-cli-3.4.0-darwin-arm64.tar.gz
==> Installing localstack-cli from localstack/tap
🍺  /opt/homebrew/Cellar/localstack-cli/64: 890 files, 50.6MB, built in 1 second
==> Running `brew cleanup localstack-cli`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
~ $ localstack start -d

     __                     _______ __             __
    / /   ____  _________ _/ / ___// /_____ ______/ /__
   / /   / __ \/ ___/ __ `/ /\__ \/ __/ __ `/ ___/ //_/
  / /___/ /_/ / /__/ /_/ / /___/ / /_/ /_/ / /__/ ,<
 /_____/\____/\___/\__,_/_//____/\__/\__,_/\___/_/|_|

 💻 LocalStack CLI 3.4.0
 👤 Profile: default

[16:46:09] starting LocalStack in Docker mode 🐳                                                   localstack.py:495
           preparing environment                                                                   bootstrap.py:1269
           configuring container                                                                   bootstrap.py:1277
           container image not found on host                                                       bootstrap.py:1258
[16:46:57] download complete                                                                        bootstrap.py:1262

image

~ $ localstack status services
❌ Error: could not connect to LocalStack health endpoint at http://localhost.localstack.cloud:4566
~ [1]$ sudo lsof -i :53
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mDNSRespo 256 _mdnsresponder 59u IPv4 0x1a366424b00a1f85 0t0 UDP *:domain
mDNSRespo 256 _mdnsresponder 60u IPv6 0x1a366424b00a5395 0t0 UDP *:domain
mDNSRespo 256 _mdnsresponder 61u IPv4 0x1a36642e497c145d 0t0 TCP *:domain (LISTEN)
mDNSRespo 256 _mdnsresponder 62u IPv6 0x1a366424b15a5045 0t0 TCP *:domain (LISTEN)
~ $

Expected Behavior

container starts

How are you starting LocalStack?

With the localstack script

Steps To Reproduce

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

docker run localstack/localstack

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

awslocal s3 mb s3://mybucket

Environment

- OS: Mac 12.6.2 (21G320)
- LocalStack:
  LocalStack version: 3.4.0
  LocalStack Docker image sha: bd02bb6f1e18574996ec995f882ef09422dbc26714453346a666a298965a8261 
  LocalStack build date: 
  LocalStack build git hash:

Anything else?

🤷

@gkatsanos gkatsanos added status: triage needed Requires evaluation by maintainers type: bug Bug report labels May 27, 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
Copy link

Thank you for bringing this to our attention. We are aware of the recent changes in Docker Desktop and currently suggest the following workarounds:

  1. Uncheck the corresponding box in Docker Desktop Settings:
    Follow the steps illustrated in the screenshot or in our documentation here to disable it.
    image

  2. Start LocalStack with a specific DNS address:
    Run the following command:

    DNS_ADDRESS=0 localstack start
  3. Modify your docker-compose.yml file:
    Remove port 53 as indicated in our standard docker-compose.yml file.

Please let us know if these solutions resolve the issue for you. If you need further assistance, feel free to reach out.

@rafrafek
Copy link

rafrafek commented Jun 7, 2024

Is it resolved so that it works without changing the Docker settings, or is it resolved so that it now shows an error message and instructions to fix it in the terminal instead of starting LocalStack in Docker mode 🐳 and hanging forever?

@MarcelStranak
Copy link

@rafrafek, we have updated the localstack cli as well, you can find the update in the docs as well localstack/docs#1325.

@rafrafek
Copy link

I see, so it will no longer hang forever even with --host-dns thanks to removing the broken detection code in #11011

  1. The port usability detection, which was broken in the docker desktop case, is removed now. This means if a user with port 53 already taken tries to set the flag, the docker exception explaining the failure to bind the port will be returned.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: backlog Triaged but not yet being worked on status: triage needed Requires evaluation by maintainers type: bug Bug report
Projects
None yet
Development

No branches or pull requests

5 participants