Error when archiving with windows task scheduler


#1

I added a task with the following command and i have tried to run it also in the command line of our Windows 2012 server but all i got is this error and i can’t figure out what is wrong. Please help me.

C:\php>php “D:\htdocs_alojamento\inclusao\stats\console” core:archive --url=htt
://inclusao.ese.ipp.pt/stats/
INFO CoreConsole[2014-06-03 14:23:31] [73024] ---------------------------
INFO CoreConsole[2014-06-03 14:23:31] [73024] INIT
INFO CoreConsole[2014-06-03 14:23:31] [73024] Piwik is installed at: http://inc
usao.ese.ipp.pt/stats/index.php
INFO CoreConsole[2014-06-03 14:23:31] [73024] Running Piwik 2.3.0 as Super User
ERROR CoreConsole[2014-06-03 14:23:53] [73024] Got invalid response from API re
uest: Piwik › Installation
tMetricTranslations&format=original&serialize=1&trigger=archivephp. Response wa
’Got invalid response from API request: http://inclusao.ese.ipp.pt/stats/index
php?module=API&method=API.getDefaultMetricTranslations&format=original&serializ
=1&trigger=archivephp. The response was empty. This usually means a server erro
. This solution to this error is generally to increase the value of ‘memory_lim
t’ in your php.ini file. Please check your Web server Error Log file for more d
tails.'
ERROR CoreConsole[2014-06-03 14:23:53] [73024] Got invalid response from API re
uest: Piwik › Installation
tMetricTranslations&format=original&serialize=1&trigger=archivephp. Response wa
’Got invalid response from API request: http://inclusao.ese.ipp.pt/stats/index
php?module=API&method=API.getDefaultMetricTranslations&format=original&serializ
=1&trigger=archivephp. The response was empty. This usually means a server erro
. This solution to this error is generally to increase the value of ‘memory_lim
t’ in your php.ini file. Please check your Web server Error Log file for more d
tails.'
ERROR CoreConsole[2014-06-03 14:23:53] [73024] The Piwik URL http://inclusao.es
.ipp.pt/stats/index.php does not seem to be pointing to a Piwik server. Respons
was ‘’.
ERROR CoreConsole[2014-06-03 14:23:53] [73024] The Piwik URL http://inclusao.es
.ipp.pt/stats/index.php does not seem to be pointing to a Piwik server. Respons
was ‘’.


(Matthieu Aubry) #2

Please check your server error log file, what error message is there? then look at FAQ for this error: FAQ Archive - Analytics Platform - Matomo


#3

I get the exact same error also running on Windows. I checked the error logs both for PHP and the IIS server but no errors were logged. I also looked into the Event Log and found nothing there. Since this is on my development server I have tried giving Read/Write/Modify permissions on the directories to be sure that isn’t an issue. Other than the server name, the error message I received matches the above word for word. It does detect the installation and the account and I can see we are logging data and the Piwik pages all render correctlyso it’s unlikely its an installation error. I’ve no idea where else to look.

OS: Windows Server 2008 R2
PHP: v5.5.13
Piwik: v2.3


#4

Hi all
I do have exactly the same problem and searching for a solution. I found the following ticket in trac: Unable to Archive Data in Windows · Issue #5375 · matomo-org/matomo · GitHub and it is set to answered closed, but I’m unable to find the solution. Once I’m calling the links from the log output provided by core:archive, I do receive a response from webserver, which looks valid on a first glance. No errors are logged in Apache.

I’m running Piwik 2.3 on Win 2k8 R2 with Apache 2.4 and PHP 5.5.

Does someone have an idea / solution?