-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
We don't use yearly archives because they take too long to process. Because of this, we have the following settings in our config:
[General]
enabled_periods_UI = "day,week,month,range"
enabled_periods_API = "day,week,month,range"
After upgrading from 3.14.0 to 4.4.1, I'm unable to run the cron archive. The output is below.
console core:archive --url=... --force-periods=day --disable-scheduled-tasks
INFO [2021-08-10 18:58:48] 85257 ---------------------------
INFO [2021-08-10 18:58:48] 85257 INIT
INFO [2021-08-10 18:58:48] 85257 Running Matomo 4.4.1 as Super User
INFO [2021-08-10 18:58:48] 85257 ---------------------------
INFO [2021-08-10 18:58:48] 85257 NOTES
INFO [2021-08-10 18:58:48] 85257 - Async process archiving supported, using CliMulti.
INFO [2021-08-10 18:58:48] 85257 - Reports for today will be processed at most every 10 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2021-08-10 18:58:48] 85257 - Archiving was last executed without error 7s ago
INFO [2021-08-10 18:58:48] 85257 - Will only process the following periods: day (--force-periods)
INFO [2021-08-10 18:58:48] 85257 ---------------------------
INFO [2021-08-10 18:58:48] 85257 START
INFO [2021-08-10 18:58:48] 85257 Starting Matomo reports archiving...
INFO [2021-08-10 18:58:48] 85257 Start processing archives for site 1.
INFO [2021-08-10 18:58:48] 85257 Will invalidate archived reports for today in site ID = 1's timezone (2021-08-10 00:00:00).
ERROR [2021-08-10 18:58:48] 85257 Uncaught exception: /home/aatrkco/public_html/stats/core/Period/Factory.php(131): The period 'year' is not supported. Try any of the following instead: day, week, month, range [Query: , CLI mode: 1]
[Exception]
The period 'year' is not supported. Try any of the following instead: day, week, month, range