-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
nginx won't run / can't be reached #660
Comments
That's weird, ok, lets clear all the containers and dangling images using this command OR try force recreating with no cache using this command |
I did the first command:
Then i started it again with: Output:
Then i checked again with ps command and now it shows up but with state exit 1 for nginx but also mysql which i cant reach anymore as well:
I tried looking into the log file but that shows log entries right before my first post, which inidicates nginx was kinda working. After the latest log entry 2 hours ago there are no new ones. The most recent one is about ssl (which i tried to install with custom domain, thats where it went wrong i think):
So i guess I need to figure out why mysql and nginx have an error 1 state |
try building individual containers with this command and see what's causing the problem |
Ok so I got it working by starting all fresh. docker-compose ps:
However when I try to reach the larvel project I get this in chrome:
However the nginx logs aren't showing any new log entries. Any ideas on how to debug this? Edit: I do know it's reachable under 127.0.0.1 because when I bring nginx down chrome says "local2.securelogin.nu refused to connect." instead of "unexpectedly closed the connection." |
what OS you are using? check and verify your volume mounting also check the nginx config if it is picking up the right directory. infact kindly share your docker-compose.yaml and nginx config what you are using |
I'm running on Mac docker-compose.yml:
nginx.conf:
default.conf: (local.flashalight.com) is my custom domain which I also set up in my /etc/hosts file to point towards 127.0.0.1
|
@nckrtl I may have two possible solutions you can try. The first is stopping any webserver you've got running on your mac. They may be inside any application you've got installed. Visit http://localhost and try to find out what gets served. Note that MacOS has an Apache webserver installed by default. Use the following commands to stop it:
or
The other possible solution: Docker has this cool "Reset to factory defaults" option, as shown below. Please, be aware that this will remove all your containers, volumes. For example, databases within the docker containers. Make backups and export important databases if needed. If possible, could you try resetting your Docker, then try cloning Laradock to a fresh directory on your Mac and try if the issue is still there? We've done a lot of enhancements and changes to Laradock since the issue was opened. |
facing the same issue This site can’t be reached |
I am also getting this same error when running laradock. Are there any updates on a fix for getting the server running? Install everything:
But when I go to http://localhost I get The site can't be reached error |
I pulled laradock yesterday and ran into the same issue on Windows 10. While spinning up my containers it would list Nginx:
But the nginx container would not show up in the list (docker ps). I checked with netstat if anything was hogging the ports, switched up the Nginx ports just to be sure, but no cigar. I reset docker to factory defaults, setup my shared drives BEFORE spinning up any containers and tried again. Nginx container is running now. I have no idea what may have caused this though. |
Same issue here (Docker version 17.05.0-ce run on Synology NAS with DSM 6.1.4-15217 Update 5)
nginx start and stop unexpectedly (from command or Docker GUI; but no log anywhere). My .env differences:
I runned nginx:alpine manually from Docker GUI and it works fine. Maybe a bug in the Dockerfile from laradock ? |
I found some logs:
It seems that Dockerfile doesn't contain ENV after ARG, like:
Now nginx start :) |
Note it as solved and update the repository 😂 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Hi,
I'm struggling for some hours to get laradock running but it seems that nginx just start running. Mysql however can be reached with Sequel Pro. But when i open the browser it shows me that the page can't be reached.
When i do docker ps i get:
And what's missing in that list is nginx, im not sure on how to troubleshoot this issue.
When i do docker-compose down i do see nginx in the list:
Anyone who might know what going on here?
The text was updated successfully, but these errors were encountered: