hi, i try to install Signoz using the Helm chart, and I've got this error: ```{"level":"fatal","time...
n
hi, i try to install Signoz using the Helm chart, and I've got this error:
Copy code
{"level":"fatal","timestamp":"2024-09-12T07:38:00.777Z","caller":"signozschemamigrator/migrate.go:128","msg":"Failed to run migrations","component":"migrate cli","error":"failed to create database, err: code: 701, message: Requested cluster 'cluster' not found","stacktrace":"main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-c │
│ ollector/cmd/signozschemamigrator/migrate.go:128\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/proc.go:267"}
there is no environment variable SIGNOZ_CLUSTER set in the deployment of the schema migrator
only:
Copy code
env:
            - name: CLICKHOUSE_HOST
              value: signoz-clickhouse
            - name: CLICKHOUSE_PORT
              value: '9000'
            - name: CLICKHOUSE_HTTP_PORT
              value: '8123'
            - name: CLICKHOUSE_CLUSTER
              value: k3s-homelab
            - name: CLICKHOUSE_USER
              value: admin
            - name: CLICKHOUSE_PASSWORD
              value: xxxxxxx
            - name: CLICKHOUSE_SECURE
              value: 'false'
n
are you doing a fresh install or upgrading from older version ?
n
a fresh install .... If i set as name of the Clickhouse cluster
cluster
like in the environment variable of the Golang code, it works šŸ™‚
n
@Prashant Shahi any idea here ?
p
Looks like this is not automatically handled for schema migrator in the charts. Let me fix this. Meanwhile, try using use the following helm override values:
Copy code
schemaMigrator:
  args:
    - "--cluster-name"
    - "$(CLICKHOUSE_CLUSTER)"
@Srikanth Chekuri can you review the above PR?
s
There are places where this is not configurable yet so we need to fix them