Plausible CE doesn't log pageviews. #4139
Replies: 9 comments 10 replies
-
👋 @byemc Would you be able to document the exact steps you took to update from v1.4 to v2.1? It would help me reproduce the issue. Also do you still have access to the logs from the period when you performed the upgrade? |
Beta Was this translation helpful? Give feedback.
-
I've got the same "DB::Exception: No such column revenue_source_amount in table plausible_events_db.events_v2" lines in the logs after upgrading from 2.1.0-rc.1 to 2.1.0. |
Beta Was this translation helpful? Give feedback.
-
Could you please show the schema for the events_v2 table and list the executed migrations? $ cd hosting
$ docker compose exec plausible_events_db clickhouse client --database plausible_events_db :) show create table events_v2;
:) select * from schema_migrations; |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks @ruslandoga for the explanation! |
Beta Was this translation helpful? Give feedback.
-
OK so I added the 3 missing columns and that did the trick 😄 |
Beta Was this translation helpful? Give feedback.
-
I still had a few issues database-wise and couldnt upgrade to v2.1.1. I solved it by renaming the database, letting Plausible recreate it, and then manually copying in the data from the old database into the new one. (which was some pain, because the column lists are slightly different, but I managed to get everything migrated over and it seems to be all working ok again! |
Beta Was this translation helpful? Give feedback.
-
I did the suggested fix of modifying the migration table, but that resulted in Plausible crashing.
Rolling back to Plausible V2 works, but the setting page isn't working due to Postgres having a new schema. |
Beta Was this translation helpful? Give feedback.
-
i tried adding the missing tables manually like in #3246 (comment) on another instance, and it seems to have worked. |
Beta Was this translation helpful? Give feedback.
-
I recently upgraded from v1.4 to v2.1. I managed to migrate my data. However, no pageviews are logged. I downgraded to v2.0 and it was working again!
Looking in my docker logs, I found something like "No such column", alongside errors from Clickhouse saying the same thing.
Did I do something wrong? I found a similar discussion but I don't think the fix worked (I ran it directly in Clickhouse).
My docker-compose (the ports on the two databases were for debugging and are disabled):
Beta Was this translation helpful? Give feedback.
All reactions