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
Matomo upgrade from 3.14.1 to 4.0.1 fails due to Duplicate entry for for key 'PRIMARY' error #16824
Comments
I had the same problem but was able to upgrade after changing the version number to 4.0.1 in the 'option' table as noted in the error message. But that introduced a new problem. I can't login anymore. This is without error message. I can change the password, which shows that the update seems to work correctly on the server, but with the new password logging in is still impossible. |
Same issue for 3.14.1 -> 4.0.1 on Arch Linux.
I updated the app, ran The log isn't very clear as to where the issue is happening. |
Could you maybe check if the table |
That indeed seem to have helped, the update is now going through. EDIT: Update went through, I can access the app, but it's kinda broken, but I guess that's for another issue.
EDIT2: Reinstalling matomo and rebooting the server fixed the above, for some reason. |
For information (and maybe others who experience the same problem). Our installation was running 3.14.1, update via web did produce the same error, update via command-line (as suggested for high-traffic sites) also the same error. Had to go to the database and Thanks for the great software. And the help, here! |
Three more people reporting the same here: https://forum.matomo.org/t/error-upgrading-db-while-upgrading-to-4-0-0-b1/39478 |
Hi, I can confirm that the solution from @sgiehl worked for me. I changed the the version_core back to 3.14.1, ran the updater from the terminal and am now able to login again and the updater changed the version number to 4.0.1 thanks! kees |
I couldn't find an entry with the session.
Can't confirm that. version_core ist defined as 3.14.1 in my settings (database) So I Truncated the table piwik_session and reload the updater. |
To be clear, this is what I did:
kees |
The |
@jameshibbard That's not a fix, changing the version_core is wrong in this case. Just truncate the session table. |
I tried truncating the table. On its own, this didn't work. |
There's a PR in https://github.com/matomo-org/matomo/pull/16829/files Does it help to adjust the file |
This was fixed in 4.0.2. If you experience this issue applying the patch from previous comment should help. Let me know if this is not the case and we'll have a look what else can be done. Executing the SQL query |
Hello,
I was in the process of upgrading Matomo from 3.14.1 to 4.0.1 on Centos 6.9 with PHP 7.2.24, MYSQL 5.5.62, Apache 2.2.34.
However when I click on 'Upgrade Matomo', I get the following error i.e :
Here is the attached screenshot of the same :
Could you please replicate and fix this issue?.
The text was updated successfully, but these errors were encountered: