#support

SigNoz Docker Setup Error: Otel-Migrator Container Fails

TLDR Diego encounters a persistent error while setting up SigNoz on Docker with WSL concerning file modification times in the otel-migrator container. Srikanth suggests a potential permissions issue.

Powered by Struct AI
Oct 30, 2023 (1 month ago)
Diego
Photo of md5-39dc2cc8178b0e82067051a8f8ad8110
Diego
09:03 PM
Hi everyone,
I’m trying to set up SigNoz on Docker with WSL, but I’m stuck because the otel-migrator container keeps failing. It gives me an error about not being able to set the modification time for a file in ClickHouse.
Error message:

error: code: 481, message: Cannot set modification time for file: /var/lib/clickhouse/store/... , errno: 1, strerror: Operation not permitted

Has anyone seen this before or have any advice? I’ve tried restarting everything but no luck.
Thanks a lot!
Nov 01, 2023 (1 month ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
03:46 AM
This is probably a file system permission issue. Please make sure the permissions are set correct.
Nov 02, 2023 (1 month ago)
Diego
Photo of md5-39dc2cc8178b0e82067051a8f8ad8110
Diego
10:07 PM
I haven’t made any adjustments to the docker-compose.yaml...
It should work right away, right? Here are more details of the error...

{"level":"error","timestamp":"2023-11-02T22:02:28.357Z","caller":"migrationmanager/manager.go:80","msg":"Failed to run migrations for migrator","component":"migrationmanager","migrator":"logs","error":"clickhouse migrate failed to run, error: code: 481, message: Cannot set modification time for file: /var/lib/clickhouse/store/294/29474b2c-ccd2-4c01-b8e7-48e297bc1cc3/tmp_insert_all_4_4_0/, errno: 1, strerror: Operation not permitted in line 0: INSERT INTO schema_migrations (version, dirty, sequence) VALUES (1, 1, 1698962548322669100)","stacktrace":"\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-02T22:02:28.357Z","caller":"signozschemamigrator/migrate.go:110","msg":"Failed to run migrations","component":"migrate cli","error":"clickhouse migrate failed to run, error: code: 481, message: Cannot set modification time for file: /var/lib/clickhouse/store/294/29474b2c-ccd2-4c01-b8e7-48e297bc1cc3/tmp_insert_all_4_4_0/, errno: 1, strerror: Operation not permitted in line 0: INSERT INTO schema_migrations (version, dirty, sequence) VALUES (1, 1, 1698962548322669100)","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"}