Skip to content

v2.0 to v2.1.0 Migration error: Column with this name already exists #4595

Closed Answered by ruslandoga
Dmoulart asked this question in Self-Hosted Support
Discussion options

You must be logged in to vote

Judging by clickhouse-0.clickhouse.default.svc.cluster.local you might be running a ClickHouse cluster. That might also explain the error if the events or sessions tables are replicated but schema_migrations is not. In that scenario Plausible might attempt to run migrations that have already been run before. The fix might be to make schema_migrations replicated. The fact that utm_medium columns are only defined in very old migrations (way way pre-v2) seems to support it: https://github.com/search?q=repo%3Aplausible%2Fanalytics+path%3A%2F%5Epriv%5C%2Fingest_repo%5C%2Fmigrations%5C%2F%2F+utm_medium&type=code

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@thibault-resalocal
Comment options

@ruslandoga
Comment options

@ruslandoga
Comment options

Answer selected by Dmoulart
@Dmoulart
Comment options

@thibault-resalocal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants