markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.52k stars 992 forks source link

env: bash: Argument list too long #1170

Open DBelka opened 3 months ago

DBelka commented 3 months ago

Description After running the onelinesetup from my terminal it seems to download all the files, but during the execution it exits after a while saying "env: bash: Argument list too long". Upon an investigation, I've noticed the path seems a bit weird and unusually long.

Screenshot 2024-06-05 at 17 23 50

Steps To Reproduce

  1. Create folder
  2. run the onelinesetup

Expected Result Start the installation process.

Actual Result Errors out with a message: env: bash: Argument list too long

YevhenZvieriev commented 3 months ago

Hi, @DBelka

Could you let me know if you're sure you use the correct oneliner?

Try this one to install Magento 2.4.7:

curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.7 community
DBelka commented 2 months ago

Hi @YevhenZvieriev , I've figured out what the problem was. The root cause was my Ruby on Rails path in my ZSH terminal. Once I commented out the path, it worked like a charm. Not an ideal solution, but a solution nonetheless.

Thanks for trying to help!

yunyit commented 1 week ago

I have the same env: bash: Argument list too long issue ... still working on it :(