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

Failed to load zones (reason: enoent) #15

Open
volkanunsal opened this issue Sep 26, 2020 · 2 comments
Open

Failed to load zones (reason: enoent) #15

volkanunsal opened this issue Sep 26, 2020 · 2 comments

Comments

@volkanunsal
Copy link

volkanunsal commented Sep 26, 2020

After building the release and running the console command,

$ _build/default/rel/service_discovery/bin/service_discovery console

...I'm getting the following error:

Failed to load zones (reason: enoent)

Screen Shot 2020-09-26 at 4 51 30 PM

It seems to be coming from erldns_zone_loader.erl. Any insight in fixing it would be very much appreciated.

@tsloughter
Copy link
Member

That is an "error" log from erldns but isn't actually an error. I have meant to patch erldns to at least be configurable to not log this as an error.

Since service_discovery does not use a static file of zones there is no file to load, it isn't required by erldns but does result in that log despite it being just fine.

@volkanunsal
Copy link
Author

volkanunsal commented Sep 27, 2020

I'm also getting 400 on PUT and 404 on GET requests.

curl -v -XPUT http://localhost:3000/service -d '{"name": "webapp2", "attributes": {"attr-1": "value-2"}}'

* upload completely sent off: 56 out of 56 bytes
< HTTP/1.1 400 Bad Request
< Connection: Keep-Alive
< Content-Length: 21

I thought it might be related to this error.

This request works fine when I use the Dockerfile to start the app. I guess it's related to the lack of a database connection.

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