Error updating 2.8.3 -> 2.9.1


#1

Hi,

I’m experiencing issues using the ‘one click update’ function:


There is an error. Please report the message (Piwik 2.8.3) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: fopen(http://builds.piwik.org/piwik.zip?cb=2.9.1): failed to open stream: HTTP request failed! in /var/www/piwik/core/Http.php on line 400

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 fopen(...) called at [/var/www/piwik/core/Http.php:400]
#2 Piwik\Http::sendHttpRequestBy(...) called at [/var/www/piwik/core/Http.php:94]
#3 Piwik\Http::sendHttpRequest(...) called at [/var/www/piwik/core/Http.php:722]
#4 Piwik\Http::fetchRemoteFile(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:177]
#5 Piwik\Plugins\CoreUpdater\Controller->oneClick_Download(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:120]
#6 Piwik\Plugins\CoreUpdater\Controller->oneClickUpdate(...) called at [:]
#7 call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:587]
#8 Piwik\FrontController->doDispatch(...) called at [/var/www/piwik/core/FrontController.php:95]
#9 Piwik\FrontController->dispatch(...) called at [/var/www/piwik/core/dispatch.php:34]
#10 require_once(...) called at [/var/www/piwik/index.php:46]


There is an error. Please report the message (Piwik 2.8.3) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/piwik/core/Http.php on line 401

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 feof(...) called at [/var/www/piwik/core/Http.php:401]
#2 Piwik\Http::sendHttpRequestBy(...) called at [/var/www/piwik/core/Http.php:94]
#3 Piwik\Http::sendHttpRequest(...) called at [/var/www/piwik/core/Http.php:722]
#4 Piwik\Http::fetchRemoteFile(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:177]
#5 Piwik\Plugins\CoreUpdater\Controller->oneClick_Download(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:120]
#6 Piwik\Plugins\CoreUpdater\Controller->oneClickUpdate(...) called at [:]
#7 call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:587]
#8 Piwik\FrontController->doDispatch(...) called at [/var/www/piwik/core/FrontController.php:95]
#9 Piwik\FrontController->dispatch(...) called at [/var/www/piwik/core/dispatch.php:34]
#10 require_once(...) called at [/var/www/piwik/index.php:46]


There is an error. Please report the message (Piwik 2.8.3) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/piwik/core/Http.php on line 402

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 fread(...) called at [/var/www/piwik/core/Http.php:402]
#2 Piwik\Http::sendHttpRequestBy(...) called at [/var/www/piwik/core/Http.php:94]
#3 Piwik\Http::sendHttpRequest(...) called at [/var/www/piwik/core/Http.php:722]
#4 Piwik\Http::fetchRemoteFile(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:177]
#5 Piwik\Plugins\CoreUpdater\Controller->oneClick_Download(...) called at [/var/www/piwik/plugins/CoreUpdater/Controller.php:120]
#6 Piwik\Plugins\CoreUpdater\Controller->oneClickUpdate(...) called at [:]
#7 call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:587]
#8 Piwik\FrontController->doDispatch(...) called at [/var/www/piwik/core/FrontController.php:95]
#9 Piwik\FrontController->dispatch(...) called at [/var/www/piwik/core/dispatch.php:34]
#10 require_once(...) called at [/var/www/piwik/index.php:46]

Similarly, I receive this error when attempting to update plugins using the one-click update facility.

The server can access the internet fine:


wget --spider http://builds.piwik.org/piwik.zip?cb=2.9.1
Spider mode enabled. Check if remote file exists.
--2014-11-20 09:47:00--  http://builds.piwik.org/piwik.zip?cb=2.9.1
Resolving builds.piwik.org (builds.piwik.org)... 185.31.40.177
Connecting to builds.piwik.org (builds.piwik.org)|185.31.40.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12788478 (12M) [application/zip]
Remote file exists.

Any ideas? :slight_smile: