Bug #80417 [Opn]: Upgraded from 7.4.6 to 7.4.12 Cronjobs that call PHP scripts hang indefinitely

From: Date: Wed, 25 Nov 2020 15:18:28 +0000
Subject: Bug #80417 [Opn]: Upgraded from 7.4.6 to 7.4.12 Cronjobs that call PHP scripts hang indefinitely
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230611@lists.php.net to get a copy of this message
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: Sorry, No Preloading. Was waiting on an answer from the dev. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#230611) next »