Hello everyone, I am running this command to setup...
# contributing
a
Hello everyone, I am running this command to setup clickhouse to setup development environment but it seems to be running forever
image.png
is there something I am doing wrong ?
s
check logs for schema-migrator container?
a
no configuration file provided: not found
This is the log for schema-migrator
r
This is the log from the
schema-migrator-sync
container, which keeps stopping.
s
permission denied on that dir
a
Copy code
migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:16:06.196Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-08-11T20:16:06.197Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
code: 999, message: Cannot resolve any of provided ZooKeeper hosts due to DNS error
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

Global Flags:
      --cluster-name string   Cluster name to use while running migrations (default "cluster")
      --dev                   Development mode
      --dsn string            Clickhouse DSN
      --replication           Enable replication

{"L":"info","timestamp":"2025-08-11T20:17:06.426Z","C":"signozschemamigrator/main.go:91","M":"Running migrations in sync mode","dsn":"<tcp://clickhouse:9000>","replication":true,"cluster-name":"cluster"}
{"L":"info","timestamp":"2025-08-11T20:17:06.428Z","C":"signozschemamigrator/main.go:104","M":"Up migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:17:06.428Z","C":"signozschemamigrator/main.go:117","M":"Down migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:17:06.428Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-08-11T20:17:06.429Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
code: 999, message: Cannot resolve any of provided ZooKeeper hosts due to DNS error
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

Global Flags:
      --cluster-name string   Cluster name to use while running migrations (default "cluster")
      --dev                   Development mode
      --dsn string            Clickhouse DSN
      --replication           Enable replication

{"L":"info","timestamp":"2025-08-11T20:18:06.629Z","C":"signozschemamigrator/main.go:91","M":"Running migrations in sync mode","dsn":"<tcp://clickhouse:9000>","replication":true,"cluster-name":"cluster"}
{"L":"info","timestamp":"2025-08-11T20:18:06.631Z","C":"signozschemamigrator/main.go:104","M":"Up migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:18:06.631Z","C":"signozschemamigrator/main.go:117","M":"Down migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:18:06.631Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-08-11T20:18:06.631Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
code: 999, message: Cannot resolve any of provided ZooKeeper hosts due to DNS error
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

Global Flags:
      --cluster-name string   Cluster name to use while running migrations (default "cluster")
      --dev                   Development mode
      --dsn string            Clickhouse DSN
      --replication           Enable replication

{"L":"info","timestamp":"2025-08-11T20:19:06.838Z","C":"signozschemamigrator/main.go:91","M":"Running migrations in sync mode","dsn":"<tcp://clickhouse:9000>","replication":true,"cluster-name":"cluster"}
{"L":"info","timestamp":"2025-08-11T20:19:06.840Z","C":"signozschemamigrator/main.go:104","M":"Up migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:19:06.840Z","C":"signozschemamigrator/main.go:117","M":"Down migrations","versions":[]}
{"L":"info","timestamp":"2025-08-11T20:19:06.840Z","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-08-11T20:19:06.841Z","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
code: 999, message: Cannot resolve any of provided ZooKeeper hosts due to DNS error
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

Global Flags:
showing DNS error
h
It seems that schema-migrator starts before zookeeper is up. Could you check the logs for zookeeper -
Copy code
docker logs zookeeper
a
There was a permission issue which was causing zookeeper to not start
👍 1