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

./pear upgrade-all not working for 1.5.x upgrade
 
MagePsycho
Mentor
 
Avatar
Total Posts:  1702
Joined:  2009-06-23
 

Hi

I followed the following article in order to upgrade magento 1.4.1.1 to 1.5.0.1
http://www.magentocommerce.com/wiki/groups/227/upgrading_magento_via_ssh

The weird thing that happened is it upgraded to the 1.4.2.0

I also followed this link:
http://www.crucialwebhost.com/kb/article/upgrading-magento-via-ssh/
Using

./mage upgrade-all
lead to the ‘Permission denied’ error.

May be i am missing something. Is there anyway to upgrade magento to 1.5.x using SSH?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
krlkv
Member
 
Total Posts:  42
Joined:  2008-11-09
 

This works for us & is more reliable than pear: http://www.webshopapps.com/blog/2010/08/upgrading-your-magento-site-without-downtime/

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelixcom
Enthusiast
 
Avatar
Total Posts:  906
Joined:  2007-08-31
Huntsville, AL
 

Hello,

Try setting pear to be executable:

chmod 755 ./pear

And then give it a go smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dx3webs
Sr. Member
 
Avatar
Total Posts:  178
Joined:  2008-12-16
 

I was meaning to ask if you got there in the end?  did you get to 1.5???

I am having a bunch of problems..

The modern theme has been changed quite substantially so if you had a theme that was built on this you will have to rework it.

Andy

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

In addition to checking permissions as noted above, please also note:
The syntax for using pear has changed with 1.5 (it’s not even called pear anymore).

See this thread for more information:
http://www.magentocommerce.com/boards/viewthread/219840/

~

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePsycho
Mentor
 
Avatar
Total Posts:  1702
Joined:  2009-06-23
 

Finally i figured out the way.
I upgraded to 1.5.0.1 using following set of SSH commands:

wget http://www.magentocommerce.com/downloads/assets/1.5.0.1/magento-1.5.0.1.tar.gz 
tar -zxvf magento-1.5.0.1.tar.gz 
cd magento
cp 
-rf * /your-magento-root-dir
Note: Be sure you are running this command being on the root of the magento installation.
Also always backup the files n db using following set of commands:
tar -zxvf magento-backup.tar.gz /your-magento-root-dir/*
mysqldump -u [username] -p[password] [database] > mysql-dump.sql

Additionally:
Everything get working after upgrades. There was no any single db errors.
But got stuck at one issue: Product detail page is not working. Here is the error info:

Fatal error: Call to a member function getSource() on a non-object in app/code/core/Mage/Catalog/Model/Product.php on line 1258

anybody any idea?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
krlkv
Member
 
Total Posts:  42
Joined:  2008-11-09
 

Did you use customized theme in 1.4.x?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePsycho
Mentor
 
Avatar
Total Posts:  1702
Joined:  2009-06-23
 

I am using the default theme. Still same problem exists.
What can be the other issues?

 
Magento Community Magento Community
Magento Community
Magento Community
 
seudo
Guru
 
Avatar
Total Posts:  344
Joined:  2008-04-21
 

This post worked for us when we upgraded from 1.4.2 to 1.5.0.1:

http://www.magentocommerce.com/boards/viewthread/220442/#t302603

I believe the ./mage sync did the magic then followed by

./mage install http://connect20.magentocommerce.com/community Mage_All_Latest

Hopefully it will work for you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
chapagain
Sr. Member
 
Avatar
Total Posts:  202
Joined:  2009-07-19
 

The permission denied error occurs when we do ./mage upgrade-all because mage script is not executable. We can make it executable by the following command:-

chmod 700 mage

If it didn’t work with 700 permission, try giving it 777 permission:-

chmod 777 mage
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top