-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Infinity loop of restarting when PHP thread ends with a SQLSTATE[HY000] [2002] Operation now in progress
error
#1162
Comments
Are you using version 1.3.0 ? |
Yes, it's
|
@7-zete-7 would your expected behavior be for the server to crash in this case? There is some logic to crash the server on repeated worker failure in 1.3, but it will only trigger if script execution takes under 200ms I think. |
I have the same issue. Is there a workaround? |
Sorry for the long reply 😅
Yes, that would help. The container would restart automatically. Considering that I always have more than one FrankenPHP container running per project, it would not cause downtimes.
200ms is too much, in my opinion. A successful launch can also work in such a time. Maybe 50ms? Maybe there is also a way to detect that the PHP process has become, some kind of zombie? |
Perhaps it’s worth checking the number of restarts per point in time? |
v1.3.2 should kill frankenphp on a restart loop, if-and-only-if the file-watcher is disabled. (for obvious reasons, if the filewatcher is enabled, it will not exit -- since you are likely doing development). |
Thanks for the information, @withinboredom! I'll try to update to FrankenPHP v1.3.2 and try to reproduce the error. |
What happened?
If an error occurs connecting to the database during the PHP project
, then messages like
will start to appear non-stop.
Along with this, the
frankenphp_public_index_php_worker_restarts
metric starts to increase rapidly.The problem was recreated by attempting to connect using DBAL to a non-existent host from a Docker network inaccessible to the current container.
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
The text was updated successfully, but these errors were encountered: