After updating to 2.1 RC1, my cron running archive.php is not working any more (the cron is still running but the archive.php gives an error):
archive.php --url=https://my-url-to/piwik/
INFO [2014-02-13 08:52:07] [21610] ---------------------------
INFO [2014-02-13 08:52:07] [21610] INIT
INFO [2014-02-13 08:52:07] [21610] Querying Piwik API at: https://my-url-to/piwik/index.php
INFO [2014-02-13 08:52:07] [21610] Running Piwik 2.1-rc1 as Super User: admin
Cannot find /proc/version - is /proc mounted?
INFO [2014-02-13 08:52:09] [21610] ERROR: Got invalid response from API request: https://my-url-to/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. The response was empty. This usually means a server error. This solution to this error is generally to increase the value of ‘memory_limit’ in your php.ini file. Please check your Web server Error Log file for more details.
INFO [2014-02-13 08:52:09] [21610] ERROR: The Piwik URL https://my-url-to/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘’.
Error in the last Piwik archive.php run:
The Piwik URL https://my-url-to/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘’.
So it seams that on my server this feature is not available. Maybe you should not rely on that since due to security reasons, proc/version might not be available on all systems.
$ ./console core:archive --url=http://piwik.[server].com
INFO CoreConsole[2014-05-08 07:19:20] [391d2] ---------------------------
INFO CoreConsole[2014-05-08 07:19:20] [391d2] INIT
INFO CoreConsole[2014-05-08 07:19:20] [391d2] Piwik is installed at: http://piwik.[server].com/index.php
INFO CoreConsole[2014-05-08 07:19:20] [391d2] Running Piwik 2.2.2 as Super User
Cannot find /proc/version - is /proc mounted?
ERROR CoreConsole[2014-05-08 07:19:20] [391d2] Got invalid response from API request: http://piwik.[server].com/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.
$ cat /proc/version
cat: /proc/version: No such file or directory
Looks like /proc is really not mounted on our shared hoster:
oK, would you please email to matt@piwik your SSH access to Piwik so I can reproduce? I should then be able to find the bug and fix it in piwik. thanks!
mounted /proc and not mounted /proc is both a “stream” resource type. So is_resource() is not sufficient enough to test if /proc is really mounted or not I guess.
create an empty folder somehwere and then compare