docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

cannot access 'bin/magento': No such file or directory (Mac M1 chip)

Open RicardoDiezTroquer opened this issue 5 years ago • 6 comments

Description Hello everyone, I hope you are well, I am writing here to see if you can help me with a problem that I have had for several days. I am trying to create a new magento 2 project following the manual setup steps and it always returns this error message in step 4 "/ bin / chmod: cannot access 'bin / magento': No such file or directory", they have idea of what is due? I leave the information about my environment.

Docker 3.3.3 Mac mini (M1, 2020) Memory 16GB SO : macOS Big Sur 11.5.2

Steps To Reproduce

  1. following the manual configuration steps in the fourth step I run this command "bin / setup magento.test"

Expected Result

Actual Result "/ bin / chmod: cannot access 'bin / magento': No such file or directory" Captura de Pantalla 2021-08-19 a la(s) 16 28 20

RicardoDiezTroquer avatar Aug 19 '21 21:08 RicardoDiezTroquer

Looks like something with the installer not allowing full download of Magento ? You may have to do an initial Magento download using composer so you can manually authenticate using the access key you create in your Magento account.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Then follow the Existing Projects instructions.

Busy trying this route now to see if it works.

jasonloeve avatar Aug 24 '21 08:08 jasonloeve

Going to close this out as a dupe of https://github.com/markshust/docker-magento/issues/396

markshust avatar Aug 31 '21 14:08 markshust

Hi Guys,

I'm getting the same issue, as shown in the logs below,

I'm running the onelinesetup on Windows10. Could someone guide me on what to do here.

Starting magento_redis_1 ...
Starting magento_phpfpm_1 ...
Starting magento_mailcatcher_1 ...
Starting magento_rabbitmq_1    ...
Starting magento_app_1         ...
Starting magento_elasticsearch_1 ...
Starting magento_mailcatcher_1   ... done
Starting magento_phpfpm_1        ... done
Starting magento_redis_1         ... done
Starting magento_rabbitmq_1      ... done
Starting magento_db_1            ... done
Starting magento_elasticsearch_1 ... done
Starting magento_app_1           ... done
chmod: cannot access 'bin/magento': No such file or directory

kd-labs avatar Dec 21 '21 10:12 kd-labs

@kd-labs your install must have failed. I'd recommend removing your entire project with bin/removeall, remove the project directory, and attempting the install again.

markshust avatar Dec 21 '21 17:12 markshust

I got the same error , my installation got interrupted without any error. So I print $? and got error code 137. It means no enough memory therefore I increased the memory of my Linux host and it worked :)

mgonzalezurbano avatar Feb 17 '22 15:02 mgonzalezurbano

having same issue. removing project and making it again - dont helping.

ajahongir avatar Feb 15 '24 19:02 ajahongir