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 archive.sh 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 archive.sh 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/archive.sh: line 18: 31613 Segmentation fault $CMD
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 archive.sh I got one extra line of information:
Found a post in Piwik Hackers mailing list that talked about running a different command instead of archive.sh. At first when I tested this I got a seg fault, but an hour or so later it worked. WTF is going on.