A
Alokaiβ€’10mo 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
rohrigβ€’10mo 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
aliceOPβ€’10mo 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
rohrigβ€’10mo ago
can you run docker without using sudo?
alice
aliceOPβ€’10mo ago
yes I can run docker without sudo.
rohrig
rohrigβ€’10mo ago
Can you tell me about your environment? What os etc.
alice
aliceOPβ€’10mo 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
rohrigβ€’10mo ago
weird. I just ran it and I have the same setup except an m1 and it worked fine
rohrig
rohrigβ€’10mo 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
aliceOPβ€’10mo 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
aliceOPβ€’10mo ago
No description
rohrig
rohrigβ€’10mo ago
can you try node 18 or 20? If you run npx @vue-storefront/cli what version do you have?
alice
aliceOPβ€’10mo ago
v16.20.2 I will try switching to node18 version but document show use version 16
rohrig
rohrigβ€’10mo 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
aliceOPβ€’10mo ago
Okay, I'll choose a new name. Thank you Still no prompt for me to enter the local password,
alice
aliceOPβ€’10mo ago
No description
alice
aliceOPβ€’10mo ago
Hi @rohrig still install fail.
rohrig
rohrigβ€’10mo ago
Diskspace perhaps?
alice
aliceOPβ€’10mo ago
My computer has 40G of free disk space.
rohrig
rohrigβ€’10mo 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
aliceOPβ€’10mo 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
aliceOPβ€’10mo ago
No description
alice
aliceOPβ€’10mo ago
No description
rohrig
rohrigβ€’10mo 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
skirianovβ€’10mo 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
aliceOPβ€’10mo ago
Yes, I use this one. but sample data not show in https://magento.test
alice
aliceOPβ€’10mo ago
No description
alice
aliceOPβ€’10mo ago
There doesn't appear to be any errors. You can see in the screenshot that there are no error alerts.
No description
rohrig
rohrigβ€’10mo ago
I think perhaps the best course of action is to create an issue in https://github.com/markshust/docker-magento.
alice
aliceOPβ€’10mo ago
Ok Thanks!
Want results from more Discord servers?
Add your server