Archiving Command Stopped Working

This was working fine and now it does not. Not sure how to troubleshoot this issue.

This is the archiving command:

D:\PHP\php.exe “D:\piwik\console” core:archive --accept-invalid-ssl-cer
tificate --url=https://piwik.lyondell.com/ --force-all-websites --force-all-peri
ods=315576000 --force-date-last-n=1000 1>e:\PiwikArchiveTask.txt

This is the Issue.

INFO [2019-09-25 15:26:29] 5544 Error: Got invalid response from API request: ?module=API&method=API.get&idSite=6&period=day&date=last1000&format=php&trigger=archivephp. Response was ’

Not Found

Not Found


HTTP Error 404. The requested resource is not found.

' INFO [2019-09-25 15:26:29] 5544 Error: Empty or invalid response '' for website id 6, Time elapsed: 0.280s, skipping

Hi,

Well, https://piwik.lyondell.com/ doesn’t seem to exist. If it is an intranet page, make sure that the URL resolves to the Matomo server as it only seems to point to a 404 page.

➜  ~ curl -v https://piwik.lyondell.com/
* Could not resolve host: piwik.lyondell.com
* Closing connection 0
curl: (6) Could not resolve host: piwik.lyondell.com

Thank you for looking at this. I have validate that https://piwik.lyondell.com/ is a valid URL. The Matomo login page is displayed.

Hi,

Then please check that

https://piwik.lyondell.com/?module=API&method=API.get&idSite=6&period=day&date=last1000&format=php&trigger=archivephp

is a valid URL when accessing from the Matomo server. As this is the request that returns 404 during archiving.

Thank you for the help. Looks like I had a DNS issue.