Closed vhdmoradi closed 7 months ago
Hi, @vhdmoradi
I am helping you.
This happens because the ~/.composer
folder owner is root.
When copied to the container it still has the root owner.
Can I ask, if you executed one-liner as root? If yes, you made a mistake. Composer should never be owned by root, on Linux, Mac, or anywhere else.
I suggest you execute bin/fixowns
and bin/fixperms
, it will resolve your problem.
Yes, what @YevhenZvieriev said, the ~/.composer
directory on your host machine should never be owned by root. I'd suggest correcting the ownerships on this directory (and recursively, so none of the files and folders underneath it are also owned by root), and restart the containers afterwards which should correct your issue.
Thank you both for the answer, I ran both the commands, it did solve the previous error, but a new one occurred now. After I ran the commands, I ran the bin/restart command, and this is the result:
victor@pop-os:~/Sites/magento$ bin/restart
[+] Stopping 8/8
✔ Container magento-phpmyadmin-1 St... 4.2s
✔ Container magento-mailcatcher-1 S... 1.3s
✔ Container magento-app-1 Stopped 1.3s
✔ Container magento-phpfpm-1 Stoppe... 0.4s
✔ Container magento-rabbitmq-1 Stop... 6.7s
✔ Container magento-redis-1 Stopped 0.4s
✔ Container magento-opensearch-1 St... 10.6s
✔ Container magento-db-1 Stopped 0.7s
[+] Running 8/8
✔ Container magento-rabbitmq-1 Heal... 0.0s
✔ Container magento-redis-1 Healthy 0.0s
✔ Container magento-db-1 Healthy 0.0s
✔ Container magento-phpmyadmin-1 St... 0.0s
✔ Container magento-opensearch-1 He... 0.0s
✔ Container magento-phpfpm-1 Starte... 0.0s
✔ Container magento-app-1 Started 0.0s
✔ Container magento-mailcatcher-1 S... 0.0s
Installing devtools metapackage, just a moment...
In CurlDownloader.php line 372:
curl error 28 while downloading https://repo.packagist.org/p2/markshust/mag
ento2-metapackage-devtools-cli.json: Operation timed out after 10025 millis
econds with 0 out of 0 bytes received
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
Devtools installed.
Check your internet connection, and make sure you have internet access and can upload files
Try running the bin/restart
command again, as this may be a temporary issue.
Yep that was it
Description I installed Docker-magento following the instructions and using the one-liner command. Alongside, I also installed docker-desktop to manage hardware distribution. Now, whenever I use docker-desktop dashboard to run the containers, everything works just fine with no problem. But I only have 8 GBs of Ram and a second generation core i5 intel CPU, so, I decided to use bin/start command to run the containers. This is where the problem occurs.
Steps To Reproduce When I run bin/start, it creates and starts all the containers, but giving this error at the end:
Even though, when I run the bin/status, i get:
Which shows that apparently everything is fine. But upon trying to access the website throught the magento.test url, nginx gives me 404 error. While when used with docker-desktop, it works just fine.