v.20.5Improvement

Emit Warning for Unavailable Listen Addresses at Server Startup

Emit warning instead of error in server log at startup if we cannot listen one of the listen addresses (e.g. IPv6 is unavailable inside Docker). Note that if server fails to listen all listed addresses, it will refuse to startup as before. This fixes #4406. #11687 (alexey-milovidov).
ClickHouse server now emits a warning in the server log at startup if it cannot listen on one of the configured listen addresses (for example, when IPv6 is unavailable inside Docker), instead of failing immediately.

Why it matters

This feature resolves issues where server startup would fail if one of multiple listen addresses was unavailable. It improves flexibility by allowing the server to start as long as it can listen on at least one address, thus avoiding unnecessary startup failures in environments with incomplete network support.

How to use it

No special configuration is required. Upon startup, the server will automatically log a warning if any configured listen address cannot be bound, while still starting successfully if at least one address is available. The server continues to refuse startup only if all listed listen addresses are unavailable.