Cron errors

G’day guys,

Some details:

[ul]
[li] Reseller (NetOrigin - Perth, Western Australia) hosting with cPanel
[/li][li] Piwik installed using Installatron and is the latest version
[/li][/ul]

I’m getting some weird Cron issues.

Error in the last Piwik archive.php run:
1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: https://www.example.com/statistics/index.php?module=API&method=VisitsSummary.getVisits&idSite=12&period=day&date=last2&format=php&token_auth=XXXXXXXXXXXXXXXXXXXXXXX&trigger=archivephp. Response was 'curl_exec: Unknown SSL protocol error in connection to www.example.com:443

Querying Piwik API at: https://www.example.com/statistics/index.php
Running Piwik 2.0.3 as Super User: SuperUser
ERROR: Got invalid response from API request: https://www.example.com/statistics/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'curl_exec: Couldn’t resolve host ‘www.example.com’'
ERROR: The Piwik URL https://www.example.com/statistics/index.php does not seem to be pointing to a Piwik server. Response was ‘’.

Now I can’t see any downside to these errors as the statistics still update and it seems accurate.

However my Cron job keeps sending failed emails to me, which is slightly annoying.

Cron job is the following:


/usr/local/bin/php -f /home/example/public_html/statistics/misc/cron/archive.php — url=http://www.example.com/statistics/ > /home/example/piwik-archive-output.log

Any help would be greatly appreciated. Thank you so much for this product it rocks and is very good.

Regards,
Steven Swarts

Maybe you are using force_ssl in the configuration file?
in that case, the archive.php will force to use HTTPS instead of HTTP which is causing the error there.
Cheers!

Cheers matt for the reply,

So what should I change to remove this error?

I do have force ssl enabled. I also have a legitimate SSL certificate that is installed correctly.

Is my issue because I have the cron job set to http instead of https?? And why can it not find my hostname??

Steve

Maybe that’s a bug in openssl ? [SOLVED] Unknown SSL protocol error in connection / Networking, Server, and Protection / Arch Linux Forums