Skip to content
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

mark BulkTracking plugin as required, not deactivable #14553

Closed
viktorix opened this issue Jun 21, 2019 · 9 comments · Fixed by #15248
Closed

mark BulkTracking plugin as required, not deactivable #14553

viktorix opened this issue Jun 21, 2019 · 9 comments · Fixed by #15248
Milestone

Comments

@viktorix
Copy link

Well this was unexpected. Troubleshooting another problem, I decided to upgrade Matomo to the latest beta. It's not a huge installation, so I used update option inside the dashboard. Everything went smoothly, until I logged back in. Now all sites show "No data has been recorded yet".

At first I thought data was wiped. So I went through the database and it does appear data is in the database, but for some reason Matomo isn't recognizing it anymore. The table prefix is correct in the config file, piwik_

It's only tracking data that's not showing up. Websites are still listed, settings are being saved, etc.

I tried running CLI command to reprocess data, that didn't help.

Few details:

  • We only import logs into Matomo. No client-side tracking.
  • All system checks are good
  • PHP 7.2.14
  • MariaDB 10.3.12

This is a list of plugins we've deactivated:

Annotations
BulkTracking
Contents
CustomPiwikJs
CustomVariables
DBStats
DevicePlugins
DevicesDetection
Ecommerce
Events
ExampleAPI
ExampleCommand
ExampleLogTables
ExamplePlugin
ExampleReport
ExampleSettingsPlugin
ExampleTracker
ExampleUI
ExampleVisualization
Feedback
GeoIp2
Goals
IntranetMeasurable
Live
MobileAppMeasurable
ProfessionalServices
Provider
Resolution
SegmentEditor
TagManager
UserCountry
UserCountryMap
UserId
Widgetize

Here's a screenshot of what I'm seeing in database:
12155597-f373-4bc0-8a81-b75901242552

Any ideas?

@tsteur
Copy link
Member

tsteur commented Jun 21, 2019

I suggest you look into your PHP error logs, and activate Matomo logging to a file https://matomo.org/faq/troubleshooting/faq_115/

Maybe check if visits get recorded in piwik_log_visit to know whether it is a tracking or an archiving issue

@viktorix
Copy link
Author

@tsteur the original problem wasn't with recording visits, it was showing historical data since 2016 in the dashboard. Logging seems to be working fine. We've tried importing dummy data and it worked fine, showing in the dashboard.

I did make progress. After upgrade, I was seeing "No data has been recorded yet" message and no access to dashboard. I didn't see big button that said hide it. After hiding that screen, I can access my historical data in the dashboard again. However, there's still one problem.

On "All Websites" page, all stats are zero. Here's an example:
image

It seems to be some sort of database problem. I enabled logging, including SQL logging. Every time I reload "All Websites" page, I see a new set of notices that apply to different website IDs. Here's an example:

image

@viktorix
Copy link
Author

"No data has been recorded yet" message is back after an hour. Matomo thinks there's no data for some reason.

@tsteur
Copy link
Member

tsteur commented Jun 22, 2019

It's normal this message is back after an hour. We've fixed an issue related to that message recently so the next rc2 might fix the problem. @mattab maybe could release an RC2 Monday morning first thing so people have more time to test. Can always release RC3, RC4, ...

@tsteur
Copy link
Member

tsteur commented Jun 22, 2019

Make sure though that visits are actually recorded, the "no visits" doesn't sound 100% normal.
Check in piwik_log_visit DB table if there are some recent visits if possible.

@mattab
Copy link
Member

mattab commented Jun 23, 2019

RC2 has been released, can you try upgrade @viktorix ?

@mattab
Copy link
Member

mattab commented Jun 23, 2019

This is a list of plugins we've deactivated:

In theory it shouldn't cause issues to deactivate plugins but it could be creating issues. Did you deactivate these plugins to troubleshoot issues or because you don't need them?

@viktorix
Copy link
Author

@mattab I deactivated those plugins trying to clean things up, since we only do access logs processing. What I didn't realize is that Bulk Tracking plugin is required for log importing to work. When I deactivated it at the end of May, it stopped importing logs so June had no data.

This caused the original issue I created this thread for. Doing some tests last few days, after upgrading to 3.10.0, Matomo will display "No data has been recorded yet" message if current month's data is empty. It doesn't "see" past data. I don't know if that's by design or a bug.

We imported logs for couple of sites for June, and they do not show "No data has been recorded yet" anymore. Yet, other sites without June's data still show that message.

Tested up to 3.10.0-RC4.

As a side note, I would suggest to mention in Bulk Tracking plugin's description that it is required for log importing to work.

@mattab mattab changed the title Upgrading from 3.9.1 to 3.10.0-rc1 "disconnected" all tracking data mark BulkTracking plugin as required, not deactivable Jun 28, 2019
@mattab mattab modified the milestones: 3.11.0, 3.12.0 Jun 28, 2019
@tsteur tsteur modified the milestones: 3.13.0, 4.1.0 Jul 31, 2019
@mattab mattab modified the milestones: 4.1.0, 4.0.0 Nov 6, 2019
@katebutler katebutler self-assigned this Dec 4, 2019
@sgiehl
Copy link
Member

sgiehl commented Feb 3, 2020

fixed with #15248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants