A
Alokai2y ago
alice

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
rohrig
rohrig2y ago
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.
docker stop $(docker ps -aq)
docker stop $(docker ps -aq)
alice
aliceOP2y ago
Hi @rohrig Thanks for your reply, I tried to stop all containers but still this error. Any ideas on how to fix this? 😅
No description
rohrig
rohrig2y ago
can you run docker without using sudo?
alice
aliceOP2y ago
yes I can run docker without sudo.
rohrig
rohrig2y ago
Can you tell me about your environment? What os etc.
alice
aliceOP2y ago
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
rohrig
rohrig2y ago
weird. I just ran it and I have the same setup except an m1 and it worked fine
rohrig
rohrig2y ago
I don't see on your screenshot it asking for a password 🤔 When I run the command it asks me for one. . .
No description
alice
aliceOP2y ago
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.
alice
aliceOP2y ago
No description
rohrig
rohrig2y ago
can you try node 18 or 20? If you run npx @vue-storefront/cli what version do you have?
alice
aliceOP2y ago
v16.20.2 I will try switching to node18 version but document show use version 16
rohrig
rohrig2y ago
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.
alice
aliceOP2y ago
Okay, I'll choose a new name. Thank you Still no prompt for me to enter the local password,
alice
aliceOP2y ago
No description
alice
aliceOP2y ago
Hi @rohrig still install fail.
rohrig
rohrig2y ago
Diskspace perhaps?
alice
aliceOP2y ago
My computer has 40G of free disk space.
rohrig
rohrig2y ago
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...
alice
aliceOP2y ago
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?
alice
aliceOP2y ago
No description
alice
aliceOP2y ago
No description
rohrig
rohrig2y ago
also weird. I just tried it and it's working fine. Can you check the dev tools and see if you're getting errors?
No description
skirianov
skirianov2y ago
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.
alice
aliceOP2y ago
Yes, I use this one. but sample data not show in https://magento.test
alice
aliceOP2y ago
No description
alice
aliceOP2y ago
There doesn't appear to be any errors. You can see in the screenshot that there are no error alerts.
No description
rohrig
rohrig2y ago
I think perhaps the best course of action is to create an issue in https://github.com/markshust/docker-magento.
alice
aliceOP2y ago
Ok Thanks!

Did you find this page helpful?