-
Notifications
You must be signed in to change notification settings - Fork 284
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
Error listening, but site is served anyway #8
Comments
I got this error too. |
It's trying to listen using IPv4 and IPv6 at the same time, which for some reason is breaking. |
Ah. Should probably add the version to the message then. |
I just derived that information from 0.0.0.0 vs ::. So anyway, it looks like your computer probably doesn't have the ability to listen with IPv6. The error can probably just be ignored. |
Right, it tries to listen on both and the IPv6 one always fails. I'm not yet sure why the IPv6 one fails. But since listenTcp/listenHttp should actually fail with an exception if the socket bind fails, this needs to be fixed/detected in advance. Up to then it can be safely ignored. |
I have explicitly disabled IPv6 on my computer, that's why it fails for me. |
Me too. Enabling IPv6 fixed the "issue" |
Do you know an ad-hoc way to detect this in advance? I would like to make this an actual error with an exception to avoid real "silent" failures. |
Get the addresses of the local interface using |
Thanks, that sounds like it should work, will do. |
Be sure to use really use a |
I'll close this with the following rationale:
I'm also thinking to make the default |
It tries to bind to the same port twice..?
[7FA48783CF00:00000000 WRN] Failed to parse config file /etc/vibe/vibe.conf: /etc/vibe/vibe.conf: No such file or directory
[7FA48783CF00:00000000 INF] Listening on 0.0.0.0 port 8080 succeeded
[7FA48783CF00:00000000 ERR] Error binding listening socket
[7FA48783CF00:00000000 INF] Listening on :: port 8080 failed
[7FA48783CF00:00000000 INF] Running event loop...
The text was updated successfully, but these errors were encountered: