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

can't resolve host name #11

Open
Tjomas opened this issue Mar 3, 2017 · 3 comments
Open

can't resolve host name #11

Tjomas opened this issue Mar 3, 2017 · 3 comments

Comments

@Tjomas
Copy link

Tjomas commented Mar 3, 2017

Hi, if i use waitforit within a docker-compose project, the waitforit app can't resolve the database hostname on the first run.

I use the following command:
waitforit -full-connection=tcp://database:3306 -timeout=20 -debug

On the first run the output is "ping TCP: 0.0.0.0:3306" until the 20 secound timeout comes in.
On the secound run the output is "ping TCP: database:3306".

Setup: mysql:8 + node:7-alpine
Node depends on the mysql database in the docker-compose.yml.

Is it possible to resolve the hostname on every request and not at the first start?

@maxclaus
Copy link
Owner

maxclaus commented Mar 3, 2017

That is weird. Why is the first time resolving the hostname to 0.0.0.0 and the other times it isn't? Could you provide a simple docker-compose so I can reproduce that?

@maxclaus
Copy link
Owner

maxclaus commented Sep 2, 2018

Closing for no updates. Please reopen it if you have new details.

@maxclaus maxclaus closed this as completed Sep 2, 2018
@Marek00Malik
Copy link

Marek00Malik commented Apr 15, 2019

Could you please reopen this ? Either it is a problem with my setup or the tool is wrongly recognising the host.

Example in:
https://github.com/Marek00Malik/sqs-wait-for-it-example

Just run: ./run_example.sh -r test

Keep geting:

2019/04/15 06:36:54 Down: localstack:4571
2019/04/15 06:36:54 dial tcp: lookup localstack on 127.0.0.11:53: no such host

While running it outside from docker-compose, running locally:
./wait-for-it.sh -address=http://localhost:4571 -timeout=20 -- echo "SQS is READY"
is running OK.

@maxclaus maxclaus reopened this Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants