-
Notifications
You must be signed in to change notification settings - Fork 77
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
bind: cannot assign requested address #44
Comments
I am use |
@git-Charlie I'm not sure why this'd be happening. What is the contents of |
When I run the same command, with an empty $ docker run --rm -v $(pwd)/config:/config caddy/caddy
2020/03/11 01:44:27.150 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
2020/03/11 01:44:27.154 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["localhost:2019"]}
2020/03/11 01:44:27.155 INFO http server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server {"server_name": "srv0", "http_port": 80}
2020/03/11 01:44:27.155 INFO tls cleaned up storage units
2020/03/11 01:44:27.156 INFO autosaved config {"file": "/config/caddy/autosave.json"}
2020/03/11 01:44:27.156 INFO serving initial configuration |
Somehow |
same error |
I don't think so ,
|
I'm sure only a specific VPS provider has this problem (2 recently purchased VPS in same DC area). |
I have a new discovery
The hostname my VPS is In vps |
Aye, that would do it; a misconfigured machine. Thanks for posting the solution! |
@mholt I'm a little bit confused why caddy automatically searches for "localhost" on the search path found in /etc/resolv.conf (as example mysearchpath.example.com) and tries to resolve it (so it tries localhost.mysearchpath.example.com). I ran today in the same issue and have never seen this behaviour in other tools. |
I'm not sure; you'll have to ask the Go std lib maintainers or dig into the standard library to find the answer. Let us know what you find! |
centos7 , docker cmd:
print logs
Error x2
The text was updated successfully, but these errors were encountered: