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
php console diagnostics:run sometimes displays incorrect LOAD DATA INFILE warning #19267
Comments
Hi @chriscroome, thanks for reporting this. When testing database capabilities the diagnostics check will create a temporary .csv file on disk and then attempt to load it into MySQL/MariaDB using One possibility here could be that the command line diagnostics check is being run as a user without access to write the temporary file which then causes the check to fail. Could you try running the command line diagnostics check as the web server user (eg. |
Thanks @bx80 I am running the command as the same user that PHP-FPM runs as. I thought the issue could be that the PHP alias php="php --php-ini ~/.php.ini And the following to sys_temp_dir = "/home/matomo/tmp" Where php console --no-ansi -n diagnostics:run
INFO [2022-06-02 15:03:39] 487207 Unable to test if mod_pagespeed is enabled: the request to http://unknown/console?module=Installation&action=getEmptyPageForSystemCheck failed
Database abilities:
- OK UTF8mb4 charset
- WARNING LOAD DATA INFILE
Hint: Using LOAD DATA INFILE by updating your PHP and MySQL software and ensuring your database user has the FILE privilege speeds up Matomo's archiving process a lot.
You should fix this problem if your Matomo server tracks high-traffic websites (e.g. > 100,000 pages per month).
- OK CREATE TEMPORARY TABLES
- OK Changing transaction isolation level
1 warnings detected Where is the temporary |
Hi @chriscroome, It looks like Matomo will choose the load infile tmp path in the following sequence:
If your MySQL server does not have the |
Thanks @bx80 the server with this issue doesn't have
There isn't a problem writing to the temp directories as far as I can see. I think I'll just have to accept that this one server can't run |
Sorry we couldn't get to the bottom of this one @chriscroome, I'll close the issue but do feel free to reopen if anything else comes to light 👍 |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/matomo-missing-privileges-in-mariadb/47379/2 |
This was me.. And its not only commandline, its also on matomo itself (web) |
I have one Matomo instance for which the command line diagnostics displays a
LOAD DATA INFILE
warning:However the System Check web page displays:
And checking directly with MariaDB:
This is with
However on around a dozen other sites all running the same versions of Matomo, MariaDB and PHP this issue doesn't occur, which is odd?
The text was updated successfully, but these errors were encountered: