[go: up one dir, main page]

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

ALERT: oops, unknown child (145) exited with code 0 #8100

Closed
mr-copilot opened this issue Feb 15, 2022 · 2 comments
Closed

ALERT: oops, unknown child (145) exited with code 0 #8100

mr-copilot opened this issue Feb 15, 2022 · 2 comments

Comments

@mr-copilot
Copy link

Description

Description

The following code:

<?php
....
child = fpm_child_find(pid);
...
if (child) {
			struct fpm_worker_pool_s *wp = child->wp;
			....
} else {
			zlog(ZLOG_ALERT, "oops, unknown child (%d) exited %s. Please open a bug report (https://bugs.php.net).", pid, buf);
		}

Resulted in this output:

we have below configuration in php-fpm.conf and pool fpm
process.max = 5

pm = ondemand
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 2
pm.process_idle_timeout = 10s
pm.max_requests = 500

pm.child_memory = 256
pm.spare_memory = 320

But I expected this output instead:

child = fpm_child_find(pid);
child must be found as we have set configuration accordingly 

PHP Version

PHP 7.4.26

Operating System

Ubuntu 16.04.7 LTS (Xenial Xerus)

PHP Version

PHP 7.4.26

Operating System

Ubuntu 16.04.7 LTS

@mr-copilot
Copy link
Author

let us know if any other details needed to replicate this at your side

@bukka
Copy link
Member
bukka commented Jan 14, 2023

I have created an issue #10315 and PR #10319 that fixes it. This doesn't seem like it is running in container with pid 1 (e.g. Docker) by the report OS so it would be great to hear how FPM was executed in this case. It might be potentially a use case that I didn't count for.

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

4 participants