-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
If the period is not enabled in config "The period is not supported" message is shown in cron archiving #17872
Comments
Also, I believe I found the log of the very first time the archiving was attempted after the upgrade. The log is listed below. INFO [2021-08-10 18:45:01] 111145 --------------------------- [Exception] |
Hi @mattkolb can you run the core:archive command with EDIT: Thanks, good timing. |
@mattkolb thanks for the stack trace, this looks like a regression, I'll look for a fix today. |
If it helps, here is the current stack trace: INFO [2021-08-10 19:50:17] 23574 --------------------------- [Exception] Exception trace: |
Still appears to have issues. Current output below. INFO [2021-08-11 13:37:14] 29963 --------------------------- [Exception] Exception trace: |
That appears to have fixed it. Thanks for the fast turnaround time. Am I correct that these changes will most likely be included in the 4.5 release? |
@mattkolb yes, 4.5. Unlikely to be earlier. |
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
The text was updated successfully, but these errors were encountered: