Skip to content
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

PHP cli lags and going away. Suppose while recompiling container in DEV #26252

Closed
wtorsi opened this issue Feb 21, 2018 · 4 comments
Closed

PHP cli lags and going away. Suppose while recompiling container in DEV #26252

wtorsi opened this issue Feb 21, 2018 · 4 comments

Comments

@wtorsi
Copy link

wtorsi commented Feb 21, 2018

Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4.* 4.*
PHP 7.1., 7.2.

Hi,
Don't know how to debug this kind of error.
PHP cli lags and going away, I suppose while recompiling container in DEV env. No output at all, just the process never finished.
The problem can be reproduced using PHP 7.2.2 and PHP 7.1.14 and only cli, FPM works properly and container is built.

Htop output, time does not increase.
image

Output of the command.
image

Any ideas how to debug this error? Or maybe how to fix it?

EDIT: see https://github.com/Homebrew/homebrew-core/pull/25559/files

@Aerendir
Copy link
Contributor

Aerendir commented Feb 21, 2018

Maybe the two things are related, but I also experience often a problem like this using the built-in webserver: if I modify the code the webserver freezes making impossible to load the route in the browser and I have to stop and start it again.

This happens almost always when I edit files in vendor directory and less often when I edit files in the src directory.

I'm not able to identify a common or unique cause of the issue, nor to identify clear steps to reproduce the error, but it happens constantly...

As said, maybe the two problems are related...

@tomzx
Copy link

tomzx commented Feb 23, 2018

@wtorsi If the time doesn't increase and you are running doctrine:migrations:diff (for which I do not know the implementation, but assumes that it needs to connect to a remote database), my guess would be that php is possibly waiting for a response back from a socket (to the database) but not getting any, hence no progress is being made.

How long have you waited? Does it ever end up terminating or it stays stuck like this for mroe than 5-10 minutes?

@maxbeckers
Copy link
Contributor

@wtorsi i also had a problem like that with php7.1. I guess I had to fix the file permissions for the app/console.

@wtorsi
Copy link
Author

wtorsi commented Apr 5, 2018

@maxbeckers @tomzx Hi, sorry, i've totally forgot about this issue.
I've found solution for PHP7.2 actually, which is described here https://github.com/Homebrew/homebrew-php/issues/4799 (IMAP extension), maybe this can help.

Also moving my tone of custom bundles to composer autoload increased building precompiled cache time.

@wtorsi wtorsi closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants