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 ignore month/week scheduler for geolocation database update #18353
Comments
@kvas11 Thanks for creating this issue. I'll try to investigate this. |
You are probably right, the 'DBIP-City.mmdb' file was last changed at September 9 - probably due to lack of write file permissions. I just set the correct file permission to the user, who's cron is executing archive job and will let you now if something changed. Thanks for the help |
Ah, that might be a "typical" issue. If you set up GeoIP via the UI, it downloads the file with the webserver user. If your cron runs with another user, it might not be able to write the file... |
Sorry for the "false alarm", everything is OK now, Db file was correctly downloaded and the message in the UI says: "It is next scheduled to run on 2021-12-01". Maybe some warning message about the errors during file update could be useful, similar like "System check" messages. |
@kvas11 didn't the run of the scheduled task return an error or warning, that indicated that the file couldn't be written? |
No, I could not find any info/error/warning about failed db update process in matomo cron job log |
Just checked that locally, and when the file is not writable the task actually outputs this:
So for me, there is an error displayed |
Stefan, you are right, when I fixed file/dir permissions, DB update process output was logged in cron log file. Now I would like to test it again with missing write permissions. How do I force GeoIP2AutoUpdater again in the next run? In Matomo UI, there are just 2 options (week, month). |
@kvas11 There should be a database record in |
Stefan, it works like described in your comment above. I apologize for stealing your time. Please, close this issue. |
No problem. Good to hear it works as expected. |
Matomo downloads database file from https://download.db-ip.com every hour (same time as console archive job is executed) instead of scheduled period (week or month).
Expected Behavior
Matomo download geoip db on scheduled period week or month.
Current Behavior
Matomo download geoip db every hour.
Steps to Reproduce (for Bugs)
Setup automatic geo ip download for DBIP / GeoIP 2 (Php)
Your Environment
The text was updated successfully, but these errors were encountered: