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

Warn Super Users when archiving hasn't successfully finished in some time #13753

Closed
mattab opened this issue Nov 23, 2018 · 4 comments
Closed
Assignees
Labels
c: Performance For when we could improve the performance / speed of Matomo. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Nov 23, 2018

A very common forums support request is when users don't see any data in their report. We have extensive documentation about the many causes for no data..
A subset of these users actually successfully track the data (and can see it in the Visitor log) but they see "There is no data for this report" in all reports. And the likely cause of this problem is that the core:archive task is not working. (Refers to the 3rd bullet point in our FAQ Archiving triggered from the browser must be enabled, if it is disabled the Cron script must be configured properly)

So the idea is to help these users and put them on the path to resolving the issue.

Suggested steps:

In the System check page

  • When archiving last successfully executed
  • more than eg. 24 hours ago, issue a warning in the System check
  • more than 48 errors ago, maybe up the level to Error?
  • the message would say eg. "The archiving last processed successfully on Date_time which is 43 hours ago. Please check that you have setup a crontab calling core:archive console command, and that you have configured a MAILTO to receive errors by email if the archiving fails. You can also try to run the console command to archive your reports manually: \n ./path/to/matomo/console core:archive --url=http://example.org/piwik/" ( ideally we replace the URL automatically by the URL and maybe the path)

In the Reports themselves

When we write "There is no data for this report" and detect that archiving hasn't been successful in a while, then

  • we could add a message saying eg. "The archiving of your reports hasn't been executed recently, learn more about how to generate your reports."
  • maybe only Admins/Super Users should see this (or maybe it's useful to also show it to View users so they can alert others?)

Recommend users more strongly to deactivate browser archiving

we could guide users to setup the cron archiving for an optimal user experience. this would ultimately make Matomo much faster and would reduce amount of users who experience a slow Matomo (many people say Matomo is slow because browser archiving runs and is slow).

For example, if users don't have yet disabled the "Browser archiving trigger" feature:

  • We could write a message/even maybe a warning in the system check "For optimal performance and a speedy Matomo, it is highly recommended to set up a crontab to automatically archive the reports, and to disable browser triggering in the Matomo settings. Learn more"
@mattab mattab added c: Performance For when we could improve the performance / speed of Matomo. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. labels Nov 23, 2018
@mattab mattab added this to the 3.9.0 milestone Nov 23, 2018
@tsteur
Copy link
Member

tsteur commented Nov 23, 2018

Aren't we already notifying users by email when this happens?

@diosmosis
Copy link
Member

@mattab can you answer @tsteur's question?

@mattab
Copy link
Member Author

mattab commented Jan 16, 2019

We are not emailing them except the crontab may email then the error if they have the crontab setup correctly, but most of the time they don't have the crontab setup.

@tsteur
Copy link
Member

tsteur commented Jan 16, 2019

I see... I realise this was on cloud, not in core.

@diosmosis diosmosis self-assigned this Jan 17, 2019
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

3 participants