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

backend="[varnish]:8443" fails #5

Closed
sudazzle opened this issue Aug 18, 2021 · 4 comments
Closed

backend="[varnish]:8443" fails #5

sudazzle opened this issue Aug 18, 2021 · 4 comments

Comments

@sudazzle
Copy link

with docker-compose varnish and hitch as a service. configuring backend="[varnish]:8443" exits hitch with following error:
hitch_1 | 20210818T221921.192188 [ 1] {getaddrinfo-backend}: Name or service not known.

@gquintard
Copy link
Collaborator

hum, so I would expect hitch to resolve the address as it needs to open the connection, so that shouldn't prevent it from starting. But if it does, you should report it to https://github.com/varnish/hitch

But anyway, it seems that the varnish container isn't up yet, so the hostname resolution fails, can you try using depends_on to tell the hitch container to wait on the varnish one (same way it's done here) If it solves it, please consider sending a PR to https://github.com/varnish/toolbox

@gquintard
Copy link
Collaborator

after testing I can confirm this, and it's not a docker-compose issue, it's that hitch really wants the address to be resolved to be resolved before starting.

Can you open a hitch issue please? For the container use-case, depends_on should work, but I'll wait for your confirmation before closing this

@sudazzle
Copy link
Author

depends_on works.

@gquintard
Copy link
Collaborator

thanks @sudazzle !

bubbled it up upstream: varnish/hitch#358
bubbled it down downstream: varnish/toolbox@fda56d3

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

2 participants