ERROR: "/ app / etc /" must exist for the magento 1.9 tool to work properly

I am trying to install a patch for the new version for magento 1.9. I am working on a window system.

and I get the following error.

D:\xampp\htdocs\magento>sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh ERROR: "/app/etc/" must exist for proper tool work. 

I run the CMD command, and SH also works fine

enter image description here

I also tried using Git. but getting the same error

enter image description here

Linux also does not work.

enter image description here

can someone tell me what is the exact problem and how can this be fixed.

thanks

+2
source share
6 answers

The ability to make it work on a Windows machine, as well as for PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh.

The problem was this: CURRENT_DIR = $PWD_BIN / (line 60), and the value $ PWD_BIN is defined in the same file PWD_BIN = which pwd (line 35), which does not work on windows, so we will need to replace this value.

  • Open bash
  • Your current directory should be the root of magento.
  • Run the command 'pwd'
  • It gives the path to your current directory: Check screenshot
  • Copy this path and edit the file, on line 67 replace:

    CURRENT_DIR = $PWD_BIN / to CURRENT_DIR = /d/xampp/htdocs/magento/

Run the patch with the same command sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh

Note. Make sure you replace '/ d / xampp / htdocs / magento /' with the root directory.

and it will work like a charm!

+7
source

Getting rid of the slash at the end of line 67 seems to be better for me.

Before: CURRENT_DIR='$PWD_BIN'/

After: CURRENT_DIR='$PWD_BIN'

+1
source

In SSH, you can change the directory by typing cd /path/to/magento/location/ , and then you can run the bash command to install the patch. If you don't know the path, you can run the pwd , which tells you your current directory. If you are not in the right place, it looks for the / etc application in the wrong place (probably your root folder). Therefore, try changing the current directory to the Magento directory, and then the error should disappear.

+1
source

I had the same problem and the previous answers did not work for my situation. The way I was able to fix the problem was to change the directory and then run bash in SSH.

  • Run the pwd . This will give you your current path.
  • Change the directory in the Magento folder by running cd /path/to/your/magento/directory/ . This should be the path from your current location to your Magento destination.
  • Now run the bash patch update ... bash PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh . Now that you are in the right place, updating the patch should work smoothly!
+1
source

This error occurs if you are in the root directory, and not in the root directory of Magento. Go to the Magento folder and run the command again.

This error occurs if the folder is not found or does not have sufficient permissions.

Use git bash under windows that should work. It does not work with normal CMD, because there is some difference in the path, and regular CMD cannot find this path from your patch file.

0
source

I tried changing above. But I need to make some changes to this to make it work. I changed it CURRENT_DIR = $ PWD_BIN to CURRENT_DIR = "/ D / wamp / www / magento /" It did not work without "(quotation marks)

Hope this helps you.

0
source

All Articles