Archiving does not work on windows (IIS)


#1

Hi,

First off the following posts seem related to the problem that I am encountering, though do not offer a solution that has worked for me. (there are a few more too, but these were most closely related)

http://forum.piwik.org/read.php?2,113069
http://forum.piwik.org/read.php?2,107165

The problem is that I am unable to get auto archiving to work. When running the command referenced in the piwik docs I get the following error:

(some details changed to protect privacy)


C:\piwik> php.exe console core:archive --url=http://piwik.xxx.com
INFO CoreConsole[2014-06-19 07:22:42] [2656a] ---------------------------
INFO CoreConsole[2014-06-19 07:22:42] [2656a] INIT
INFO CoreConsole[2014-06-19 07:22:42] [2656a] Piwik is installed at: http://piwik.xxx.com/index.php
INFO CoreConsole[2014-06-19 07:22:42] [2656a] Running Piwik 2.3.0 as Super User
ERROR CoreConsole[2014-06-19 07:22:42] [2656a] Got invalid response from API request: http://piwik.xxx.com/index
.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'Go
t invalid response from API request: http://piwik.xxx.com/index.php?module=API&method=API.getDefaultMetricTransl
ations&format=original&serialize=1&trigger=archivephp. The response was empty. This usually means a server error. This s
olution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web s
erver Error Log file for more details.'
ERROR CoreConsole[2014-06-19 07:22:42] [2656a] Got invalid response from API request: http://piwik.xxx.com/index
.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'Go
t invalid response from API request: http://piwik.xxx.com/index.php?module=API&method=API.getDefaultMetricTransl
ations&format=original&serialize=1&trigger=archivephp. The response was empty. This usually means a server error. This s
olution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web s
erver Error Log file for more details.'
ERROR CoreConsole[2014-06-19 07:22:42] [2656a] The Piwik URL http://piwik.xxx.com/index.php does not seem to be
pointing to a Piwik server. Response was ''.
ERROR CoreConsole[2014-06-19 07:22:42] [2656a] The Piwik URL http://piwik.xxx.com/index.php does not seem to be
pointing to a Piwik server. Response was ''.

I get the same error when trying to archive from the web at “http://your-server.org/path/to/piwik/misc/cron/archive.php?token_auth=XYZ”. If I visit the url that the above says is returning ‘’. I get JSON data returned to me. I have had this problem for a while now (since version 2.1 I believe), but it is starting to become a problem as the number of websites that we track increased and I would like to use auto archiving.

I cannot see anything useful in any error logs that might help to identify the problem. I guess that it has something to do with IIS and PHP as they don’t seem to play that well together. I have allowed up to 4GB of ram for scripts to run within the php.ini, which I doubt is the real problem.

I am using windows server 2008 r2 with IIS 7.5 and PHP 5.5.7

Any help that can be provided would be greatly appreciated as I have ran out of things to try.

Thanks