-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
Increase nginx/php timeout: Drupal distribution fails to install due to " epoll_wait() reported that client prematurely closed connection" #672
Comments
I updated to the latest ddev, reset the DB data, and re-installed. This time - after about 25-30 minutes installing it ended with a |
Thank you for the detailed issue. I believe I was able to replicate this against the 8.4.x branch of the varbase github repository. I used all default settings during the install process of the distribution.
|
That's the error -- but I'm getting it much earlier in the process before 'Configure site"! |
I've seen this. I think we need to increase the timeout in the nginx config. However, when I saw it, just reloading the URL got things all finished up. Also, Docker 17.12 is highly not recommended as it has a hanging problem. 17.09 and 18.02 (edge) seem to be OK at this point, and they promise to fix 17.12. |
I'll upgrade Docker with Brew shortly and try again. It seems any Drupal Distro installs are painfully slow to install with Docker/ddev. |
I use a 2013 Macbook Air (1.7 GHz Intel Core i7), and it's pretty old and long in the tooth. So yeah, yours sounds a little old. Adding memory to docker has also helped lots of people (and being careful not to run a bunch of sites at one time) |
Mines Early 2014 - time flies :) |
Also, I'm increasing the nginx timeout waiting for php-fpm in https://github.com/drud/docker.nginx-php-fpm-local/pull/51, will also look at the php timeout. |
Saw your earlier thing, apparently deleted, but for edge with homebrew/docker I think you have to |
Yeah realised I needed to re-install specific edge package to get the v18.x after some knocking around (new to docker) The 4GB memory increase got me through to the "Assemble extra components" stage of the instal process before a failure of "504 Gateway Time-out nginx/1.13.6" |
You can provide your own nginx config if you want, and bump the nginx timeout, https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/#providing-custom-nginx-configuration I'll also have a new container with increased timeout ready in a bit. |
I'd love to hear if putting Oh, but you need to upgrade your ddev to v0.13.1 please. I don't think there's any risk for you in that. |
Tried the new webimage but it didn't start
|
Shoot, guess that's bleeding edge for you. I don't have that problem, came up fine. You might try |
Oh... and if you're now on Edge 18.02... there are some weird problems with that. You might have to go back to 17.09. |
I can demonstrate your problem with varbase. I suspect they're doing a really long-running item in the batch stuff. I even increased the php max_execution_time and nginx timeout to 999. My bet is that the varbase folks have seen this before and know why it is. I think they're doing something really, really long in there. I assume you have plenty of experience with installing varbase? |
Heh, no I was just wanting to give Varbase a try and have no experience of it! I was also trying the Acquia Lightning distro earlier too - which failed too, but with a different issue, it seems. |
OK, well shucks - we don't have any way to know if this is a problem in ddev or somewhere else, like varbase. If you have a comparable environment to try these things out you can try them out there to see, like a local webserver/php config. |
BTW, when it hit the error I clicked "Continue to the error page" and it continued on and appeared to complete successfully. Drupal's batch stuff is a pretty fragile mix in general. |
Just setting up GeerlingGuys Drupal.vm to test Varbase distro on as a comparable test. When I clicked continue once, it skipped all the extras from the Varbase installer - and did let me move around the Drupal install, just appeared unfinished. |
We haven't had enough reports of problems like this to debug this, so I'm going to close it. But anybody is free to reopen or add additional information. |
If you run long processes you can get the error I get it for running the Hacked! module to check the modules on a site with 200+ modules. So this really needs to be addressed. Also, only the owner can reopen the issue. |
The duration needs increasing 75% the output tells me how far it got into the scan. |
I'm wondering if we should just set an absurdly high timeout (like 36000 seconds) and call it a day. |
Yeah, it might be wise, the composer has a similar issue you can just run a command to tell it memory is infinite to get past it. |
Sorry i've not had any time since February to revisit this and test Varbase distro on Drupal.vm yet to compare the issue. Good to see at least somebody else has noticed similar problems now. |
I think there are a couple of approaches:
|
Perhaps a little howto for those that want this? |
I should note that only poorly designed code goes underwater for longer than a normal page timeout, and won't work in most server environments. That's why php-cli has a timeout of 0 (never timeout), so you can do strictly php-work non-website work on the command line, and why big things are often done with drush. So Hacked module, does it have a drush UI? Because that would normally be the way to go. The way to change the timeout:
Custom nginx and php configs are discussed in https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/ Also, please make sure you don't have xdebug enabled. The current timeout is 6 minutes. Any php process that's doing something for 6 minutes without coming up for air is not intending to populate a page :) It's probably mining bitcoin. |
Hah! |
EDIT: My problem was something else. This keeps happening for me. On a project which was running fine a few days ago -- my Commerce 2x dev environment..
|
This sounds different from the OP. You're having the web service health check time out. Does Please delete any webimage: line in your config.yaml; Probably |
Yeah, I'm wrong. Just searching the error brought this up. Was due to xdebug config override. |
I think this turns out to be #844 - the ddev-router nginx timeout has to be increased. |
What happened:
Attempted to install the Varbase distribution. During "Install Site" section of the install.php process it eventually halts, before completing the 108 tasks, with the fatal error:
Reviewing the logs I found:
Do services configured by ddev need longer timeouts when doing intensive things like database queries during install?
What you expected to happen:
Drupal install.php to complete the process and a finished & configured site to be available.
How to reproduce this:
Use composer create-project as directed and then run through the Drupal 8 install.php wizard.
Version:
Anything else do we need to know:
Repeated the same install process and reproduces same fatal issue.
Related source links or issues:
https://www.drupal.org/project/varbase
The text was updated successfully, but these errors were encountered: