Joe Fairburn
03/24/2025, 9:06 PMschema-migrator
. I'm assuming it's the TCP connection as HTTP seems fine. I've tried a few different ports but haven't had any luck.
overrides.yaml
clickhouse:
enabled: false
externalClickhouse:
host: XXXXX.eu-west-2.aws.clickhouse.cloud
httpPort: 8443
tcpPort: 9000 -- I've also tried 9440
cluster: cluster
secure: true
user: default
password: XXXX
Joe Fairburn
03/24/2025, 9:06 PMDefaulted container "schema-migrator" out of: schema-migrator, schema-migrator-sync-init (init)
{"L":"info","timestamp":"2025-03-24T20:46:37.463Z","C":"signozschemamigrator/main.go:91","M":"Running migrations in sync mode","dsn":"<tcp://default:XXXX@XXX.eu-west-2.aws.clickhouse.cloud:9000>","replication":false,"cluster-name":"cluster"}
{"L":"info","timestamp":"2025-03-24T20:46:37.463Z","C":"signozschemamigrator/main.go:104","M":"Up migrations","versions":[]}
{"L":"info","timestamp":"2025-03-24T20:46:37.463Z","C":"signozschemamigrator/main.go:117","M":"Down migrations","versions":[]}
{"L":"info","timestamp":"2025-03-24T20:46:37.463Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-03-24T20:46:37.464Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
dial tcp 18.134.36.146:9000: i/o timeout
Usage:
signoz-schema-migrator sync [flags]
Flags:
--down string Down migrations to run, comma separated. Must provide down migrations explicitly to run
-h, --help help for sync
--up string Up migrations to run, comma separated. Leave empty to run all up migrations
Abhay
03/25/2025, 5:54 AMdial tcp 18.134.36.146:9000: i/o timeout
check connectivity of clickhouse endpoint from where signoz is deployed.Joe Fairburn
03/25/2025, 8:13 AMclickhouse-client
which works fine from the same deployment, I think that uses HTTP though?
I'm guessing it might be related to the port - if I switch TCP to 9440 I get the same error without the timeout:
{"L":"info","timestamp":"2025-03-25T08:10:17.859Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-03-25T08:10:17.860Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
read: EOF
Abhay
03/26/2025, 3:08 AMJoe Fairburn
03/26/2025, 9:00 AMNagesh Bansal
03/26/2025, 1:20 PMJoe Fairburn
03/26/2025, 2:51 PMNagesh Bansal
03/26/2025, 3:01 PMJoe Fairburn
03/26/2025, 3:16 PM