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

schema_migrator: Don't fail when ClickHouse is listening on IPv6 #432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davispuh
Copy link

My ClickHouse DB is listening on IPv6 and that causes migration to fail.

{"L":"info","timestamp":"2024-10-19T00:03:31.343Z","C":"schema_migrator/manager.go:328","M":"Connecting to new host","host":"::1:9000"}
{"L":"info","timestamp":"2024-10-19T00:03:31.343Z","C":"schema_migrator/manager.go:811","M":"Updating migration entry","query":"ALTER TABLE signoz_logs.schema_migrations_v2 ON CLUSTER default UPDATE status = $1, error = $2, updated_at = $3 WHERE migration_id = $4","status":"failed","error":"failed to get conn\ndial tcp: address ::1:9000: too many colons in address","migration_id":1}
Error: failed to bootstrap migrations: failed to create schema_migrations_v2 table
failed to get conn
dial tcp: address ::1:9000: too many colons in address
code: 60, message: There was an error on [localhost:9000]: Code: 60. DB::Exception: Could not find table: schema_migrations_v2. (UNKNOWN_TABLE) (version 24.9.2.42 (official build))

This PR fixes that.

Note that this won't fix if someone is using IPv6 for remotes.

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

Successfully merging this pull request may close these issues.

3 participants