I just tried to upgrade my self-hosted signoz inst...
# support
o
I just tried to upgrade my self-hosted signoz instance from 0.47 to 0.53 but it failed migration 😞 I then saw that there was an instruction in docs to run some commands when upgrading to 0.51 if coming from pre 0.49 release. I tried those commands but couldn't get the alter command to run after entering clickhouse by running clickhouse client. As a hail mary I tried to checkout 0.49 instead and run the install command but migration failed there as well. I'm now afraid that I have borked the entire deployment 😒 A bit of a noob when it comes to docker I should add. Any help appreciated
I was able to execute the commands to change index by removing
ON CLUSTER {{.SIGNOZ_CLUSTER}}
part from the command. But migration container still fail to run.
docker logs from otel-migrator show
Dirty database version 14. Fix and force version.
I managed to find some old thread that suggested to run
DROP TABLE signoz_logs.schema_migrations
so I did that and after this I could run install.sh and have everything start. Can I be sure that all migrations from 0.47 to 0.53 executed correctly? or should I run some migrations manually now after?
Ok, so I checked all migration scripts from https://github.com/SigNoz/signoz-otel-collector/tree/main/migrationmanager/migrators/logs/migrations 000010 => and all changes in those seem to have been applied. After deleting
signoz_logs.schema_migrations
and re-running install script, all services started and I can access signoz again. If I enter clickhouse and check content of this table again I can see this. Is this the expected result I should see?
Copy code
clickhouse :) select * from signoz_logs.schema_migrations

SELECT *
FROM signoz_logs.schema_migrations

Query id: 70e369c7-b71d-44aa-984b-eedbbee067dc

β”Œβ”€version─┬─dirty─┬────────────sequence─┐
β”‚       1 β”‚     1 β”‚ 1725007515445448027 β”‚
β”‚       1 β”‚     0 β”‚ 1725007515845067837 β”‚
β”‚       2 β”‚     1 β”‚ 1725007515847659310 β”‚
β”‚       2 β”‚     0 β”‚ 1725007515905199014 β”‚
β”‚       3 β”‚     1 β”‚ 1725007515906956452 β”‚
β”‚       3 β”‚     0 β”‚ 1725007516074890985 β”‚
β”‚       4 β”‚     1 β”‚ 1725007516076887155 β”‚
β”‚       4 β”‚     0 β”‚ 1725007516133613526 β”‚
β”‚       5 β”‚     1 β”‚ 1725007516135661125 β”‚
β”‚       5 β”‚     0 β”‚ 1725007516691938663 β”‚
β”‚       6 β”‚     1 β”‚ 1725007516694060263 β”‚
β”‚       6 β”‚     0 β”‚ 1725007516808924862 β”‚
β”‚       7 β”‚     1 β”‚ 1725007516810876771 β”‚
β”‚       7 β”‚     0 β”‚ 1725007516978563302 β”‚
β”‚       8 β”‚     1 β”‚ 1725007516980545922 β”‚
β”‚       8 β”‚     0 β”‚ 1725007517259336785 β”‚
β”‚       9 β”‚     1 β”‚ 1725007517261254373 β”‚
β”‚       9 β”‚     0 β”‚ 1725007517373976862 β”‚
β”‚      10 β”‚     1 β”‚ 1725007517376240733 β”‚
β”‚      10 β”‚     0 β”‚ 1725007517378942645 β”‚
β”‚      11 β”‚     1 β”‚ 1725007517380362852 β”‚
β”‚      11 β”‚     0 β”‚ 1725007517986887170 β”‚
β”‚      12 β”‚     1 β”‚ 1725007517988498798 β”‚
β”‚      12 β”‚     0 β”‚ 1725007517990213317 β”‚
β”‚      13 β”‚     1 β”‚ 1725007517991286101 β”‚
β”‚      13 β”‚     0 β”‚ 1725007517992838018 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€version─┬─dirty─┬────────────sequence─┐
β”‚      14 β”‚     0 β”‚ 1725007518704759579 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€version─┬─dirty─┬────────────sequence─┐
β”‚      14 β”‚     1 β”‚ 1725007517993915233 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

28 rows in set. Elapsed: 0.002 sec.
s
Yes, this is expected
We are working on improving the migration experience.