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

Bash install problem
 
jaccoermers
Jr. Member
 
Total Posts:  30
Joined:  2013-01-23
 

Hi everyone,

for my test environment I set up a bash install script according to this tutorial:

http://www.magentocommerce.com/wiki/groups/227/magento_bash_script_installer/

All works pretty well and I even changed it to retrieve the actual data from the remote site so that I am up to speed.

rsync -az --exclude=catalog/product/cache/ --exclude=tmp/ --rsh="sshpass -p PASSWORD ssh -l USERNAME" EXAMPLE.COM:public_html/media/* media
    mkdir app/code/local/
    rsync -az --rsh="sshpass -p PASSWORD ssh -l USERNAME" EXAMPLE.COM:public_html/app/code/local/Mage/* app/code/local/Mage
    rsync -az --rsh="sshpass -p PASSWORD ssh -l USERNAME" EXAMPLE.COM:public_html/app/design/frontend/default/MYTHEME/* app/design/frontend/default/MYTHEME
    rsync -az --rsh="sshpass -p PASSWORD ssh -l USERNAME" EXAMPLE.COM:public_html/skin/frontend/default/MYTHEME/* skin/frontend/default/MYTHEME
    rsync -az --rsh="sshpass -p PASSWORD ssh -l USERNAME" EXAMPLE.COM:public_html/app/locale/nl_NL/* app/locale/nl_NL

and import the database:

sshpass -'PASSWORD' ssh -C USERNAME@EXAMPLE.COM mysqldump -u DBUSER --password=PASSWORD --single-transaction DBNAME mysql -u dbuser --password=dbpass -D dbname

Now instead of having to install all needed extensions manually via connect I have Mage handle my request:

./mage install http://connect20.magentocommerce.com/community Catalin_Seo --force
./mage clear-cache
./mage install http://connect20.magentocommerce.com/community EU_Cookie_Law_Compliance --force
./mage clear-cache
./mage install http://connect20.magentocommerce.com/community magento_easy_flags --force
./mage clear-cache

Now when I go to connect everything is installed. PERFECT..... almost…

I now get the dreaded magento connect error:

CONNECT ERRORPlease check for sufficient ftp write file permissions.
Your Magento folder does not have sufficient write permissionswhich downloader requires.

While troubleshooting my script I found out that if I do not use ./mage install section this error does not show up.

Can anyone explain to me what ./mage install changes to my file permissions?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaccoermers
Jr. Member
 
Total Posts:  30
Joined:  2013-01-23
 

Ok, finally got rid of it without chmodding everything: added these lines after the ./mage install:

rm -Rf ~/$folder/downloader/.cache
rm 
-Rf ~/$folder/var/cache
rm 
-Rf ~/$folder/var/package/tmp
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top