Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

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

$
0
0

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>

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles