Bug 63796 - I keep getting a lot of "worker XXXXXX shared|local already intialized" log entries when debug level logging is enabled for the proxy module
Summary: I keep getting a lot of "worker XXXXXX shared|local already intialized" log e...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.4.39
Hardware: PC All
: P2 trivial (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-01 14:31 UTC by Milen Kirilov
Modified: 2019-10-03 09:19 UTC (History)
0 users



Attachments
The full set of startup logs (103.35 KB, text/plain)
2019-10-01 14:31 UTC, Milen Kirilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milen Kirilov 2019-10-01 14:31:53 UTC
Created attachment 36806 [details]
The full set of startup logs

Forgive me if this is not actually a bug but it does look rather strange so I decided to post it after all. I am running HTTPd inside a docker container. HTTPd is launched using supervisord. I have enabled debug level logging for mod_proxy. I have the following configuration which takes care of handling PHP files by another container with PHP-FPM:
```
ProxyPass /php-fpm-status fcgi://${COMPOSE_PROJECT_NAME}-php73-fpm:9090/php-fpm-status
ProxyPass /php-fpm-ping fcgi://${COMPOSE_PROJECT_NAME}-php73-fpm:9090/php-fpm-ping
<Files *.php>
    SetHandler "proxy:fcgi://${COMPOSE_PROJECT_NAME}-php73-fpm:9090"
</Files>
```
Whenever the server is started after restarting the container or restarted using `supervisord restart apache` I get a massive amount of repeated logs saying:
```
default-apache24       | [Tue Oct 01 13:49:44.855649 2019] [proxy:debug] [pid 918:tid 140531801212032] proxy_util.c(1929): AH00924: worker fcgi://default-php73-fpm:9090/php-fpm-status shared already initialized
default-apache24       | [Tue Oct 01 13:49:44.855652 2019] [proxy:debug] [pid 918:tid 140531801212032] proxy_util.c(1986): AH00926: worker fcgi://default-php73-fpm:9090/php-fpm-status local already initialized
default-apache24       | [Tue Oct 01 13:49:44.855655 2019] [proxy:debug] [pid 918:tid 140531801212032] proxy_util.c(1929): AH00924: worker fcgi://default-php73-fpm:9090/php-fpm-ping shared already initialized
default-apache24       | [Tue Oct 01 13:49:44.855657 2019] [proxy:debug] [pid 918:tid 140531801212032] proxy_util.c(1986): AH00926: worker fcgi://default-php73-fpm:9090/php-fpm-ping local already initialized
```
These two pairs of logs (for each ProxyPass configuration directive) are repeated 36 times and there are 3 sets of those repetitions (I'm assuming these are for each of the 3 children the main process spawns). I have attached the full startup log for reference.

Could that actually be a problem with my setup/configuration? Could it be unclean shutdown that is causing this repetition? What can I do to make the startup cleaner and trim down on the number of such logs?