-
-
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
New manual install get nginx 502 error #116
Comments
I also have repeated this issue when trying to do a manual install |
Same to me. Any workarounds? |
are you installing to a directory in which you previously had an old docker-magento install? if so i believe you need to remove the associated data volumes because of the old config being run against them. you can manually remove them or run bin/remove, then try reinstalling again. |
No. It's a really new install. And after error, re-install app with bin/remove also not working. |
I think it is something to do with a default php-fpm config file which overrides and sets php-fpm to listen on port 9000. I believe the file is zz-docker.conf ^May not be the full reason, but if I rebuilt the image locally using your Dockerfile and added a line to remove this I then got it working as expected. |
i'm unable to replicate. i tried an automated install and a manual install, and both successfully installed. i want to verify that you are completely purging your system before trying again there should be nothing returned as a result for: containers: note that fyi i made no changes to port 9000 or anything wtih zz-docker.conf. appears to work as is. |
also, i want to verify everyone is using the exact steps laid out at https://github.com/markoshust/docker-magento#quick-setup these are the steps i'm taking to replicate a successful install (either automated or manual, both successfully installed for me). |
I have the same issue trying to manually install Magento CE 2.2.6 here is my setup before starting the install: Then here are the commands that I ran for manual setup:
I had to change the docker.composer.yml this : because it failed to find the 7.2-fpm-3 package and even with 7.2-fpm-2 I had a bunch of errors that it did not meet the PHP version requirements.
Other then that the setup goes very well with no errors. My only problem is that I am getting the 502 Bad Gateway error when trying to reach the site. The bin/magento command works fine BTW. I ran the command docker logs -f ea2891582dfd (this is the nginx container id) And this is what I see: 172.19.0.1 - - [17/Jul/2019:21:26:54 +0000] "GET / HTTP/1.1" 502 174 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-" Any help would be appreciated. Thanks, |
This is also happening to me, and I found a solution. I containerized a whole Magento installation inside a custom image and it's loading all of the files upon I found that there's an error when I initially compose my container which says But when I run I'm guessing it is related to that. So what I did is extended the timeout by adding the following environment variables:
And after that, I refreshed my containers including the volume. I ran this command: EDIT: Alternatively, I created an
That way, I don't have to re-set it everytime it fails. |
After new magento 2.2.6 install with sample data, nginx get 502 error
The text was updated successfully, but these errors were encountered: