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

cron archive.sh Segmentation fault with to many unique records in piwik_log_action #2531

Closed
anonymous-matomo-user opened this issue Jun 30, 2011 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

We have piwik running in a medium to high traffic website.

Of of the url's being tracked is following: http://www.example.com/unique_token=123489DSFAAF23DSAF34321FDASDF

This page has generated 15000 records with unique name field in the piwik_log_action table.

When we run the archive script it segfaults on the first processing step, the rest is fine. The error is following:

/var/www/piwik/misc/cron/archive.sh: line 73: 18891 Segmentation fault $CMD

All suggestions in the FAQ are tried but none seem to work.

One solution found was to remove the token from the name field in every record. But this would not be a long term solution as it would require constant updating the database or filtering at tracker level.
Keywords: segfault cron

@mattab
Copy link
Member

mattab commented Jun 30, 2011

what version of PHP are you using?

This is PHP bug, not Piwik, even though it is triggered by Piwik heavy memory usage.

@robocoder
Copy link
Contributor

A similar issue arose in #1750.

It's a couple of more lines in your tracking code, eg

...
    var url = window.location;
    tracker.setCustomUrl( url.replace(/\/unique_token=.*/, '') );
...
    tracker.trackPageView();

@mattab
Copy link
Member

mattab commented Jul 15, 2011

See the FAQ for segmentation fault

@anonymous-matomo-user anonymous-matomo-user added this to the 1.5.1 Piwik 1.5.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants