Bug #80417 [Opn]: Upgraded from 7.4.6 to 7.4.12 Cronjobs that call PHP scripts hang indefinitely
Edit report at https://bugs.php.net/bug.php?id=80417&edit=1
ID: 80417
User updated by: mbottos84 at gmail dot com
Reported by: mbottos84 at gmail dot com
Summary: Upgraded from 7.4.6 to 7.4.12 Cronjobs that call
PHP scripts hang indefinitely
Status: Open
Type: Bug
Package: *Web Server problem
Operating System: Centos 7
PHP Version: 7.4.12
Block user comment: N
Private report: N
New Comment:
Something worth noting, I also updated another identical functioning server that had already been
updated to 7.4.11
So that one went from 7.4.11 to 7.4.12
Not sure if this relevant but thought I'd provide any info that I could.
So, 7.4.11 to 7.4.12 was ok
7.4.6 to 7.4.12 produced the issue
Previous Comments:
------------------------------------------------------------------------
[2020-11-25 15:18:28] mbottos84 at gmail dot com
Sorry, No Preloading.
Was waiting on an answer from the dev.
------------------------------------------------------------------------
[2020-11-25 14:55:01] mbottos84 at gmail dot com
We host our own servers.
If I run the script manually from the terminal, it does not hang.
Of course, I'm only running it once. The cronjobs run a hundred or two an hour.
It doesn't appear every single one hangs, just the majority.
------------------------------------------------------------------------
[2020-11-25 14:49:19] danack@php.net
If it's not related to preloading, maybe try ssh'ing into the server and run the script as
crond would run it, and check it works like that?
Also, what hosting environment are your servers running in? I've seen some issues with GCP
kubernetes where cli scripts were 'hanging' in places where it was 'impossible'
for them to hang....
------------------------------------------------------------------------
[2020-11-25 14:30:14] nikic@php.net
Just to exclude an issue in 7.4.12 in particular, are you using preloading?
------------------------------------------------------------------------
[2020-11-25 14:27:34] mbottos84 at gmail dot com
Description:
------------
We used yum update and updated php from the epel repo from 7.4.6 to 7.4.12
Instantly all of our cronjobs that call php were hung.
The server processes don't close and become zombies.
They keep piling up and you can see a process for the php script called and a process for the
corresponding crond.
Its possible to manually terminate using kill, but they wont close on their own.
We've tried adding calls to timeout/terminate the php script after several minutes but the
process still remains hung.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80417&edit=1
Thread (8 messages)