0

As I ran the command composer require -w as part of the process to upgrade Magento 2.4.2 to 2.4.4, I found the error seen in the image below.

enter image description here

Below is the article I'm referring to upgrade Magento.

https://www.mgt-commerce.com/tutorial/how-to-upgrade-magento-2-4-3-to-magento-2-4-4/

I request someone to share the list of commands to be run to upgrade Magento to 2.4.4.

CodeForGood
  • 764
  • 7
  • 31

1 Answers1

1

You don't have permission to copy file from /home/magento/.cache/composer/composer-temp.phar into /usr/bin/composer

You can use sudo composer self-update for overwrite /usr/bin/composer or download latest version to some another path and use like php /home/magento/composer.phar instead of composer

Victor Tihonchuk
  • 3,488
  • 1
  • 6
  • 18
  • Thanks, it helped. – CodeForGood Jul 16 '22 at 08:56
  • Hi Victor, could you please tell me if I need to upgrade our elasticsearch to its latest version before Magento upgrade can be done? – CodeForGood Jul 18 '22 at 11:06
  • Ideally to have related version of ElasticSearch. For 2.4.4 you can switch to OpenSearch. See https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html – Victor Tihonchuk Jul 18 '22 at 14:25
  • Ok, we would like to stick on to Elasticsearch. – CodeForGood Jul 18 '22 at 15:23
  • It's up to you, FYI: Magento Cloud stopped to support ElasticSearch after 7.10 and switched to OpenSearch 1.2 – Victor Tihonchuk Jul 18 '22 at 18:27
  • Thanks for the information, but we're using Magento community edition – CodeForGood Jul 18 '22 at 18:37
  • Hi Dhiren, could you please have a look at the related post here https://magento.stackexchange.com/questions/358323/magento-2-4-2-unable-to-process-binding-ifnot-functionreturn-customer-fu I'm struggling to fix this for over 10 days now. I added as much information about the problem as possible. – CodeForGood Jul 27 '22 at 18:49