What OS are you using ? Response was 'curl_exec: Empty reply from server'


#1

Hi everyone,

I am still trying to get over this dam problem now on version 2.0.x Response was ‘curl_exec: Empty reply from server’.

I would be interested to know what Linux OS people are using and if you have this problem please.

I am using Debian Wheezy 7.3.0 ( Standard Repo updates ) and now archive.php fails with CURL.

Thanks in advance, for helping me with this idea to identify which OS works.

Stephen


(Matthieu Aubry) #2

Check your server error log, there will be some error there that explains why this failure.


#3

Hi Matt,

Nothing is logged anywhere for this problem, the only errors I get are in the command line

rror: Got invalid response from API request: http://analytics.domain.net/index.php?module=API&method=VisitsSummary.getVisits&idSite=2&period=day&date=last52&format=php&token_auth=xxx&trigger=archivephp. Response was 'curl_exec: Empty reply from server’
Error: Got invalid response from API request: http://analytics.domain.net/index.php?module=API&method=VisitsSummary.getVisits&idSite=3&period=day&date=last52&format=php&token_auth=xxx&trigger=archivephp. Response was 'curl_exec: Empty reply from server’
Error: Got invalid response from API request: http://analytics.domain.net/index.php?module=API&method=VisitsSummary.getVisits&idSite=4&period=day&date=last52&format=php&token_auth=xxx&trigger=archivephp. Response was 'curl_exec: Empty reply from server’
Error: Got invalid response from API request: http://analytics.domain.net/index.php?module=API&method=VisitsSummary.getVisits&idSite=6&period=day&date=last52&format=php&token_auth=xxx&trigger=archivephp. Response was ‘curl_exec: Empty reply from server’

The apache config for the domain analytics.domain.net is set to log everything. but nothing at all is logged for this process.

Is there any chance of help fixing it ?

Stephen


(Matthieu Aubry) #4

There should be something logged. If not, try increase memory requirement or execution time.


#5

Hi Matt,

memory_limit is set at 20G ( physical server is 24G ), execution time is set at 2 hours.

There is absolutely nothing in the error logs at all.

Stephen


(Matthieu Aubry) #6

Please try use latest beta, as we made huge memory improvements. If you still have the error after that, let me know


#7

Hi Matt,

Thanks for the idea, how do I get the beta ? I can only find the latest.zip which indicates 2.0.3

Stephen


#8

builds.piwik.org


(Matthieu Aubry) #9

see I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo


#10

The update to 2.0.4-b7 worked it now runs archive.php without any issues.

Thanks for the help.


#11

it now runs but takes a very long time, on version 2.0.0 it used to take 3 mins per run and I would therefore run the archive every 5 mins. Now it takes over 2 hours,

INFO [2014-02-04 19:39:03] [ae396] ---------------------------
INFO [2014-02-04 19:39:03] [ae396] INIT
INFO [2014-02-04 19:39:03] [ae396] Querying Piwik API at: http://analytics.domain.net/index.php
INFO [2014-02-04 19:39:03] [ae396] Running Piwik 2.0.4-b7 as Super User: admin
INFO [2014-02-04 19:39:03] [ae396] ---------------------------
INFO [2014-02-04 19:39:03] [ae396] NOTES
INFO [2014-02-04 19:39:03] [ae396] - Reports for today will be processed at most every 30 seconds. You can change this value in Piwik UI > Settings > General Settings.
INFO [2014-02-04 19:39:03] [ae396] - Reports for the current week/month/year will be refreshed at most every 3600 seconds.
INFO [2014-02-04 19:39:03] [ae396] - Archiving was last executed without error 18 min 32s ago
INFO [2014-02-04 19:39:04] [ae396] - Will process 11 websites with new visits since 18 min 32s , IDs: 2, 3, 4, 6, 7, 31, 32, 34, 63, 92, 95
INFO [2014-02-04 19:39:04] [ae396] ---------------------------
INFO [2014-02-04 19:39:04] [ae396] START
INFO [2014-02-04 19:39:14] [ae396] Archived website id = 2, period = day, Time elapsed: 10.036s
INFO [2014-02-04 19:40:16] [ae396] Archived website id = 2, period = week, 40748 visits, Time elapsed: 61.882s
INFO [2014-02-04 19:44:13] [ae396] Archived website id = 2, period = month, 148722 visits, Time elapsed: 237.783s
INFO [2014-02-04 20:01:10] [ae396] Archived website id = 2, period = year, 185799 visits, Time elapsed: 1016.610s
INFO [2014-02-04 20:01:10] [ae396] Archived website id = 2, today = 3284 visits, 4 API requests, Time elapsed: 1326.312s [1/11 done]
INFO [2014-02-04 20:01:20] [ae396] Archived website id = 3, period = day, Time elapsed: 10.446s
INFO [2014-02-04 20:02:12] [ae396] Archived website id = 3, period = week, 31978 visits, Time elapsed: 51.549s
INFO [2014-02-04 20:05:37] [ae396] Archived website id = 3, period = month, 126465 visits, Time elapsed: 205.430s
INFO [2014-02-04 20:21:01] [ae396] Archived website id = 3, period = year, 156513 visits, Time elapsed: 923.580s
INFO [2014-02-04 20:21:01] [ae396] Archived website id = 3, today = 2816 visits, 4 API requests, Time elapsed: 1191.008s [2/11 done]
INFO [2014-02-04 20:21:05] [ae396] Archived website id = 4, period = day, Time elapsed: 3.653s
INFO [2014-02-04 20:21:27] [ae396] Archived website id = 4, period = week, 9861 visits, Time elapsed: 22.120s
INFO [2014-02-04 20:22:55] [ae396] Archived website id = 4, period = month, 38467 visits, Time elapsed: 88.451s
INFO [2014-02-04 20:29:53] [ae396] Archived website id = 4, period = year, 49205 visits, Time elapsed: 418.208s
INFO [2014-02-04 20:29:53] [ae396] Archived website id = 4, today = 955 visits, 4 API requests, Time elapsed: 532.437s [3/11 done]
INFO [2014-02-04 20:30:05] [ae396] Archived website id = 6, period = day, Time elapsed: 11.148s
INFO [2014-02-04 20:31:16] [ae396] Archived website id = 6, period = week, 51805 visits, Time elapsed: 70.934s
INFO [2014-02-04 20:36:26] [ae396] Archived website id = 6, period = month, 233735 visits, Time elapsed: 310.676s
INFO [2014-02-04 20:57:58] [ae396] Archived website id = 6, period = year, 301230 visits, Time elapsed: 1291.961s
INFO [2014-02-04 20:57:58] [ae396] Archived website id = 6, today = 4574 visits, 4 API requests, Time elapsed: 1684.722s [4/11 done]
INFO [2014-02-04 20:58:02] [ae396] Archived website id = 7, period = day, Time elapsed: 3.603s
INFO [2014-02-04 20:58:19] [ae396] Archived website id = 7, period = week, 5496 visits, Time elapsed: 16.841s
INFO [2014-02-04 20:59:29] [ae396] Archived website id = 7, period = month, 20023 visits, Time elapsed: 70.147s
INFO [2014-02-04 21:05:14] [ae396] Archived website id = 7, period = year, 26160 visits, Time elapsed: 345.409s
INFO [2014-02-04 21:05:14] [ae396] Archived website id = 7, today = 397 visits, 4 API requests, Time elapsed: 436.001s [5/11 done]
INFO [2014-02-04 21:05:15] [ae396] Archived website id = 31, period = day, Time elapsed: 0.686s
INFO [2014-02-04 21:05:23] [ae396] Archived website id = 31, period = week, 457 visits, Time elapsed: 8.585s
INFO [2014-02-04 21:05:59] [ae396] Archived website id = 31, period = month, 1815 visits, Time elapsed: 36.003s
INFO [2014-02-04 21:07:45] [ae396] Archived website id = 31, period = year, 2405 visits, Time elapsed: 105.128s
INFO [2014-02-04 21:07:45] [ae396] Archived website id = 31, today = 44 visits, 4 API requests, Time elapsed: 150.405s [6/11 done]
INFO [2014-02-04 21:07:45] [ae396] Archived website id = 32, period = day, Time elapsed: 0.745s
INFO [2014-02-04 21:07:54] [ae396] Archived website id = 32, period = week, 625 visits, Time elapsed: 8.573s
INFO [2014-02-04 21:08:28] [ae396] Archived website id = 32, period = month, 2663 visits, Time elapsed: 33.919s
INFO [2014-02-04 21:10:35] [ae396] Archived website id = 32, period = year, 3606 visits, Time elapsed: 127.507s
INFO [2014-02-04 21:10:35] [ae396] Archived website id = 32, today = 69 visits, 4 API requests, Time elapsed: 170.746s [7/11 done]
INFO [2014-02-04 21:10:36] [ae396] Archived website id = 34, period = day, Time elapsed: 0.785s
INFO [2014-02-04 21:10:46] [ae396] Archived website id = 34, period = week, 847 visits, Time elapsed: 9.656s
INFO [2014-02-04 21:11:21] [ae396] Archived website id = 34, period = month, 3558 visits, Time elapsed: 35.274s
INFO [2014-02-04 21:13:22] [ae396] Archived website id = 34, period = year, 4746 visits, Time elapsed: 121.467s
INFO [2014-02-04 21:13:22] [ae396] Archived website id = 34, today = 74 visits, 4 API requests, Time elapsed: 167.185s [8/11 done]
INFO [2014-02-04 21:13:23] [ae396] Archived website id = 63, period = day, Time elapsed: 0.857s
INFO [2014-02-04 21:13:32] [ae396] Archived website id = 63, period = week, 1532 visits, Time elapsed: 8.874s
INFO [2014-02-04 21:14:07] [ae396] Archived website id = 63, period = month, 5188 visits, Time elapsed: 34.907s
INFO [2014-02-04 21:15:52] [ae396] Archived website id = 63, period = year, 6775 visits, Time elapsed: 105.017s
INFO [2014-02-04 21:15:52] [ae396] Archived website id = 63, today = 146 visits, 4 API requests, Time elapsed: 149.657s [9/11 done]
INFO [2014-02-04 21:15:53] [ae396] Archived website id = 92, period = day, Time elapsed: 0.759s
INFO [2014-02-04 21:16:02] [ae396] Archived website id = 92, period = week, 435 visits, Time elapsed: 9.192s
INFO [2014-02-04 21:16:37] [ae396] Archived website id = 92, period = month, 14629 visits, Time elapsed: 34.453s
INFO [2014-02-04 21:18:03] [ae396] Archived website id = 92, period = year, 14844 visits, Time elapsed: 86.664s
INFO [2014-02-04 21:18:03] [ae396] Archived website id = 92, today = 27 visits, 4 API requests, Time elapsed: 131.072s [10/11 done]
INFO [2014-02-04 21:18:14] [ae396] Archived website id = 95, period = day, Time elapsed: 10.816s
INFO [2014-02-04 21:19:24] [ae396] Archived website id = 95, period = week, 105044 visits, Time elapsed: 69.588s
INFO [2014-02-04 21:23:52] [ae396] Archived website id = 95, period = month, 435256 visits, Time elapsed: 268.441s
INFO [2014-02-04 21:35:12] [ae396] Archived website id = 95, period = year, 547178 visits, Time elapsed: 680.239s
INFO [2014-02-04 21:35:12] [ae396] Archived website id = 95, today = 9486 visits, 4 API requests, Time elapsed: 1029.086s [11/11 done]
INFO [2014-02-04 21:35:12] [ae396] Starting Piwik reports archiving…
INFO [2014-02-04 21:35:12] [ae396] Done archiving!
INFO [2014-02-04 21:35:12] [ae396] ---------------------------
INFO [2014-02-04 21:35:12] [ae396] SUMMARY
INFO [2014-02-04 21:35:12] [ae396] Total daily visits archived: 21872
INFO [2014-02-04 21:35:12] [ae396] Archived today’s reports for 11 websites
INFO [2014-02-04 21:35:12] [ae396] Archived week/month/year for 11 websites
INFO [2014-02-04 21:35:12] [ae396] Skipped 124 websites: no new visit since the last script execution
INFO [2014-02-04 21:35:12] [ae396] Skipped 0 websites day archiving: existing daily reports are less than 30 seconds old
INFO [2014-02-04 21:35:12] [ae396] Skipped 0 websites week/month/year archiving: existing periods reports are less than 3600 seconds old
INFO [2014-02-04 21:35:12] [ae396] Total API requests: 44
INFO [2014-02-04 21:35:12] [ae396] done: 11/11 100%, 21872 v, 11 wtoday, 11 wperiods, 44 req, 6968634 ms, no error
INFO [2014-02-04 21:35:12] [ae396] Time elapsed: 6968.634s
INFO [2014-02-04 21:35:12] [ae396] ---------------------------
INFO [2014-02-04 21:35:12] [ae396] SCHEDULED TASKS
INFO [2014-02-04 21:35:12] [ae396] Starting Scheduled tasks…
INFO [2014-02-04 21:35:12] [ae396] No task to run
INFO [2014-02-04 21:35:12] [ae396] done
INFO [2014-02-04 21:35:12] [ae396] ---------------------------


(Matthieu Aubry) #12

Does it take 2 hours when you run it again?


#13

Yes, now take 2 hours plus on every run.