Cron Archive runs no error, but does not update numbers in report

When using the cron to archive reports, new events are not reflected in the numbers.
If I change the settings to allow archive via browser, all the number update as they should.

I’ve setup cron to run the core:archive and have an error log setup to make sure everything is working properly. The cron job is setup under the www-data user as follows:

*/15 * * * * php /var/www/html/URL/console core:archive --matomo-domain=URL > /home/USER/MatomoErrors/matomo-archive-errors.log

I have it running every 15 minutes as I’m trouble shooting the issue.

The log file outputs the following:

INFO [2022-02-06 21:15:02] 7645  ---------------------------
INFO [2022-02-06 21:15:02] 7645  INIT
INFO [2022-02-06 21:15:02] 7645  Running Matomo 4.7.1 as Super User
INFO [2022-02-06 21:15:02] 7645  ---------------------------
INFO [2022-02-06 21:15:02] 7645  NOTES
INFO [2022-02-06 21:15:02] 7645  - Async process archiving supported, using CliMulti.
INFO [2022-02-06 21:15:02] 7645  - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2022-02-06 21:15:02] 7645  - Archiving was last executed without error 3 min 16s ago.
INFO [2022-02-06 21:15:02] 7645  ---------------------------
INFO [2022-02-06 21:15:02] 7645  START
INFO [2022-02-06 21:15:02] 7645  Starting Matomo reports archiving...
INFO [2022-02-06 21:15:02] 7645  Start processing archives for site 1.
INFO [2022-02-06 21:15:02] 7645    Will invalidate archived reports for today in site ID = 1's timezone (2022-02-06 00:00:00).
INFO [2022-02-06 21:15:02] 7645    Will invalidate archived reports for yesterday in site ID = 1's timezone (2022-02-05 00:00:00).
INFO [2022-02-06 21:15:02] 7645  Finished archiving for site 1, 0 API requests, Time elapsed: 0.078s [1 / 1 done]
INFO [2022-02-06 21:15:02] 7645  Done archiving!
INFO [2022-02-06 21:15:02] 7645  ---------------------------
INFO [2022-02-06 21:15:02] 7645  SUMMARY
INFO [2022-02-06 21:15:02] 7645  Processed 0 archives.
INFO [2022-02-06 21:15:02] 7645  Total API requests: 0
INFO [2022-02-06 21:15:02] 7645  done: 0 req, 123 ms, no error
INFO [2022-02-06 21:15:02] 7645  Time elapsed: 0.123s
INFO [2022-02-06 21:15:02] 7645  ---------------------------
INFO [2022-02-06 21:15:02] 7645  SCHEDULED TASKS
INFO [2022-02-06 21:15:02] 7645  Starting Scheduled tasks... 
INFO [2022-02-06 21:15:02] 7645  done
INFO [2022-02-06 21:15:02] 7645  ---------------------------


It acts as if there is just nothing to archive??? I’m so stuck. Everything seems to be working perfect otherwise. I’ve checked all permissions on files and folders, my system check is all clear, and I just don’t know what else could be causing the issue.

<details>
<summary>Click to view System Check</summary>

### Mandatory checks

#### PHP version >= 7.2.5:
 βœ” 7.4.3

#### PDO extension:
 βœ” 

#### PDO\MYSQL extension:
 βœ” 

#### MYSQLI extension:
 βœ” 

#### Other required extensions:
 βœ” zlib βœ” json βœ” filter βœ” hash βœ” session

#### Required functions:
 βœ” debug_backtrace βœ” eval βœ” hash βœ” gzcompress βœ” gzuncompress βœ” pack

#### Required PHP configuration (php.ini):
 βœ” session.auto_start = 0 βœ” max_execution_time = 0 OR = -1 OR >= 30

#### Directories with write access:
 βœ” $DOC_ROOT/tmp βœ” $DOC_ROOT/tmp/assets βœ” $DOC_ROOT/tmp/cache βœ” $DOC_ROOT/tmp/climulti βœ” $DOC_ROOT/tmp/latest βœ” $DOC_ROOT/tmp/logs βœ” $DOC_ROOT/tmp/sessions βœ” $DOC_ROOT/tmp/tcpdf βœ” $DOC_ROOT/tmp/templates_c

#### Directories with write access for Tag Manager:
 βœ” $DOC_ROOT/js


### Optional checks

#### Required Private Directories:
 βœ” All private directories are inaccessible from the internet.

#### Recommended Private Directories:
 βœ” All private directories are inaccessible from the internet.

#### File integrity:
 βœ” 

#### 64-bit PHP Binary:
 βœ” 

#### Tracker status:
 βœ” 

#### Memory limit:
 βœ” 1024M

#### Time zone:
 βœ” 

#### Open URL:
 βœ” fopen

#### PageSpeed disabled:
 βœ” 

#### GD > 2.x + Freetype (graphics):
 βœ” 

#### Other extensions:
 βœ” json βœ” libxml βœ” dom βœ” SimpleXML βœ” openssl

#### Other functions:
 βœ” shell_exec βœ” set_time_limit βœ” mail βœ” parse_ini_file βœ” glob βœ” gzopen βœ” md5_file

#### Filesystem:
 βœ” 

#### Setup Cron - Managing processes via CLI:
 βœ” Ok

#### Last Successful Archiving Completion:
 βœ” The archiving process completed successfully 00:11:25 ago.

#### Database abilities:
 βœ” UTF8mb4 charset βœ” LOAD DATA INFILE βœ” CREATE TEMPORARY TABLES βœ” Changing transaction isolation level

#### Max Packet Size:
 βœ” 

#### Forced SSL Connection:
 βœ” 

#### Geolocation:
 βœ” geoip2php (continent_code, continent_name, country_code, country_name, region_code, region_name, city_name, postal_code, lat, long)

#### Update over HTTPS:
 βœ” 

#### Writable JavaScript Tracker ("/matomo.js"):
 βœ” 


### Informational results

#### Matomo Version:
 4.7.1

#### Matomo Update History:
 4.7.0,4.6.2,

#### Matomo Install Version:
 4.6.2

#### Latest Available Version:
 4.7.1

#### Is Git Deployment:
 0

#### PHP_OS:
 Linux

#### PHP_BINARY:
 /usr/sbin/php-fpm7.4

#### PHP SAPI:
 fpm-fcgi

#### Timezone Version:
 0.system

#### PHP Timezone:
 UTC

#### PHP Time:
 1644179189

#### PHP Datetime:
 2022-02-06 20:26:29

#### PHP Disabled functions:
 pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, pcntl_unshare, 

#### PHP INI max_execution_time:
 600

#### PHP INI post_max_size:
 4G

#### PHP INI max_input_vars:
 1000

#### PHP INI zlib.output_compression:
 

#### Suhosin Installed:
 0

#### DB Prefix:
 matomo_

#### DB Charset:
 utf8mb4

#### DB Adapter:
 PDO\MYSQL

#### MySQL Version:
 10.3.32-MariaDB-0ubuntu0.20.04.1

#### Num Tables:
 119

#### Browser Segment Archiving Enabled:
 1

#### Development Mode Enabled:
 0

#### Internet Enabled:
 1

#### Multi Server Environment:
 0

#### Auto Update Enabled:
 1

#### Custom User Path:
 0

#### Custom Include Path:
 0

#### Release Channel:
 latest_stable

#### Plugins Activated:
 API, Actions, Annotations, BotTracker 2.06, BulkTracking, Contents, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, CustomDimensions, CustomJsTracker, CustomOptOut 2.0.1, DBStats, Dashboard, DevicePlugins, DevicesDetection, Diagnostics, Ecommerce, Events, Feedback, GeoIp2, Goals, Heartbeat, ImageGraph, Insights, Installation, Intl, IntranetMeasurable, LanguagesManager, Live, Login, MarketingCampaignsReporting 4.1.1, Marketplace, MobileMessaging, Monolog, Morpheus, MultiSites, Overlay, PagePerformance, PrivacyManager, ProfessionalServices, Proxy, Referrers, Resolution, RssWidget, SEO, ScheduledReports, SegmentEditor, SitesManager, TagManager, Tour, Transitions, TwoFactorAuth, UserCountry, UserCountryMap, UserId, UserLanguage, UsersManager, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable, Widgetize

#### Plugins Deactivated:
 MobileAppMeasurable

#### Plugins Invalid:
 

#### Server Info:
 nginx/1.18.0

#### Had visits in last 1 day:
 1

#### Had visits in last 3 days:
 1

#### Had visits in last 5 days:
 1

#### Archive Time Last Started:
 1644178502

#### Archive Time Last Finished:
 1644178503

#### User Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

#### Browser Language:
 en-us,en

#### Total Invalidation Count:
 4

#### In Progress Invalidation Count:
 4

#### Scheduled Invalidation Count:
 0

#### Earliest invalidation ts_started:
 2022-02-05 21:15:02

#### Latest invalidation ts_started:
 2022-02-06 06:30:02

#### Earliest invalidation ts_invalidated:
 2022-01-27 21:00:02

#### Latest invalidation ts_invalidated:
 2022-02-06 06:15:02

#### Number of segment invalidations:
 0

#### Number of plugin invalidations:
 0

#### List of plugins being invalidated:
 

#### Anonymize Referrer:
 

#### Do Not Track enabled:
 1

</details>

2 Likes

We’re experience the exact same issue with Matomo version 4.8.0. When we change β€œArchive reports when viewed from the browser” to yes then all stats are updated nicely, when we change it to no and use the cronjob below, nothing happens.

Running a cronjob for archiving:

5 * * * * www-data /usr/bin/php -d memory_limit=-1 /external-ebs-storage/piwik/console core:archive --url=https://<our url> --force-periods day,week,month --php-cli-options 2>> /external-ebs-storage/piwik_logs/piwik-reports-errors.log | tee -a /external-ebs-storage/piwik_logs/piwik-archive.log > /dev/null

Which produces the following log:

INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  INIT
INFO [2022-03-17 23:20:02] 50612  Running Matomo 4.8.0 as Super User
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  NOTES
INFO [2022-03-17 23:20:02] 50612  - Async process archiving supported, using CliMulti.
INFO [2022-03-17 23:20:02] 50612  - Reports for today will be processed at most every 1800 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2022-03-17 23:20:02] 50612  - Archiving was last executed without error 1 hours 0 min ago.
INFO [2022-03-17 23:20:02] 50612  - Will only process the following periods: day, week, month (--force-periods)
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  START
INFO [2022-03-17 23:20:02] 50612  Starting Matomo reports archiving...
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 1.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 1, 0 API requests, Time elapsed: 0.029s [1 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 2.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 2, 0 API requests, Time elapsed: 0.011s [2 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 3.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 3, 0 API requests, Time elapsed: 0.011s [3 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 4.
INFO [2022-03-17 23:20:02] 50612    Will invalidate archived reports for today in site ID = 4's timezone (2022-03-18 00:00:00).
INFO [2022-03-17 23:20:02] 50612    Will invalidate archived reports for yesterday in site ID = 4's timezone (2022-03-17 00:00:00).
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 4, 0 API requests, Time elapsed: 0.112s [4 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 5.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 5, 0 API requests, Time elapsed: 0.011s [5 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 6.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 6, 0 API requests, Time elapsed: 0.011s [6 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Done archiving!
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  SUMMARY
INFO [2022-03-17 23:20:02] 50612  Processed 0 archives.
INFO [2022-03-17 23:20:02] 50612  Total API requests: 0
INFO [2022-03-17 23:20:02] 50612  done: 0 req, 343 ms, no error
INFO [2022-03-17 23:20:02] 50612  Time elapsed: 0.343s
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  SCHEDULED TASKS
INFO [2022-03-17 23:20:02] 50612  Starting Scheduled tasks...
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\CustomJsTracker\Tasks.updateTracker...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.022s
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.deleteLogData...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.000s
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.anonymizePastData...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.001s
INFO [2022-03-17 23:20:02] 50612  done
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-18 00:20:02] 51012  ---------------------------
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 3, 0 API requests, Time elapsed: 0.011s [3 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 4.
INFO [2022-03-17 23:20:02] 50612    Will invalidate archived reports for today in site ID = 4's timezone (2022-03-18 00:00:00).
INFO [2022-03-17 23:20:02] 50612    Will invalidate archived reports for yesterday in site ID = 4's timezone (2022-03-17 00:00:00).
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 4, 0 API requests, Time elapsed: 0.112s [4 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 5.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 5, 0 API requests, Time elapsed: 0.011s [5 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Start processing archives for site 6.
INFO [2022-03-17 23:20:02] 50612  Finished archiving for site 6, 0 API requests, Time elapsed: 0.011s [6 / 6 done]
INFO [2022-03-17 23:20:02] 50612  Done archiving!
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  SUMMARY
INFO [2022-03-17 23:20:02] 50612  Processed 0 archives.
INFO [2022-03-17 23:20:02] 50612  Total API requests: 0
INFO [2022-03-17 23:20:02] 50612  done: 0 req, 343 ms, no error
INFO [2022-03-17 23:20:02] 50612  Time elapsed: 0.343s
INFO [2022-03-17 23:20:02] 50612  ---------------------------
INFO [2022-03-17 23:20:02] 50612  SCHEDULED TASKS
INFO [2022-03-17 23:20:02] 50612  Starting Scheduled tasks...
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\CustomJsTracker\Tasks.updateTracker...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.022s
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.deleteLogData...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.000s
INFO [2022-03-17 23:20:02] 50612  Scheduler: executing task Piwik\Plugins\PrivacyManager\Tasks.anonymizePastData...
INFO [2022-03-17 23:20:02] 50612  Scheduler: finished. Time elapsed: 0.001s
INFO [2022-03-17 23:20:02] 50612  done
INFO [2022-03-17 23:20:02] 50612  ---------------------------

Running a system check:

<details>
<summary>Click to view System Check</summary>

### Mandatory checks

#### PHP version >= 7.2.5:
 βœ” 7.4.3

#### PDO extension:
 βœ” 

#### PDO\MYSQL extension:
 βœ” 

#### MYSQLI extension:
 βœ” 

#### Other required extensions:
 βœ” zlib βœ” json βœ” filter βœ” hash βœ” session

#### Required functions:
 βœ” debug_backtrace βœ” eval βœ” hash βœ” gzcompress βœ” gzuncompress βœ” pack

#### Required PHP configuration (php.ini):
 βœ” session.auto_start = 0 βœ” max_execution_time = 0 OR = -1 OR >= 30

#### Directories with write access:
 βœ” $DOC_ROOT/tmp βœ” $DOC_ROOT/tmp/assets βœ” $DOC_ROOT/tmp/cache βœ” $DOC_ROOT/tmp/climulti βœ” $DOC_ROOT/tmp/latest βœ” $DOC_ROOT/tmp/logs βœ” $DOC_ROOT/tmp/sessions βœ” $DOC_ROOT/tmp/tcpdf βœ” $DOC_ROOT/tmp/templates_c


### Optional checks

#### Required Private Directories:
βœ” 

#### File integrity:
 βœ” 

#### 64-bit PHP Binary:
 βœ” 

#### Tracker status:
 βœ” 

#### Memory limit:
 βœ” 512M

#### Time zone:
 βœ” 

#### Open URL:
 βœ” curl

#### PageSpeed is turned off:
 βœ” 

#### GD > 2.x + FreeType (graphics):
 βœ” 

#### Other extensions:
 βœ” json βœ” libxml βœ” dom βœ” SimpleXML βœ” openssl

#### Other functions:
 βœ” shell_exec βœ” set_time_limit βœ” mail βœ” parse_ini_file βœ” glob βœ” gzopen βœ” md5_file

#### Filesystem:
 βœ” 

#### Set up Cron - Managing processes via CLI:
 βœ” Ok

#### Last Successful Archiving Completion:
 βœ” The archiving process completed successfully 00:34:45 ago.

#### Database abilities:
 βœ” UTF8mb4 charset βœ” LOAD DATA INFILE βœ” CREATE TEMPORARY TABLES βœ” Changing transaction isolation level

#### Max Packet Size:
 βœ” 

#### Forced SSL Connection:
 βœ” 

#### Geolocation:
 ⚠ Warning: The default location provider guesses a visitor's country based on the language they use. This is not very accurate, so we recommend installing and using a geolocation database.

#### Update over HTTPS:
 βœ” 

#### Writable JavaScript Tracker ("/matomo.js" & "/piwik.js"):
 βœ” 


### Informational results

#### Matomo Version:
 4.8.0

#### Matomo Update History:
 4.4.0,4.2.1,4.1.1,3.11.0,

#### Matomo Install Version:
 Unknown - pre 3.8.

#### Latest Available Version:
 4.8.0

#### Is Git Deployment:
 0

#### PHP_OS:
 Linux

#### PHP SAPI:
 apache2handler

#### Timezone Version:
 0.system

#### PHP Timezone:
 UTC

#### PHP Time:
 1647603587

#### PHP Datetime:
 2022-03-18 11:39:47

#### PHP Disabled functions:
 pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, pcntl_unshare, 

#### PHP INI max_execution_time:
 3600

#### PHP INI post_max_size:
 20G

#### PHP INI max_input_vars:
 1000

#### PHP INI zlib.output_compression:
 

#### Curl Version:
 7.68.0, OpenSSL/1.1.1f

#### Suhosin Installed:
 0

#### DB Prefix:
 piwik_

#### DB Charset:
 utf8mb4

#### DB Adapter:
 PDO\MYSQL

#### MySQL Version:
 5.7.37-log

#### Num Tables:
 363

#### Browser Segment Archiving Enabled:
 1

#### Development Mode Enabled:
 0

#### Internet Enabled:
 1

#### Multi Server Environment:
 0

#### Auto Update Enabled:
 1

#### Custom User Path:
 0

#### Custom Include Path:
 0

#### Release Channel:
 latest_stable

#### Plugins Activated:
 API, Actions, Annotations, BulkTracking, Contents, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, CustomDimensions, CustomJsTracker, CustomVariables 4.0.1, DBStats, Dashboard, DevicePlugins, DevicesDetection, Diagnostics, Ecommerce, Events, Feedback, ForceSSL 4.0.1, GeoIp2, Goals, Heartbeat, ImageGraph, Insights, Installation, Intl, IntranetMeasurable, InvalidateReports 4.0.1, LanguagesManager, Live, Login, Marketplace, MobileMessaging, Monolog, Morpheus, MultiSites, Overlay, PagePerformance, PrivacyManager, ProfessionalServices, Proxy, Referrers, Resolution, RssWidget, SEO, ScheduledReports, SegmentEditor, SitesManager, Tour, Transitions, TwoFactorAuth, UserCountry, UserCountryMap, UserId, UserLanguage, UsersManager, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable, Widgetize

#### Plugins Deactivated:
 BotTracker 2.07, CustomAlerts 4.0.3, DevicePixelRatio 2.0.0, JsTrackerForceAsync 4.0.0, MarketingCampaignsReporting 4.1.1, MobileAppMeasurable, Provider 4.0.3, QueuedTracking 4.0.2, ReferrersManager 4.0.1, SearchEngineKeywordsPerformance 3.4.1, SecurityInfo 3.0.7, TagManager, TreemapVisualization 3.1.1

#### Plugins Invalid:
 

#### Server Info:
 Apache/2.4.41 (Ubuntu)

#### Had visits in last 1 day:
 1

#### Had visits in last 3 days:
 1

#### Had visits in last 5 days:
 1

#### Archive Time Last Started:
 1647601501

#### Archive Time Last Finished:
 1647601502

#### User Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0

#### Browser Language:
 en-us,en

#### Total Invalidation Count:
 1125

#### In Progress Invalidation Count:
 0

#### Scheduled Invalidation Count:
 0

#### Earliest invalidation ts_started:
 

#### Latest invalidation ts_started:
 

#### Earliest invalidation ts_invalidated:
 2022-03-15 08:21:23

#### Latest invalidation ts_invalidated:
 2022-03-18 10:20:02

#### Number of segment invalidations:
 0

#### Number of plugin invalidations:
 0

#### List of plugins being invalidated:
 

#### Anonymize Referrer:
 

#### Do Not Track enabled:
 0

</details>

What could be the cause?

1 Like

@innocraft any idea?

1 Like

Experiencing the same thing. Since using to 4.8.0. We have freshly installed a new matomo server wanted to use the "Archive reports when viewed from the browser” to β€œNo” and we set the cron to run every 30 minutes.

It keeps saying exactly what the user above me says, specifically this part β€œProcessed 0 archives” :

INFO [2022-03-17 23:20:02] 50612 ---------------------------
INFO [2022-03-17 23:20:02] 50612 SUMMARY
INFO [2022-03-17 23:20:02] 50612 Processed 0 archives.
INFO [2022-03-17 23:20:02] 50612 Total API requests: 0
INFO [2022-03-17 23:20:02] 50612 done: 0 req, 343 ms, no error
INFO [2022-03-17 23:20:02] 50612 Time elapsed: 0.343s
INFO [2022-03-17 23:20:02] 50612 ---------------------------

1 Like

Hi there.
Could any of you please try to run the archiving with he -v option.
This can produce a lot of output, but it might help us to identify why no new archives are being processed.
Cheers,

@SteveG Hi Stefan,

I executed the command with the -v option this is the result:

INFO [2022-03-21 08:52:25] 99070  ---------------------------
INFO [2022-03-21 08:52:25] 99070  INIT
INFO [2022-03-21 08:52:25] 99070  Running Matomo 4.8.0 as Super User
INFO [2022-03-21 08:52:25] 99070  ---------------------------
INFO [2022-03-21 08:52:25] 99070  NOTES
INFO [2022-03-21 08:52:25] 99070  - Async process archiving supported, using CliMulti.
INFO [2022-03-21 08:52:25] 99070  - Reports for today will be processed at most every 1800 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2022-03-21 08:52:25] 99070  - Archiving was last executed without error 4s ago.
INFO [2022-03-21 08:52:25] 99070  - Will only process the following periods: day, week, month (--force-periods)
INFO [2022-03-21 08:52:25] 99070  ---------------------------
INFO [2022-03-21 08:52:25] 99070  START
INFO [2022-03-21 08:52:25] 99070  Starting Matomo reports archiving...
DEBUG [2022-03-21 08:52:25] 99070  Applying queued rearchiving...
INFO [2022-03-21 08:52:25] 99070  Start processing archives for site 1.
DEBUG [2022-03-21 08:52:25] 99070  Checking for queued invalidations...
DEBUG [2022-03-21 08:52:25] 99070    Today archive can be skipped due to no visits for idSite = 1, skipping invalidation...
DEBUG [2022-03-21 08:52:25] 99070    Yesterday archive can be skipped due to no visits for idSite = 1, skipping invalidation...
DEBUG [2022-03-21 08:52:25] 99070  Done invalidating
DEBUG [2022-03-21 08:52:25] 99070  No next invalidated archive.
INFO [2022-03-21 08:52:25] 99070  Finished archiving for site 1, 0 API requests, Time elapsed: 0.029s [1 / 3 done]
INFO [2022-03-21 08:52:25] 99070  Start processing archives for site 2.
DEBUG [2022-03-21 08:52:25] 99070  Checking for queued invalidations...
DEBUG [2022-03-21 08:52:25] 99070    Today archive can be skipped due to no visits for idSite = 2, skipping invalidation...
DEBUG [2022-03-21 08:52:25] 99070    Yesterday archive can be skipped due to no visits for idSite = 2, skipping invalidation...
DEBUG [2022-03-21 08:52:25] 99070  Done invalidating
DEBUG [2022-03-21 08:52:25] 99070  No next invalidated archive.
INFO [2022-03-21 08:52:25] 99070  Finished archiving for site 2, 0 API requests, Time elapsed: 0.012s [2 / 3 done]
INFO [2022-03-21 08:52:25] 99070  Start processing archives for site 4.
DEBUG [2022-03-21 08:52:25] 99070  Checking for queued invalidations...
INFO [2022-03-21 08:52:25] 99070    Will invalidate archived reports for today in site ID = 4's timezone (2022-03-21 00:00:00).
DEBUG [2022-03-21 08:52:25] 99070    Found usable archive for [idSite = 4, period = day 2022-03-21,2022-03-21, segment = , plugin = , report = ], skipping invalidation.
INFO [2022-03-21 08:52:25] 99070    Will invalidate archived reports for yesterday in site ID = 4's timezone (2022-03-20 00:00:00).
DEBUG [2022-03-21 08:52:25] 99070    Found usable archive for [idSite = 4, period = day 2022-03-20,2022-03-20, segment = , plugin = , report = ], skipping invalidation.
DEBUG [2022-03-21 08:52:25] 99070  Done invalidating
DEBUG [2022-03-21 08:52:25] 99070  No next invalidated archive.
INFO [2022-03-21 08:52:25] 99070  Finished archiving for site 4, 0 API requests, Time elapsed: 0.018s [3 / 3 done]
DEBUG [2022-03-21 08:52:25] 99070  No more sites left to archive, stopping.
INFO [2022-03-21 08:52:25] 99070  Done archiving!
INFO [2022-03-21 08:52:25] 99070  ---------------------------
INFO [2022-03-21 08:52:25] 99070  SUMMARY
INFO [2022-03-21 08:52:25] 99070  Processed 0 archives.
INFO [2022-03-21 08:52:25] 99070  Total API requests: 0
INFO [2022-03-21 08:52:25] 99070  done: 0 req, 138 ms, no error
INFO [2022-03-21 08:52:25] 99070  Time elapsed: 0.138s
INFO [2022-03-21 08:52:25] 99070  ---------------------------
INFO [2022-03-21 08:52:25] 99070  SCHEDULED TASKS
DEBUG [2022-03-21 08:52:25] 99070  26 scheduled tasks loaded
INFO [2022-03-21 08:52:25] 99070  Starting Scheduled tasks...
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 0:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 1:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 2:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 3:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 4:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 5:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 6:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 7:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 8:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 9:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 10:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 11:
DEBUG [2022-03-21 08:52:25] 99070  Executing tasks with priority 12:
INFO [2022-03-21 08:52:25] 99070  done
INFO [2022-03-21 08:52:25] 99070  ---------------------------

Site ID 4 is the site for which reports should be generated.

Thanks!

So for some reason the (possibly empty) archive that was created before is considered as β€œusable”. That means Matomo has marked it as finished, which actually should never be the case for yesterday or today. Which timezones are you using for the site in Matomo and on your server?

@SteveG

The following settings are configured on the website and the server:

@Kamuffel @Babita_De_Boer @SteveG @Garrett @Abhishek_Sharma1
Is there any ticket open in GitHub?

@heurteph-ei Not for as far as I can see. Can you find anything related?

Not that I am aware of

@Kamuffel @Babita_De_Boer @Garrett @Abhishek_Sharma1
What hapens if you run the task manually (outside the CRON)? does it work?
For reference, I found this:
Problème : Cron + Docker - Support en français (French) - Matomo forums
β†’ The ENV var was not properly set