Upgrade instructions #1459
-
Hi, I am using the self hosted version, and would like to update to the latest version.
I am using caddy-gen for plausible, so my startup script is:
I am not much of a Docker person, but searching how to upgrade containers tells me I just have to run
However, I did that and LOST ALL OF MY ANALYTICS! Interestingly, enough - I dod not lose my accounts, I just lost the analytics data - it still has the users and account data. I have gathered from other tutorials that in older versions of Docker I would have had to do the following, but understand this is no longer relevant - and is even scarier to run:
Please advise! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 41 replies
-
Hmm, I've always used the following and it works fine: $ docker-compose down --remove-orphans
$ docker-compose pull plausible
$ docker-compose -f docker-compose.yml -f reverse-proxy/docker-compose.caddy-gen.yml up -d It's weird that you lost your analytics data. Our docker-compose file stores the data in an internal docker volume called Do you have that entry in your docker-compose? Do you see anything with |
Beta Was this translation helpful? Give feedback.
-
@ukutaht I also want to know how to get the version of a plausible docker image. I'm running a plausible instance and plausible frontend code for Chirpy, but there are some issues caused by server & client version mismatching. Could you guide me on this, thanks 🙏 |
Beta Was this translation helpful? Give feedback.
-
@ukutaht However inside the folder /var/lib/docker/volumes/hosting_event-data/_data/data/plausible_events_db there is 4 files that catched my attention: I checked and the data is still in the container, but Clickhouse isn't using it. This seems to be an issue with Clickhouse. |
Beta Was this translation helpful? Give feedback.
-
I just faced the same problem. Updated plausible via simple |
Beta Was this translation helpful? Give feedback.
-
The same problem, I just followed the commands that were in the documentation.
Now I have lost all my data. I am very upset. |
Beta Was this translation helpful? Give feedback.
-
Same here. |
Beta Was this translation helpful? Give feedback.
Hmm, I've always used the following and it works fine:
It's weird that you lost your analytics data. Our docker-compose file stores the data in an internal docker volume called
event-data
: https://github.com/plausible/hosting/blob/master/docker-compose.yml#L19Do you have that entry in your docker-compose? Do you see anything with
event_data
in yourdocker volume ls
?