results in segmentation fault

(timwood) #1

[size=x-large]Piwik segmentation fault FAQ with solution list now published. Check it out: Troubleshooting - Analytics Platform - Matomo

Just got Piwik setup yesterday afternoon and all was working pretty well (thanks for an awesome product). I decided I would run the archive script nightly (as suggested) so I disable browser archiving and set “time_before_archive_considered_outdated” to 5 minutes. I tested the script yesterday and it seemed to work fine (with almost no data). This morning I had an email from cron which I’ve included below. As you can see it resulted in a segmentation fault. I went ahead and tested running on the command line as root and as the apache user, but I still get Segmentation fault immediately. Any idea what might be causing this?

/path/to/piwik/misc/cron/ line 18: 31613 Segmentation fault $CMD

Tim Wood

(timwood) #2

Just an update to my post. I restarted the server running Piwik just to see if that might help. After restarting, the first time I ran I got one extra line of information:

*** glibc detected *** double free or corruption (!prev): 0x0000000001296420 ***

Followed by:

/var/www/ line 18:  4328 Aborted                 $CMD

Any ideas?

-Tim Wood

(timwood) #3

Found a post in Piwik Hackers mailing list that talked about running a different command instead of At first when I tested this I got a seg fault, but an hour or so later it worked. WTF is going on. :frowning:

/usr/bin/php /path/to/piwik/index.php -- "module=API&method=VisitsSummary.getVisits&idSite=all&period=day&date=yesterday&format=xml&token_auth=KEY_HERE"


(Matthieu Aubry) #4

This is not a Piwik bug. Please use latest Piwik release, update your apache, php, mysql to the latest stable release.

(tsl) #5

we have the same issue.

Piwik 0.2.28

The stats for the sites are not updating but the data is collected in the db.

We try to run:

/usr/bin/php http://stats.domain.tld/index.php?module=API&method=VisitsSummary.getVisits&idSite=all&period=day&date=last52&format=xml&token_auth=<our token>

Results in:

*** glibc detected *** php: double free or corruption (!prev): 0x000000001c5cf110 ***
======= Backtrace: =========

If we try to run the cgi version we get a slightly different error:

/usr/bin/php-cgi http://stats.domain.tld/index.php?module=API&method=VisitsSummary.getVisits&idSite=all&period=day&date=last52&format=xml&token_auth=<our token>
[14366] EACCELERATOR: PHP crashed on opline 2 of deleteTable() at /srv/www/stats.domain.tld/core/DataTable/Manager.php:91

We have tried to disable eAccelerator to see if it helps but it does not.

If we run the commant through curl we get an ok output I think, but it does not seem to update the graphs.

curl "http://stats.domain.tld/index.php?module=API&method=VisitsSummary.getVisits&idSite=all&period=day&date=last52&format=xml&token_auth=<our token>"

What can we have done wrong or missed?


(Matthieu Aubry) #6

what is the error message when disabling eAccelerator and running archiving through the php cgi?

(vipsoft) #7

See workaround in

(Matthieu Aubry) #8

Piwik segmentation fault FAQ with solution list now published. Check it out: Troubleshooting - Analytics Platform - Matomo