Rchivephp. Response was ''


#1

Hallo,

mehrmals hintereinander folgende diese Fehler und zeitweilen nicht. Das System läuft ruhig und stabil. Daher sind Engpässe in der Performance auszuschließen.


[2012-07-20 12:30:02] [16e6400e] ---------------------------
[2012-07-20 12:30:02] [16e6400e] INIT
[2012-07-20 12:30:02] [16e6400e] Querying Piwik API at: https://HOST/index.php
[2012-07-20 12:30:02] [16e6400e] Running as Super User: babiel
[2012-07-20 12:30:02] [16e6400e] Notes
[2012-07-20 12:30:02] [16e6400e] - Reports for today will be processed at most every 1800 seconds. You can change this value in Piwik UI > Settings > General Settings.
[2012-07-20 12:30:02] [16e6400e] - Reports for the current week/month/year will be refreshed at most every 3600 seconds.
[2012-07-20 12:30:02] [16e6400e] - Archiving was last executed without error 4 Stunden 25 Minuten ago
[2012-07-20 12:30:03] [16e6400e] Will process 8 websites with new visits since 4 Stunden 25 Minuten , IDs: 1, 2, 3, 4, 5, 9, 10, 11
[2012-07-20 12:30:04] [16e6400e] ---------------------------
[2012-07-20 12:30:04] [16e6400e] START
[2012-07-20 12:30:04] [16e6400e] Starting Piwik reports archiving...
[2012-07-20 12:30:08] [16e6400e] Archived website id = 1, period = day, Time elapsed: 4.380s
[2012-07-20 12:30:27] [16e6400e] Archived website id = 1, period = week, 97198 visits, Time elapsed: 19.514s
[2012-07-20 12:33:24] [16e6400e] Archived website id = 1, period = month, 474381 visits, Time elapsed: 176.628s
[2012-07-20 12:48:10] [16e6400e] ERROR: Got invalid response from API request: https://HOST/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=year&date=last2&for
mat=php&token_auth=XXXXXXXXXXXXXXXX&trigger=archivephp. Response was ''
[2012-07-20 12:48:10] [16e6400e] Archived website id = 1, period = year, 0 visits, Time elapsed: 885.911s
[2012-07-20 12:48:10] [16e6400e] Archived website id = 1, today = 4097 visits, 4 API requests, Time elapsed: 1086.435s [1/8 done]
[2012-07-20 12:48:10] [16e6400e] Archived website id = 2, period = day, Time elapsed: 0.539s
[2012-07-20 12:48:15] [16e6400e] Archived website id = 2, period = week, 1516 visits, Time elapsed: 4.344s
[2012-07-20 12:48:19] [16e6400e] Archived website id = 2, period = month, 7720 visits, Time elapsed: 4.335s
[2012-07-20 12:48:25] [16e6400e] Archived website id = 2, period = year, 33371 visits, Time elapsed: 5.582s
[2012-07-20 12:48:25] [16e6400e] Archived website id = 2, today = 106 visits, 4 API requests, Time elapsed: 14.803s [2/8 done]
[2012-07-20 12:48:25] [16e6400e] Archived website id = 3, period = day, Time elapsed: 0.672s
[2012-07-20 12:48:27] [16e6400e] Archived website id = 3, period = week, 2314 visits, Time elapsed: 1.622s
[2012-07-20 12:48:31] [16e6400e] Archived website id = 3, period = month, 9516 visits, Time elapsed: 4.301s
[2012-07-20 12:48:38] [16e6400e] Archived website id = 3, period = year, 45984 visits, Time elapsed: 6.539s
[2012-07-20 12:48:38] [16e6400e] Archived website id = 3, today = 134 visits, 4 API requests, Time elapsed: 13.137s [3/8 done]
[2012-07-20 12:48:39] [16e6400e] Archived website id = 4, period = day, Time elapsed: 1.343s
[2012-07-20 12:48:42] [16e6400e] Archived website id = 4, period = week, 24615 visits, Time elapsed: 3.197s
[2012-07-20 12:48:58] [16e6400e] Archived website id = 4, period = month, 118230 visits, Time elapsed: 15.723s
[2012-07-20 12:50:20] [16e6400e] Archived website id = 4, period = year, 535592 visits, Time elapsed: 81.546s
[2012-07-20 12:50:20] [16e6400e] Archived website id = 4, today = 1126 visits, 4 API requests, Time elapsed: 101.811s [4/8 done]
[2012-07-20 12:50:20] [16e6400e] Archived website id = 5, period = day, Time elapsed: 0.398s
[2012-07-20 12:50:20] [16e6400e] Archived website id = 5, today = 39 visits, 1 API requests, Time elapsed: 0.398s [5/8 done]
[2012-07-20 12:50:21] [16e6400e] Archived website id = 9, period = day, Time elapsed: 0.455s
[2012-07-20 12:50:22] [16e6400e] Archived website id = 9, period = week, 894 visits, Time elapsed: 1.023s
[2012-07-20 12:50:25] [16e6400e] Archived website id = 9, period = month, 3880 visits, Time elapsed: 3.020s
[2012-07-20 12:50:27] [16e6400e] Archived website id = 9, period = year, 15081 visits, Time elapsed: 2.367s
[2012-07-20 12:50:27] [16e6400e] Archived website id = 9, today = 54 visits, 4 API requests, Time elapsed: 6.868s [6/8 done]
[2012-07-20 12:50:27] [16e6400e] Archived website id = 10, period = day, Time elapsed: 0.466s
[2012-07-20 12:50:27] [16e6400e] Archived website id = 10, today = 57 visits, 1 API requests, Time elapsed: 0.467s [7/8 done]
[2012-07-20 12:50:29] [16e6400e] Archived website id = 11, period = day, Time elapsed: 1.287s
[2012-07-20 12:50:33] [16e6400e] Archived website id = 11, period = week, 15365 visits, Time elapsed: 3.861s
[2012-07-20 12:50:47] [16e6400e] Archived website id = 11, period = month, 83437 visits, Time elapsed: 14.072s
[2012-07-20 12:51:27] [16e6400e] Archived website id = 11, period = year, 2300364 visits, Time elapsed: 40.187s
[2012-07-20 12:51:27] [16e6400e] Archived website id = 11, today = 564 visits, 4 API requests, Time elapsed: 59.408s [8/8 done]
[2012-07-20 12:51:27] [16e6400e] Done archiving!
[2012-07-20 12:51:27] [16e6400e] ---------------------------
[2012-07-20 12:51:27] [16e6400e] SUMMARY
[2012-07-20 12:51:27] [16e6400e] Total daily visits archived: 6177
[2012-07-20 12:51:27] [16e6400e] Archived today's reports for 8 websites
[2012-07-20 12:51:27] [16e6400e] Archived week/month/year for 6 websites. 
[2012-07-20 12:51:27] [16e6400e] Skipped 1 websites: no new visit since the last script execution
[2012-07-20 12:51:27] [16e6400e] Skipped 0 websites day archiving: existing daily reports are less than 1800 seconds old
[2012-07-20 12:51:27] [16e6400e] Skipped 2 websites week/month/year archiving: existing periods reports are less than 3600 seconds old
[2012-07-20 12:51:27] [16e6400e] Total API requests: 26
[2012-07-20 12:51:27] [16e6400e] done: 8/8 100%, 6177 v, 8 wtoday, 6 wperiods, 26 req, 1283327 ms, 1 errors. eg. 'Got invalid response from API request: https://HOST/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=year&date=last2&format=php&token_auth=XXXXXXXXXXXXXXXXXXXXX&trigger=archivephp. Response was '''
[2012-07-20 12:51:27] [16e6400e] Time elapsed: 1283.327s
[2012-07-20 12:51:27] [16e6400e] ---------------------------
[2012-07-20 12:51:27] [16e6400e] SCHEDULED TASKS
[2012-07-20 12:51:27] [16e6400e] Starting Scheduled tasks... 
[2012-07-20 12:51:27] [16e6400e]  No task to run
[2012-07-20 12:51:27] [16e6400e] done
[2012-07-20 12:51:27] [16e6400e] ---------------------------
[2012-07-20 12:51:27] [16e6400e] SUMMARY OF ERRORS
[2012-07-20 12:51:27] [16e6400e] Error: Got invalid response from API request: https://HOST/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=year&date=last2&format=php&token_auth=XXXXXXXXXXXXXXXXXXXXXX&trigger=archivephp. Response was ''
[2012-07-20 12:51:27] [16e6400e] 1 total errors during this script execution, please investigate and try and fix these errors
[2012-07-20 12:51:27] [16e6400e] ERROR: 1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: https://HOST/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=year&date=last2&format=php&token_auth=XXXXXXXXXXXXXXXXXXX&trigger=archivephp. Response was ''

Fatal error: 1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: https://HOST/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=year&date=last2&format=php&token_auth=XXXXXXXXXXXXXXXXXXXXXXXXX&trigger=archivephp. Response was '' in /var/www/piwik/misc/cron/archive.php on line 555

Der nachträgliche Aufruf des Requests funktioniert.

Ist der Fehler bekannt?

################################################
Peter Boehlke: Token_auth entfernt! - Bitte das nächste Mal darauf achten.


(Thomas Seifert) #2

Hast Du mal in das PHP Error Log geschaut, ob vielleicht das Speicherlimit oder die maximale Ausführungszeit für den PHP Prozess erreicht wurde?
Immerhin scheint er wohl bei der Archivierung für das Jahr auszusteigen, was ja die größte Anzahl an Besuchen hat.


#3

Das war es. Vielen Dank :slight_smile: