Skip to content
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

Any document on downgrade Piwik Database? #13040

Closed
yangboz opened this issue Jun 6, 2018 · 8 comments
Closed

Any document on downgrade Piwik Database? #13040

yangboz opened this issue Jun 6, 2018 · 8 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@yangboz
Copy link

yangboz commented Jun 6, 2018

After upgrading Piwik to Matomo, try to migrate the docker of bitnami/mariadb_piwik to another machine, but meet this error message as following:

Your Piwik codebase is running the old version 3.2.1 
and we have detected that your Piwik Database has already been upgraded to the newer version 3.5.1. 
Maybe your Piwik administrators are currently finishing the upgrade process.
Please try again in a few minutes.
 If you still have this issue please contact your Piwik administrator for assistance.

How to handle this situation? TIA.

@Findus23
Copy link
Member

Findus23 commented Jun 6, 2018

Hi,

The only way to downgrade Matomo is to rollback to a backup you made before the upgrade.
Database migrations only work in one direction as they e.g. have to convert country codes.

The best solution would be replacing your Matomo files with the latest version (3.5.1)

BTW: The bitnami-docker-piwik docker image is not maintained by the Matomo team.

@yangboz
Copy link
Author

yangboz commented Jun 6, 2018

And after "replacing your Matomo files with the latest version (3.5.1)", but it still require me to phpar/composer installation, any configuration to skip this step? because I used docker-compose version. Thanks again.

@Findus23
Copy link
Member

Findus23 commented Jun 6, 2018

Are you using the version from https://builds.matomo.org/?
You shouldn't need to run composer with them as all dependencies are already installed.

@yangboz
Copy link
Author

yangboz commented Jun 6, 2018

Sorry, I used this one https://github.com/matomo-org/matomo/releases/tag/3.5.1, then I will try another.
Thanks.

@yangboz
Copy link
Author

yangboz commented Jun 6, 2018

Bad things still, even used https://builds.matomo.org/piwik-3.5.1.tar.gz:

Welcome!

Matomo is a free/libre web analytics software that makes it easy to get the information you want from your visitors.

This process is split up into 8 easy steps and will take around 5 minutes.

Any other suggestions?

@Findus23
Copy link
Member

Findus23 commented Jun 6, 2018

Did you copy over your config/config.ini.php?
https://piwik.org/docs/update/#the-manual-three-step-update

Otherwise you will have to go through the setup again, but when you enter the database details where an existing Piwik database exists (pay attention to the table prefix, it is probably piwik_ for you) it will keep the existing data.

@yangboz
Copy link
Author

yangboz commented Jun 6, 2018

Oh, great! I copied this "config/config.ini.php" to the piwik-3.5.1 folder and skipped this step successfully, many thanks your help and thunder-alike quick reply.

@yangboz yangboz closed this as completed Jun 6, 2018
@Findus23 Findus23 added the answered For when a question was asked and we referred to forum or answered it. label Jun 6, 2018
@yangboz
Copy link
Author

yangboz commented Jun 6, 2018

And also it is helpful that people wonder how to use docker-compose to upgrade/migrate your Piwik2 to Matomo3 ?
check here:https://github.com/benkoo/TensorCloud/blob/master/Volumerize/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants