-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug] Installation can be continued with missing database privileges #22187
Comments
Hi @textagroup, can you please provide some more information on how you installed Matomo? Did you went through the standard installation process and that worked and then it showed the error on the dashboard? I would expect the installation process to fail earlier if it couldn't create the db tables. |
The installation should already fail when your user doesn't have the |
I have just reinstalled Matomo again to try and replicate the issue with a DB user who does not have the "CREATE TEMPORARY TABLES" permission. One thing I did notice is that the alert for the necesary database permissions does not appear when selecting the MYSQLI (video attached) adapter however it does seem to work correctly. |
@textagroup The installation checks for all permissions that are required for using Matomo. But the |
@sgiehl The validateOwner method in FormDatabaseSetup expects an exception to be thrown when running the requiredPrivileges SQL statements. |
What happened?
Installed Matomo on a develolment laptop and received an Access Denied error on the dashboard for the VisitFrequency plugin
What should happen?
The system check should gives some information about the datbase user not being granted the create permission.
How can this be reproduced?
Create a new database user and do not grant them the Create permission and install Matomo using the new database user.
Matomo version
5.1.0-b1
PHP version
8.1.2
Server operating system
Ubuntu 22.04.1 LTS
What browsers are you seeing the problem on?
Chrome
Computer operating system
Ubuntu 22.04.1 LTS
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: