Gman447
February 24, 2015, 1:11am
1
When I attempt to upgrade to 2.11.1 the upgrade fails and displays:
curl_exec: Operation timed out after 9981 milliseconds with 7056104 out of 13344050 bytes received. Hostname requested was: builds.piwik.org
It is on a hosted environment, so can’t restart server etc - I also have another clients site, same server, different install of Piwik and the upgrade went fine. Sigh
Suggestions?
G
NFG
February 24, 2015, 1:17am
2
I’m getting the same error.
matthieu
(Matthieu Aubry)
February 24, 2015, 2:14am
4
Gman447
February 24, 2015, 3:44am
5
Thanks Matt
Reviewed github and made changes directly.
Changed …plugins/CoreUpdater/Controller.php
Line 175
From: Http::fetchRemoteFile($url, $this->pathPiwikZip);
To: Http::fetchRemoteFile($url, $this->pathPiwikZip, 0, 30 );
As indicated by mnapoli
100% success
Cheers!
Gman
NFG
February 24, 2015, 6:45am
6
Should I notice any change? It’s giving me the same error still.
Gman447
February 24, 2015, 8:10am
7
NFG
I manually edited the file Controller.php
contained in the folder …plugins/CoreUpdater/
i used the std code editor, nothing fancy
I changed Line 175
From: Http::fetchRemoteFile($url, $this->pathPiwikZip);
To: Http::fetchRemoteFile($url, $this->pathPiwikZip, 0, 30);
As indicated by mnapoli on github, see Matts lnk above
If you made the above change and it still doesn’t work then perhaps change the 30 to 50? (i.e 50 seconds for the timeout? )
Just a thought
Gman
NFG
February 24, 2015, 8:25am
8
Ah, thank you. I misunderstood, I thought the change on github would have changed the repository I was trying to download from.
I will read more carefully next time. Thanks for clearing that up. =)
I thought this issue was solved in the upgrade… i fixed this, did the upgrade and now on the next upgrade the issue is back. Why is this only affecting certain servers? My other 4 installations do not have an issue. The one with the issue happens to be an older PHP version… is this why?
onlinesid
(Sid Bachtiar)
February 7, 2016, 3:27am
10
I have the same issue, that setting is now in plugins/CoreUpdater/Updater.php line 30:
const DOWNLOAD_TIMEOUT = 120;
I had to change 120 to 2400 to get my last update working!