Upgrading not working on Approach A installation

Keywords: Magento - Google Cloud Platform - How to - Other
I have used the bitnami Magento in the past and it has always been Approach B on Google cloud, I launched the installation this time and saw it was Approach A that was installed.I have checked the file folder but when I uploaded my te , I couldn’t upgrade my instance
I ran sudo /opt/Magento/bitnami/bin/Magento-cli setup:upgrade and it doesn’t work.
The file path is same as the new file path in Approach A.

The new Bitnami Magento images are using installation path:

So you’d have to run:
sudo /bitnami/magento/bin/magento-cli setup:upgrade

1 Like

This still did not work for this approach

The link to the doc did not help
I still can’t upgrade the approach A bitnami Magento using the folder path and the Magento-cli

sudo /opt/bitnami/magento/bin/magento-cli setup:upgrade

It doesn’t work

Hi @jeremiahokpegba,

Could you please elaborate? What error do you get when running the command?


“bitnami@bitnami-magento-d259:~$ sudo /opt/bitnami/magento/bin/magento-cli setup:upgrade
sudo: /opt/bitnami/magento/bin/magento-cli: command not found”

This is the message I get

Hello @jeremiahokpegba,

It looks like the bin file is not present in the specified folder. What is the output of running:

sudo ls /opt/bitnami/magento/bin/ -la

Does magento-cli appear? If not, could you please execute our Support Tool on the machine where the stack is running by following the steps described in the guide below?

Please note that you need to paste the code ID that is shown at the end.

1 Like


This is what I got after executing the tool


bitnami@bitnami-magento-d259:~$ sudo ls /opt/bitnami/magento/bin/ -latotal 20
drwxrwxr-x 2 bitnami daemon 4096 Apr 13 17:18 .
drwxrwxr-x 16 bitnami root 4096 Apr 19 02:32 …
-rw-rw-r-- 1 bitnami daemon 126 Apr 13 17:18 .htaccess
-rw-rw-r-- 1 bitnami daemon 799 Apr 13 17:18 magento
-rw-rw-r-- 1 root root 313 Apr 13 17:18 magento-cli

This is what I got

Hi @jeremiahokpegba,

It seems the permissions for the magento-cli bin are not right. As it is, it has read and write permissions but not execution ones. To fix this, please run the following command:

sudo chmod 775 /opt/bitnami/magento/bin/magento-cli

After that, you should be able to run your upgrade.

Francisco de Paz

Thanks @fdepaz I can now upgrade my instance after I set the permission for the bin folder