Piwik 2.0 Server with no access to Internet


#1

Hi,

I have Piwik installed on a local server with no access to the Internet.
Users access this server via my Reverse Proxy installed in my DMZ.

For security reasons, I don’t want to give access to the Internet to my local server heberging Piwik.

It was working fine with Piwik 1.12 but I just upgraded to Piwik 2.0 and I get the following error message when I try to access the parameters:


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

Warning: file_get_contents(http://plugins.piwik.org/api/1.0/plugins/checkUpdates?plugins=%7B%22plugins%22%3A%5B%5D%7D): failed to open stream: Connexion termin?e par expiration du d?lai d'attente in /usr/apache/piwik/core/Http.php on line 409 

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 file_get_contents(...) called at [/usr/apache/piwik/core/Http.php:409]
#2 Piwik\Http::sendHttpRequestBy(...) called at [/usr/apache/piwik/core/Http.php:97]
#3 Piwik\Http::sendHttpRequest(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:144]
#4 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->fetch(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:81]
#5 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->checkUpdates(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:97]
#6 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->getInfoOfPluginsHavingUpdate(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/Marketplace.php:106]
#7 Piwik\Plugins\CorePluginsAdmin\Marketplace->getPluginsHavingUpdate(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/CorePluginsAdmin.php:67]
#8 Piwik\Plugins\CorePluginsAdmin\CorePluginsAdmin->addMenu(...) called at [:]
#9 call_user_func_array(...) called at [/usr/apache/piwik/core/EventDispatcher.php:100]
#10 Piwik\EventDispatcher->postEvent(...) called at [/usr/apache/piwik/core/Piwik.php:692]
#11 Piwik\Piwik::postEvent(...) called at [/usr/apache/piwik/core/Menu/MenuAdmin.php:84]
#12 Piwik\Menu\MenuAdmin->getMenu(...) called at [/usr/apache/piwik/core/Menu/MenuAdmin.php:96]
#13 Piwik\Menu\MenuAdmin->getCurrentAdminMenuName(...) called at [/usr/apache/piwik/core/Plugin/ControllerAdmin.php:97]
#14 Piwik\Plugin\ControllerAdmin::setBasicVariablesAdminView(...) called at [/usr/apache/piwik/core/Plugin/ControllerAdmin.php:43]
#15 Piwik\Plugin\ControllerAdmin->setBasicVariablesView(...) called at [/usr/apache/piwik/plugins/UsersManager/Controller.php:176]
#16 Piwik\Plugins\UsersManager\Controller->userSettings(...) called at [:]
#17 call_user_func_array(...) called at [/usr/apache/piwik/core/FrontController.php:117]
#18 Piwik\FrontController->dispatch(...) called at [/usr/apache/piwik/index.php:71]


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

Warning: file_get_contents(http://plugins.piwik.org/api/1.0/plugins/checkUpdates?plugins=%7B%22plugins%22%3A%5B%5D%7D): failed to open stream: Connexion termin?e par expiration du d?lai d'attente in /usr/apache/piwik/core/Http.php on line 409 

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 file_get_contents(...) called at [/usr/apache/piwik/core/Http.php:409]
#2 Piwik\Http::sendHttpRequestBy(...) called at [/usr/apache/piwik/core/Http.php:97]
#3 Piwik\Http::sendHttpRequest(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:144]
#4 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->fetch(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:81]
#5 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->checkUpdates(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/MarketplaceApiClient.php:97]
#6 Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient->getInfoOfPluginsHavingUpdate(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/Marketplace.php:106]
#7 Piwik\Plugins\CorePluginsAdmin\Marketplace->getPluginsHavingUpdate(...) called at [/usr/apache/piwik/plugins/CorePluginsAdmin/CorePluginsAdmin.php:68]
#8 Piwik\Plugins\CorePluginsAdmin\CorePluginsAdmin->addMenu(...) called at [:]
#9 call_user_func_array(...) called at [/usr/apache/piwik/core/EventDispatcher.php:100]
#10 Piwik\EventDispatcher->postEvent(...) called at [/usr/apache/piwik/core/Piwik.php:692]
#11 Piwik\Piwik::postEvent(...) called at [/usr/apache/piwik/core/Menu/MenuAdmin.php:84]
#12 Piwik\Menu\MenuAdmin->getMenu(...) called at [/usr/apache/piwik/core/Menu/MenuAdmin.php:96]
#13 Piwik\Menu\MenuAdmin->getCurrentAdminMenuName(...) called at [/usr/apache/piwik/core/Plugin/ControllerAdmin.php:97]
#14 Piwik\Plugin\ControllerAdmin::setBasicVariablesAdminView(...) called at [/usr/apache/piwik/core/Plugin/ControllerAdmin.php:43]
#15 Piwik\Plugin\ControllerAdmin->setBasicVariablesView(...) called at [/usr/apache/piwik/plugins/UsersManager/Controller.php:176]
#16 Piwik\Plugins\UsersManager\Controller->userSettings(...) called at [:]
#17 call_user_func_array(...) called at [/usr/apache/piwik/core/FrontController.php:117]
#18 Piwik\FrontController->dispatch(...) called at [/usr/apache/piwik/index.php:71]

I believe this is due to the fact that my server cannot access the Internet.

Thanks for your answers,
Regards,


(Matthieu Aubry) #2

Can you try:


[General]
enable_marketplace=0

it will disable marketplace. I think it should also stop this message, let me know if not working!


#3

It worked !

Thanks mate