Clickhouse: Address already in use error with docker image 1.1.54378

Created on 16 Apr 2018  路  3Comments  路  Source: ClickHouse/ClickHouse

I just upgraded my application from 1.1.54370 to 1.1.54378 by simply using the new docker image. I'm now getting an error in the error log:
Error> Application: Net Exception: Address already in use: 127.0.0.1:8123

Any idea what might be causing this error?

Most helpful comment

Thanks @filimonov! For future reference, here is the Google Translate version of the changelog. Adding <listen_reuse_port>1</listen_reuse_port> to my config.xml solved the problem immediately.

The server no longer uses the SO_REUSEPORT socket option by default. Now a multiple listen of one address, for example :: 0.0.0.0 , will generate an error. To enable this option, add 1

All 3 comments

When I rolled back to 1.1.54370, everything initialized properly.

cc @alex-zaitsev

Check the changelog ( #2215 ) regarding port reuse and listen configuration.

Thanks @filimonov! For future reference, here is the Google Translate version of the changelog. Adding <listen_reuse_port>1</listen_reuse_port> to my config.xml solved the problem immediately.

The server no longer uses the SO_REUSEPORT socket option by default. Now a multiple listen of one address, for example :: 0.0.0.0 , will generate an error. To enable this option, add 1

Was this page helpful?
0 / 5 - 0 ratings