Skip to content
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

Err initial load: DNS_ERROR #2151

Open
islamyakin opened this issue Oct 17, 2024 · 7 comments
Open

Err initial load: DNS_ERROR #2151

islamyakin opened this issue Oct 17, 2024 · 7 comments
Assignees

Comments

@islamyakin
Copy link

mirroring postgres to clickhouse,

with instalation peerdb ./run-peerdb.sh.

i have a error

failed to sync records: code: 499, message: Failed to get object info: Code: 198. DB::NetException: Not found address of host: host.docker.internal. (DNS_ERROR) (version 24.9.2.42 (official build)). HTTP response code: 18446744073709551615: while reading clone_click_exa_ak_rezas_e13ff3d0_c93b_4187_9e81_7157a11ee53f/clone_click_exa_ak_rezas_e13ff3d0_c93b_4187_9e81_7157a11ee53f/f38ac276-6d49-4b92-9314-8844a7e336dc.avro.zst: While executing S3Source

@islamyakin
Copy link
Author

has been config in my virtual machine

127.0.0.1 host.docker.internal
127.0.0.1 gateway.docker.internal

@iamKunalGupta
Copy link
Member

Hi can you please provide some more information:

  • How is ClickHouse setup? (Cloud/VM/Docker)

@iamKunalGupta iamKunalGupta self-assigned this Oct 17, 2024
@islamyakin
Copy link
Author

Hi can you please provide some more information:

  • How is ClickHouse setup? (Cloud/VM/Docker)

setup in VM

@islamyakin
Copy link
Author

Clickhouse and peerdb in different host

@iamKunalGupta
Copy link
Member

Minio needs to be accessible by both PeerDB and ClickHouse (via the same URL). In that case I'd recommend setting the AWS Endpoint for S3 to maybe the url of the minio VM and make the minio VM accessible to ClickHouse.

@islamyakin
Copy link
Author

islamyakin commented Oct 18, 2024

i see, clickhouse can access minio in docker-compose with peerdb?
this is my docker-compose

name: peerdb-quickstart

x-minio-config: &minio-config
PEERDB_CLICKHOUSE_AWS_CREDENTIALS_AWS_ACCESS_KEY_ID: _1
PEERDB_CLICKHOUSE_AWS_CREDENTIALS_AWS_SECRET_ACCESS_KEY: _1
PEERDB_CLICKHOUSE_AWS_CREDENTIALS_AWS_REGION: us-east-1
PEERDB_CLICKHOUSE_AWS_CREDENTIALS_AWS_ENDPOINT_URL_S3: http://minio:9000
PEERDB_CLICKHOUSE_AWS_S3_BUCKET_NAME: peerdbbucket1

@iamKunalGupta
Copy link
Member

i see, clickhouse can access minio in docker-compose with peerdb?

Yes ClickHouse needs to access the object storage that PeerDB also has access to.

In this case you can set PEERDB_CLICKHOUSE_AWS_CREDENTIALS_AWS_ENDPOINT_URL_S3 to http://: and make sure your security groups allow for the CH VM to access the minio VM. Alternatively you can use an S3 Bucket and use that instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants