Cron errors


G’day guys,

Some details:

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

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: Response was 'curl_exec: Unknown SSL protocol error in connection to

Querying Piwik API at:
Running Piwik 2.0.3 as Super User: SuperUser
ERROR: Got invalid response from API request: Response was 'curl_exec: Couldn’t resolve host ‘’'
ERROR: The Piwik URL 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= > /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.

Steven Swarts

(Matthieu Aubry) #2

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 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??


(Matthieu Aubry) #4

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