I recently installed PIWIK and added about 80 domains to it and set up all the tracking, everythign was great until PIWIK started to run slowly. I noticed that there was a cron job running every hour so I set the options to not trigger with the web browser and instead use the 3600 rule.
PIWIK is now much faster and does not time out, however I now cannot see any archive data. All data is archived every hour right? does this mean it is deleted or moved somewhere else?
Sureley I should still be able to see the data despite the housekeeping rule?
I am concerned that when the reports run the next time all my clients will receive empty reports.
Can someone work with me to find a solution to this? I would be eternally grateful?!?!
Thanks for the report.
Can you please enable logging of the cron job output in the file archive.log as per the doc?
Also make sure you write >> instead of > so that several runs are written in the log file.
There is the same report by another user. Can you please email me access to your piwik mysql db, via phpmyadmin for example? and the archive.log file after a few hours/day ? at matt@piwik .org
I have been to the general settings and changed the setting back to allow the archive to trigger from the browser, this has returned the data to the screen.
I have left the setting at 3600 seconds and I have left in place the cron job to action archive.sh on an hourly basis.
It appears to have resolved the issue and all data and reports look good.
Can you tell me how / which file I need to modify to change the timeout settings or the report archiving settings so that i can bring the site backup. Even the mobile app times out as it is taking too long to render the data.
I need you help and suggestions going forward on what the best setting will be, I need the data to be visible (even if archived) and I need the system to run at a usable speed.
additionally the email reports are not sending.
The local mail function works, as the password recovery email arrives no problems. the reports do not send and the send report now also fails to make them arrive in my inbox, How would I go about fixing this too?
ok so the only way this 'appears; to work is
if the browser trigger is set to on.
the timeout is still 7200 but I don’t know if this is being read by the system.
I am thinking of running the cron every half hour instead of every hour ? this would process the data and keep it up to date more often?
Could the previous error in the cron be simply that the cron thinks it’s taking too long and believes it’s fallen over when in fact it is running?
I have just manually run the following cron …/misc/cron/archive.sh
I received the following result
Archiving for idsite = 49 done!
Reports archiving finished.
Hi
Thanks the cron has now been correctly configured to execute the archive.php as described in your link.
The output is all but 8 of the 49 sites correctly archive.
Thise that dont have the following errors
ERROR: Got invalid response from API request
The response was empty. This usually means a server error (for example, PHP reached the maximum memory_limit). Please check your Web server Error Log file for more details.
The error log simply says "premature end of script head’
You expertise as always is very much appreciated in helping to resolve this issue.