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
Segments not working on preprocessed files since Matomo 4.0.0 #16842
Comments
Thanks for the report @robles-design I think @diosmosis is already working on this one |
Matomo 4.0.4 Same problem. Some senments are still processed, but most of them are not. |
@gusevmaksim for one of the segments that isn't being archived, would you be able to post a screenshot of the segment editor w/ that segment loaded? (Or select the row of the segment in the segment table and post the result?) |
For me it works now with 4.0.4 but I had some similar problems after upgrading. Not all segments were created and I got a lot of server errors like Error: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. After logging in via SSH and running the commands manually all segments were created and the server errors are gone. Maybe this helps. |
I updated the database via the console, there were no errors in the process. |
@gusevmaksim I think this might be fixed by one of the existing PRs, but just to be certain, can you run |
Similar logs for each segment |
@gusevmaksim can you check and see if version 4.0.5 works for you? |
The problem remained in place. The segments are empty. In the logs by segments, everything goes well, no errors are visible |
@gusevmaksim In this case I think it may not be related to the archiving changes... can you try requesting the API directly for those requests, eg, sending requests:
And for this specific segment, can you load it in matomo and see what the |
|
@gusevmaksim thanks, this narrows the problem down, I should be able to find a fix. |
@gusevmaksim I was able to reproduce the issue and found a fix that worked for me here: #16947 . Would you be able to apply this fix, run |
Yes, the segments started working after the fix |
But now there is a problem with recalculating segments, the information on the page https://matomo.org/faq/how-to/faq_155/ does not help. Dropping tables piwik_archive_numeric_2020_12 and piwik_archive_blob_2020_12 also. The general statistics are recalculated normally, and the segments are only for today and yesterday. |
@gusevmaksim can you try running the
then run |
I tried running ./console core: invalidate-report-data --dates = didn't help. The segments are recalculated only for today and yesterday |
@gusevmaksim can you post the command you used for |
./console core:invalidate-report-data --dates=2020-12-04,2020-12-12 Without specifying segments and other parameters. I also tried to delete talits from the database with report archives piwik_archive_numeric_2020_12 и piwik_archive_blob_2020_12. General statistics are recalculated, segments are not. |
@gusevmaksim this isn't something I can reproduce, and it's not something I can debug without the command or core:archive output. Would you be able to provide this information by email? Or could you create a new segment that does not have sensitive information, but has one character from the original segment that would be encoded (ie, '/' or ',') and then provide the command + outputs? |
I just noticed that the segment, the name of which consists only of the numbers "404", was recalculated normally. |
|
@gusevmaksim can you try w/ a |
|
@gusevmaksim did you run |
It gave nothing |
@gusevmaksim I'm going to need more information than that to debug your issue. If you can email me, please do so. |
Just FYI I'm facing same problem on Matomo 4.0.5. |
@aqustiq do you mean you aren't seeing any data for any segments? Or no data for specific segments? Is there data for some days but not all? |
@diosmosis I cannot see the data in browser but when I go to segment and click to edit then "Test" I can see data. I have update today to version 4.1.0. I have invalidate all reports using the plugin then manually archived. |
This signals the "All Visits" segment was archived, it just means the segment parameter was empty. Can you provide the segment the definition for the "Remote work toolkit" segment along with what appears in the |
Since updating to 4.1.0 yesterday I have the same issue as in my entry post and errors like this: `INFO [2020-12-23 14:35:21] 11342 Error: Got invalid response from API request: ?module=API&method=CoreAdminHome.archivent=deviceType%253D%253DSmartphone%252CdeviceType%253D%253DTablet%252CdeviceType%253D%253DPhablet&trigger=archivephp. Resig_device_type' segment value Smartphone,deviceType==Tablet,deviceType==Phablet"}' [Exception] |
After updating to version 4.1.0, segments were no longer archived again. |
@diosmosis And this is the for not working page: And I checked for all the days before 2020-12-18 doesn't work the page. |
@robles-design what you're experiencing should be fixed by #17004 |
@aqustiq this is the same issue @gusevmaksim is experiencing. I haven't been able to isolate the cause though. Would you be able to provide the full core:archive output w/ |
@diosmosis thanks, seems to work. |
@diosmosis using Invalidate plugin i have invalidate all archives for site 1 and segment "Remote work toolkit". |
Note: there are still some issues in 4.1.0 which are hopefully (after #17004 and possibly others) now fixed in 4.1.1 beta. You can use the beta easily, see: if you still have any issue with the beta, please open a new issue, and we'll continue investigating. Thanks! |
@gusevmaksim I'm experience the same issue as you with a similar segment. "Page URL" - "Starts with" - "https://example.com" All other segments are being processed as expected but this one doesn't. Did you find a way forward for this? |
Hi, I'm using Matomo 4.0.3. Since version 4.0.0 segments doesn't work on preprocessed files (see screenshot). If I switch to Visitors Log they are displayed correctly. Maybe it's the same issue like #16832.
Thanks for the great work. I love the new performance metrics.
The text was updated successfully, but these errors were encountered: