Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Linux firewall stops Magento Connect
 
vmajor
Jr. Member
 
Total Posts:  12
Joined:  2009-02-08
 

Hi,

after enabling the firewall on our development CentOs server, Magento Connect stopped working.

This is one example of the error:

downloading Interface_Frontend_Default_Modern-1.2.1.tgz ...
Starting to download Interface_Frontend_Default_Modern-1.2.1.tgz (494,231 bytes)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
done494,231 bytes
downloading Mage_Core_Modules
-1.2.1.tgz ...
Could not download from "http://connect.magentocommerce.com/core/get/Mage_Core_Modules-1.2.1.tgz"cannot download "magento-core/Mage_Core_Modules" (could not open /var/www/html/magento/downloader/pearlib/download/Mage_Core_Modules-1.2.1.tgz for writing)
Errorcannot download "magento-core/Mage_Core_Modules"
downloading Lib_Varien-1.2.1.tgz ...
Could not download from "http://connect.magentocommerce.com/core/get/Lib_Varien-1.2.1.tgz"cannot download "magento-core/Lib_Varien" (could not open /var/www/html/magento/downloader/pearlib/download/Lib_Varien-1.2.1.tgz for writing)
Errorcannot download "magento-core/Lib_Varien"
downloading Lib_ZF-1.7.2.1.tgz ...
Could not download from "http://connect.magentocommerce.com/core/get/Lib_ZF-1.7.2.1.tgz"cannot download "magento-core/Lib_ZF" (could not open /var/www/html/magento/downloader/pearlib/download/Lib_ZF-1.7.2.1.tgz for writing)
Errorcannot download "magento-core/Lib_ZF"
magento-core/Interface_Frontend_Default_Modern requires package "magento-core/Mage_Core_Modules" (version >= 1.2.1version <= 1.2.2excluded versions1.2.2)
Install Errors
Download failed
PEAR ERROR
install failed

Obviously I am not linux expert, so please someone tell me what iptables entry I need to make to allow Magento Connect to work again.

Disabling the firewall is not an option.

Cheers,

Victor

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sindre|ProperHost
Mentor
 
Avatar
Total Posts:  1158
Joined:  2008-04-24
 

As far as I know, Magento Connect does not require any special ports. As long as outbound TCP port 80 is open, it should work.

Are you able to use e.g. ‘wget’ from the command line to download remote files? If not, you probably need to allow outbound port 80 in your firewall.

Make sure to update us on this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Enthusiast
 
Avatar
Total Posts:  770
Joined:  2007-11-07
Phoenix, AZ
 

What that error means (could not open /var/www/html/magento/downloader/pearlib/download/… for writing) is those files already exist and it can’t overwrite the data. Simply clear your PEAR cache out:

rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*

If you don’t have SSH, open up FTP, go to those directories, and delete everything inside of them.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top