Bug #81308 [Opn->Csd]: fpm does not starts pool when ENV is more 8000 bytes

From: Date: Fri, 30 Jul 2021 07:44:54 +0000
Subject: Bug #81308 [Opn->Csd]: fpm does not starts pool when ENV is more 8000 bytes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235468@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81308&edit=1 ID: 81308 User updated by: igor0386 at gmail dot com Reported by: igor0386 at gmail dot com Summary: fpm does not starts pool when ENV is more 8000 bytes -Status: Open +Status: Closed Type: Bug Package: FPM related Operating System: debian,apline PHP Version: 8.0.8 Block user comment: N Private report: N New Comment: I'm wrong. php-fpm works well, but cgi-fcgi doesn't. I used cgi-fcgi in healthcheck and the container was restarting all the time. Previous Comments: ------------------------------------------------------------------------ [2021-07-29 15:50:32] igor0386 at gmail dot com Description: ------------ I run the docker container with 300 env variable, but php-fpm is always down. When I research I found that fpm return 104 code if env weight more 8000 bytes. I try on the dockerized 8.1.0beta1, 8, 7.4, 7.2 and 7.3 from deb on the debian os. alpine work when env | wc -c less 7995 debian container work when env | wc -c less 8119 Simple reproduce by docker-compose from Test script: section and check by cgi-fcgi from Expected result: section. Test script: --------------- docker-compose.yaml version: "3" services: fpm: image: php:8.1.0beta1-fpm-alpine3.14 # image: php:8-fpm # image: php:7.4-fpm # image: php:7.2-fpm env_file: .env volumes: - ./www.conf:/usr/local/etc/php-fpm.d/www.conf www.conf [global] log_level = debug error_log = /tmp/php-fpm.log [www] user = www-data group = www-data listen = 9000 pm = dynamic pm.max_spare_servers = 1 pm.min_spare_servers = 1 pm.start_servers = 1 pm.max_children = 1 pm.max_requests = 1 pm.status_path = /fpm-status .env with any contents, many short ENV=value or one BIG_ENV=8000_simbols Expected result: ---------------- root@4624397c329e:/www# env | wc -c 8118 root@4624397c329e:/www# SCRIPT_NAME=/fpm-status SCRIPT_FILENAME=/ REQUEST_METHOD=GET /usr/bin/cgi-fcgi -bind -connect localhost:9000 && echo $? 0 Actual result: -------------- root@835b25c9bd0a:/www# env | wc -c 8119 root@835b25c9bd0a:/www# SCRIPT_NAME=/fpm-status SCRIPT_FILENAME=/ REQUEST_METHOD=GET /usr/bin/cgi-fcgi -bind -connect localhost:9000; echo $? 104 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81308&edit=1

« previous php.bugs (#235468) next »