Clickhouse: Cannot use SHA-256 in replication settings

Created on 28 May 2019  路  5Comments  路  Source: ClickHouse/ClickHouse

Describe the bug
When describe ClickHouse cluster in remote_servers, It doesn't recognize tag.

How to reproduce

  • Which ClickHouse server version to use: 19.1.6
  • Settings:
<remote_servers>
    <test_cluster>
            <shard>
                <internal_replication>true</internal_replication>
                <replica>
                    <host>host1</host>
                    <port>29000</port>
                    <user>replica</user>
                    <password_sha256_hex>SHA256 hex</password_sha256_hex>
                </replica>
                <replica>
                    <host>host2</host>
                    <port>29000</port>
                    <user>replica</user>
                    <password_sha256_hex>SHA256 hex</password_sha256_hex>
                </replica>
            </shard>
        </test_cluster>
    </remote_servers>
<remote_servers>
  • Queries to run that lead to unexpected result
    select * from table_distributed;

Expected behavior
I expected to receive no errors

Error message and/or stacktrace

Code: 194. DB::Exception: Received from host2:29000, 172.22.33.17. DB::Exception: Received from host1:29000, 172.22.33.9. DB::Exception: Password required for user replica. 

Additional context
If I replace <password_sha256_hex> to <password> - all queries works perfectly, no errors.

comp-distributed question

Most helpful comment

password_sha256_hex is not supported against remote_servers.

remote_servers uses these passwords to connect to other instances of CH.
So there is only way is to set open password.

All 5 comments

password_sha256_hex is not supported against remote_servers.

remote_servers uses these passwords to connect to other instances of CH.
So there is only way is to set open password.

Similar: #2290

Yes, bad copy&paste :) Thanks.

password_sha256_hex is not supported against remote_servers.

remote_servers uses these passwords to connect to other instances of CH.
So there is only way is to set open password.

Okay, I got it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vixa2012 picture vixa2012  路  3Comments

innerr picture innerr  路  3Comments

jangorecki picture jangorecki  路  3Comments

goranc picture goranc  路  3Comments

atk91 picture atk91  路  3Comments