v2.0.0-rc.2 #3011
Replies: 6 comments 15 replies
-
Still + image: plausible/analytics:v2.0.0-rc.1 ? not + image: plausible/analytics:v2.0.0-rc.2 ? |
Beta Was this translation helpful? Give feedback.
-
I get the following error when trying to run data migration:
I'm updating from v1.5.1, running on Ubuntu 22.04.2 LTS. I saw a similar discussion in #2896 (comment) where the issue was caused by a Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the stupid question, I do not have much clue of docker. What/where exactly is the "hosting" folder? |
Beta Was this translation helpful? Give feedback.
-
What is the recommended and minimum CPU and RAM for this 2.0 version? |
Beta Was this translation helpful? Give feedback.
-
There are no significant changes from |
Beta Was this translation helpful? Give feedback.
-
Upgraded using the instructions from the docs:
And thought I had lost all data, I really had a hallelujah-moment when I found this page! 😅 Please add the migration to the upgrade instructions-page so other people don't think they've deleted all their data after an upgrade. 🙏 |
Beta Was this translation helpful? Give feedback.
-
The highlights of this release are:
Upgrading Plausible Analytics to v2.0
Ensure you are using a new ClickHouse version
The steps below have been tested with
clickhouse/clickhouse-server:22.6-alpine
please make sure to upgrade ClickHouse to at least this version.Here's the excerpt from
v1.5 release discussion
regarding the ClickHouse upgradeIn your docker-compose.yml update the image used for plausible_events_db to a newer ClickHouse version:
Upgrading ClickHouse to 22.6
Restart the container
This will boot up the new version of ClickHouse.
Related PR: plausible/community-edition#45
Update image tag
In your
docker-compose.yml
update the image used forplausible
tov2.0.0-rc.2
and restart the container
This will boot up the new version of the app.
If you open the dashboards now, you wouldn't see any past metrics. This is expected as
v2.0
uses the newevents_v2
andsessions_v2
tables to store analytics data. We need to perform data migration to copy the data into the new tables.Run data migration
Connect to the running
plausible
container and start the migration flowYou can attempt this migration multiple times unless you drop
v1
tables.Drop v1 tables (optional)
Once you verify the migration went well, the old tables can be dropped. It's easiest to use
clickhouse-client
for thisSee https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#max-table-size-to-drop for how to drop tables with more than 50GB of data.
Enable automatic MaxMind GeoLite2 updates (optional)
In your
plausible-config.env
setMAXMIND_LICENSE_KEY
environment variable and get an automatically updated GeoLite2 City geolocation database. The database edition is configurable withMAXMIND_EDITION
environment variable and defaults toGeoLite2-City
.Note that for the changes in
plausible-config.env
to propagate to theplausible
, the container needs to be recreated:Also note that using
GeoLite2-City
edition requires more RAM than usingGeoLite2-Country
.Now you can remove any other volumes and services used to download, store, and update geolocation databases.
Changelog
Following changes have been made since v1.5:
Added
with_imported=true
in Stats API aggregate endpointtagged-events
classnamesBamboo.MailgunAdapter
,Bamboo.MandrillAdapter
,Bamboo.SendGridAdapter
Support alternative mailing services (Mailgun, Mandrill, Sendgrid) #2649PUT /api/v1/sites
)LOG_FAILED_LOGIN_ATTEMPTS
environment variable to enable failed login attempts logs add LOG_FAILED_LOGIN_ATTEMPTS #2936MAILER_NAME
environment variable support add MAILER_NAME #2937MAILGUN_BASE_URI
support forBamboo.MailgunAdapter
add MAILGUN_BASE_URI #2935Fixed
Changed
bounce_rate
Removed
IP_BLOCKLIST
environment variablecustom_dimension_filter
feature flag remove custom_dimension_filter feature and views_per_visit_metric flags #2996This discussion was created from the release v2.0.0-rc.2.
Beta Was this translation helpful? Give feedback.
All reactions