Dhruv garg
09/12/2024, 7:46 AMNAME READY STATUS RESTARTS AGE
apm-clickhouse-operator-6fc85bd9b6-698hh 2/2 Running 0 12h
apm-signoz-alertmanager-0 1/1 Running 0 12h
apm-signoz-frontend-979668b87-p64bz 1/1 Running 0 12h
apm-signoz-otel-collector-679bc68c99-j5qjr 0/1 Init:0/1 0 11h
apm-signoz-otel-collector-7fd6bb45b8-qbk54 1/1 Running 0 35d
apm-signoz-otel-collector-7fd6bb45b8-xzrpv 1/1 Running 0 35d
apm-signoz-otel-collector-metrics-667b9fc959-84kdd 1/1 Running 0 35d
apm-signoz-otel-collector-metrics-ffc447dc5-nj9dt 0/1 Init:0/1 0 11h
apm-signoz-query-service-0 1/1 Running 4 (12h ago) 12h
apm-zookeeper-0 1/1 Running 0 35d
chi-apm-clickhouse-cluster-0-0-0 1/1 Running 0 12h
any idea how I should fix this?Dhruv garg
09/12/2024, 12:18 PMDhruv garg
09/12/2024, 12:19 PM{
"level": "fatal",
"timestamp": "2024-09-12T12:17:24.387Z",
"caller": "signozschemamigrator/migrate.go:128",
"msg": "Failed to run migrations",
"component": "migrate cli",
"error": "clickhouse migrate failed to run, error: Dirty database version 8. Fix and force version.",
"stacktrace": "main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:128\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/proc.go:267"
}
I think this is the issue, the migrator is failing apm-signoz-schema-migrator-upgrade-whmtm
nitya-signoz
09/12/2024, 12:20 PMDhruv garg
09/12/2024, 12:21 PM❯ k logs -n platform --tail 100 -f apm-signoz-schema-migrator-upgrade-whmtm
Defaulted container "schema-migrator" out of: schema-migrator, apm-signoz-schema-migrator-init (init), apm-signoz-schema-migrator-ch-ready (init)
{"level":"info","timestamp":"2024-09-12T12:17:24.270Z","caller":"signozschemamigrator/migrate.go:89","msg":"Setting env var SIGNOZ_CLUSTER","component":"migrate cli","cluster-name":"cluster"}
{"level":"info","timestamp":"2024-09-12T12:17:24.270Z","caller":"signozschemamigrator/migrate.go:106","msg":"Successfully set env var SIGNOZ_CLUSTER ","component":"migrate cli","cluster-name":"cluster"}
{"level":"info","timestamp":"2024-09-12T12:17:24.270Z","caller":"signozschemamigrator/migrate.go:111","msg":"Setting env var SIGNOZ_REPLICATED","component":"migrate cli","replication":false}
{"level":"info","timestamp":"2024-09-12T12:17:24.280Z","caller":"migrationmanager/manager.go:76","msg":"Running migrations for all migrators","component":"migrationmanager"}
{"level":"info","timestamp":"2024-09-12T12:17:24.280Z","caller":"migrationmanager/manager.go:78","msg":"Running migrations for logs","component":"migrationmanager","migrator":"logs"}
{"level":"info","timestamp":"2024-09-12T12:17:24.348Z","caller":"migrationmanager/manager.go:78","msg":"Running migrations for metrics","component":"migrationmanager","migrator":"metrics"}
{"level":"error","timestamp":"2024-09-12T12:17:24.387Z","caller":"migrationmanager/manager.go:81","msg":"Failed to run migrations for migrator","component":"migrationmanager","migrator":"metrics","error":"clickhouse migrate failed to run, error: Dirty database version 8. Fix and force version.","stacktrace":"<http://github.com/SigNoz/signoz-otel-collector/migrationmanager.(*MigrationManager).Migrate|github.com/SigNoz/signoz-otel-collector/migrationmanager.(*MigrationManager).Migrate>\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/migrationmanager/manager.go:81\nmain.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:126\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/proc.go:267"}
{"level":"fatal","timestamp":"2024-09-12T12:17:24.387Z","caller":"signozschemamigrator/migrate.go:128","msg":"Failed to run migrations","component":"migrate cli","error":"clickhouse migrate failed to run, error: Dirty database version 8. Fix and force version.","stacktrace":"main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:128\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/proc.go:267"}
Dhruv garg
09/12/2024, 12:21 PM❯ k get jobs -n platform
NAME COMPLETIONS DURATION AGE
apm-signoz-schema-migrator-upgrade 0/1 4m40s 4m40s
this job is also not getting completedDhruv garg
09/12/2024, 12:22 PM[2024-09-12 12:10:04] Waiting for job apm-signoz-schema-migrator-upgrade...
log from otel collectornitya-signoz
09/12/2024, 12:22 PMDhruv garg
09/12/2024, 12:41 PMnitya-signoz
09/12/2024, 12:42 PMSrikanth Chekuri
09/12/2024, 1:36 PMDhruv garg
09/12/2024, 1:37 PM{
"level": "fatal",
"timestamp": "2024-09-12T12:17:24.387Z",
"caller": "signozschemamigrator/migrate.go:128",
"msg": "Failed to run migrations",
"component": "migrate cli",
"error": "clickhouse migrate failed to run, error: Dirty database version 8. Fix and force version.",
"stacktrace": "main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:128\nruntime.main\n\t/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/proc.go:267"
}
this is the only relevant log I was able to findSrikanth Chekuri
09/12/2024, 1:38 PMDhruv garg
09/12/2024, 1:39 PMSrikanth Chekuri
09/12/2024, 1:39 PMDhruv garg
09/12/2024, 1:39 PMSrikanth Chekuri
09/12/2024, 1:41 PMdelete from signoz_metrics.schema_migrations where version=8;
Dhruv garg
09/12/2024, 7:54 PM