Magento 2 Docker image error
I'm using npx @vue-storefront/cli m2-only to generate the
magento2 pwa project, but encountered an error while installing Magento 2 Docker image.
Error: ENOENT: no such file or directory, open
'magento/src/auth.json.sample'
Code: ENOENT
The Magento 2 Docker image has been installed successfully in an empty folder in magento.
Can you give me some advice?
29 Replies
Hi @alice π ,
We had a post very recently regarding a similar error. Here's the link to the post : https://discord.com/channels/770285988244750366/1168467015720251462/1198928054735614012
Ensure you can run docker without sudo
Also, I've notice that sometimes if you have a container running that has naming conflicts it can also cause trouble. So before the installation process I would stop all containers.
Hi @rohrig
Thanks for your reply, I tried to stop all containers but still this error.
Any ideas on how to fix this?
π
can you run docker without using sudo?
yes I can run docker without sudo.
Can you tell me about your environment? What os etc.
The operating system is macOS M2
The node version is v16.20.2
yarn version is 1.22.21
docker version is 24.0.7
weird. I just ran it and I have the same setup except an m1 and it worked fine
I don't see on your screenshot it asking for a password π€ When I run the command it asks me for one. . .
Yes, it didn't let me enter the local password.
I tried to install again showing a new error
Hi @rohrig
I tried docker stop $(docker ps -aq)
but still got the same error.
Error: ENOENT: no such file or directory, open
'magentounineed/src/auth.json.sample'
I check magentounineed is an empty folder.
can you try node 18 or 20?
If you run npx
@vue-storefront/cli
what version do you have?v16.20.2
I will try switching to node18 version
but document show use version 16
I understand. I'm not really sure what's causing the problem. It's worth a shot.
My other thought is permissions. But that's probably not it if you haven't messed with your permission.
btw, you'll need to either remove the containers from the previous run or choose a different name.
Okay, I'll choose a new name. Thank you
Still no prompt for me to enter the local password,
Hi @rohrig still install fail.
Diskspace perhaps?
My computer has 40G of free disk space.
Determining the cause is difficult as I can't reproduce the error. I see you've posted this issue: https://github.com/vuestorefront/vue-storefront/issues/7023 . Thanks for that π . I'll keep you posted if I learn of a reproduction/solution. If you figure it out in the meantime, please add the solution to the issue.
GitHub
error install Β· Issue #7023 Β· vuestorefront/vue-storefront
Environment The operating system is macOS M2 The node version is v16.20.2 yarn version is 1.22.21 docker version is 24.0.7 Reproduction install error Describe the bug npx @vue-storefront/cli init W...
Hi @rohrig
Yes, thank you for your help.
I'm using Manual Setup and it's installing now.
There's also a small problem:
Executing
bin/magento sampledata:deploy
bin/magento setup:upgrade
Visit https://magento.test/ still no sample data to show do you know how to fix it?
also weird. I just tried it and it's working fine. Can you check the dev tools and see if you're getting errors?
hey, our CLI under the hood is using this repo.
Can you please try and follow the guide from this repo and see if it will install on your machine https://github.com/markshust/docker-magento
GitHub
GitHub - markshust/docker-magento: Mark Shust's Docker Configuratio...
Mark Shust's Docker Configuration for Magento. Contribute to markshust/docker-magento development by creating an account on GitHub.
Yes, I use this one. but sample data not show in https://magento.test
There doesn't appear to be any errors. You can see in the screenshot that there are no error alerts.
I think perhaps the best course of action is to create an issue in https://github.com/markshust/docker-magento.
Ok ThanksοΌ