-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to update? #248
Comments
I tried the update via the docker-compose. Changed Version. But UI still shows Version 3.4.1 |
Yep. Had the same issue. |
Found the solution, go on settings, on top of the screen you find an button, search for updates. |
Yeah @holzfelix that's what I meant that I updated from the web UI. Just asking if it's the right way or we should update it by pulling latest versions of the repo and rebuilding the docker images somehow. |
yes thats the correct way of upgrading. |
I have the same issue too. Dockerfile updated, new image pulled and container started. But the UI shows the old version. How come? Is there some kind of cache I have to clear? Log out and in again did not help. Thanks. |
you have to click on update manually |
Thanks for your answer. I'm running Matomo on a Kubernetes system with a persistant-volume. So I guess I have to do both. Dockerfile-Update and the automatical file update like you are showing it now. |
yes you have to do both. |
I don't see any buttons to search for updates. I just get a prompt "New update: 4.5.0" which is already the version of the Docker image. I'm guessing it's getting the current version from the database so how do I check if it needs to perform any database migrations? Looks like this is a known issue: #161 |
can somebody please explain how they would do the upgrade, from let's say 4.6.2->4.10.1 in this scenario:
cause what I am doing is when I deploy the new docker image in ECS, I get to the setup screen again but then the step to connect to the DB fails with 'ACCESS DENIED' for any newer version than 4.6.2. Is the proposed suggestion now to
Why would that be necessary...and why do I get 'Access Denied' message? seems strange to me. |
So I did an update right now.... and ... it was wired.
So what I did is just delete the volume, recreated the container and execute Never seen such a strange implementation of a docker image. |
This is somewhat blocked by matomo-org/matomo#19151 |
Could you explain how the linked issue is related to provide a simple docker based update process. |
You need to update sources, optionally plugins, and then migrate the database. If you just update the source volume you may overwrite your configs or plugins. |
My current solution is: I build the docker container as usual. So I have the new version under /usr/src. As the entry point prevent the use of the new version because it checks if the matomo.php is in the persistent volume. I attach a session to the running container and just execute the same commands like the entry point will do (cp from /usr/src and change owner) |
Simply remove |
I totally agree here. It's odd that Matomo doesn't really handle this as well, compared to other container images. A pull of the image(s) and a restart of the container, should indeed secure the newest version, if you ask me. I've noted the tip from routmounte, so I'm currently execuing:
(edit the context for docker-compose, or whatever you'd like) Which did the trick for me... I guess it would be better to remove the volume as noted in this issue, and using the |
You should eb able to update it like any other docker image (make sure you use :latest tag in the image section of your compose file and then just redeploy it whenever there is a new version) alternativly you can use something like https://containrrr.dev/watchtower/ to automaate the update process for multiple running containers. |
I've updated from the web UI as it offered.
But is this the right way?
How should an update be completed with docker-compose? (I'm using the nginx example)
The text was updated successfully, but these errors were encountered: