Paul Comte
11/13/2023, 8:02 AMPS ...\server> docker-compose -f signoz/docker/clickhouse-setup/docker-compose.yaml up -d
[+] Building 0.0s (0/0) docker:default
[+] Running 12/12
✔ Network clickhouse-setup_default Created 0.1s
✔ Container load-hotrod Started 0.1s
✔ Container hotrod Started 0.1s
✔ Container signoz-zookeeper-1 Started 0.1s
✔ Container signoz-clickhouse Healthy 0.1s
✘ Container otel-migrator service "otel-collector-migrator" didn't ... 0.1s
✔ Container signoz-otel-collector-metrics Created 0.1s
✔ Container signoz-query-service Created 0.1s
✔ Container signoz-alertmanager Created 0.1s
✔ Container signoz-otel-collector Created 0.1s
✔ Container signoz-logspout Created 0.1s
✔ Container signoz-frontend Created 0.1s
service "otel-collector-migrator" didn't complete successfully: exit 1
Showing the logs of the container otel-migrator
I see the following stacktrace:
PS ...\server> docker logs otel-migrator
{"level":"info","timestamp":"2023-11-13T08:00:33.962Z","caller":"signozschemamigrator/migrate.go:83","msg":"Setting env var SIGNOZ_CLUSTER","component":"migrate cli","cluster-name":"cluster"}
{"level":"info","timestamp":"2023-11-13T08:00:33.963Z","caller":"signozschemamigrator/migrate.go:100","msg":"Successfully set env var SIGNOZ_CLUSTER ","component":"migrate cli","cluster-name":"cluster"}
{"level":"info","timestamp":"2023-11-13T08:00:33.979Z","caller":"migrationmanager/manager.go:75","msg":"Running migrations for all migrators","component":"migrationmanager"}
{"level":"info","timestamp":"2023-11-13T08:00:33.979Z","caller":"migrationmanager/manager.go:77","msg":"Running migrations for logs","component":"migrationmanager","migrator":"logs"}
{"level":"error","timestamp":"2023-11-13T08:00:34.280Z","caller":"migrationmanager/manager.go:80","msg":"Failed to run migrations for migrator","component":"migrationmanager","migrator":"logs","error":"clickhouse migrate failed to run, error: code: 1001, message: std::__1::__fs::filesystem::filesystem_error: filesystem error: in rename: Permission denied [\"/var/lib/clickhouse/store/36a/36adfac6-d551-4500-a74d-21bfe279474b/tmp_insert_all_1_1_0/\"] [\"/var/lib/clickhouse/store/36a/36adfac6-d551-4500-a74d-21bfe279474b/all_1_1_0/\"] in line 0: INSERT INTO schema_migrations (version, dirty, sequence) VALUES (1, 1, 1699862434154250228)","stacktrace":"github.com/SigNoz/signoz-otel-collector/migrationmanager.(*MigrationManager).Migrate\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/migrationmanager/manager.go:80\nmain.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:108\nruntime.main\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/proc.go:250"}
{"level":"fatal","timestamp":"2023-11-13T08:00:34.280Z","caller":"signozschemamigrator/migrate.go:110","msg":"Failed to run migrations","component":"migrate cli","error":"clickhouse migrate failed to run, error: code: 1001, message: std::__1::__fs::filesystem::filesystem_error: filesystem error: in rename: Permission denied [\"/var/lib/clickhouse/store/36a/36adfac6-d551-4500-a74d-21bfe279474b/tmp_insert_all_1_1_0/\"] [\"/var/lib/clickhouse/store/36a/36adfac6-d551-4500-a74d-21bfe279474b/all_1_1_0/\"] in line 0: INSERT INTO schema_migrations (version, dirty, sequence) VALUES (1, 1, 1699862434154250228)","stacktrace":"main.main\n\t/home/runner/work/signoz-otel-collector/signoz-otel-collector/cmd/signozschemamigrator/migrate.go:110\nruntime.main\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/proc.go:250"}
Does anyone know why this happens, and how to fix it?
I'm on Windows 11, and have the latest version of Doker Desktop installed
I know that Microsoft windows is not officially supported, so it might require some additional steps to complete the installation of SigNoz