mod-ruid2
mod-ruid2 copied to clipboard
Error Cannot kill process XXXX: Operation not permitted!
When Apache 2.4 tries to kill a instance that is running under a userid set by ruid2, it cannot kill process, giving the error Error Cannot kill process XXXX: Operation not permitted! This happens for example on a PHP script handling Server Event Notifications that is in a loop. Then other apache clients become affected giving emty responses.
Where is the message coming from? I don't see "kill process" in mod_ruid2 sources.
Edit: from php:
./ext/opcache/ZendAccelerator.c: zend_accel_error(ACCEL_LOG_ERROR, "Cannot kill process %d: %s!", mem_usage_check->l_pid, strerror(errno));
Most likely https://bugs.php.net/bug.php?id=76482
ruid2 does not kill process.
Is the master Apache process who periodically tries to kill child processes after serving a determinate number of request (set in apache conf).
When it tries to kill a process that is running a non-ending PHP script (like a notification service), as the process belongs to a different user (as ruid2 does), it cannot kill it.
El 1/2/19 a las 14:07, Arkadiusz Miśkiewicz escribió:
Where is the message coming from? I don't see "kill process" in mod_ruid2 sources.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mind04/mod-ruid2/issues/17#issuecomment-459716957, or mute the thread https://github.com/notifications/unsubscribe-auth/AhOvA8EmRSyCBc2GpB_vieuSyFFAtzBNks5vJDwigaJpZM4RMaGe.
Not exactly. It's not apache. It's php (well, it's loaded as so into apache process). The killing code comes from php. php opcache module (which uses kill for some memory management reason). And the problem is that this php code doesn't handle EPERM well.
So this issue should be closed as this is not ruid2 problem.