Frédéric Deghetto
2023-01-09 06:11:19 UTC
Hi,
Since few days every graceful restart, initiated by logrotate (every 12 hours), endup to :
[Sun Jan 08 22:21:19.381860 2023] [mpm_prefork:notice] [pid 155072] AH00171: Graceful restart requested, doing restart
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
[Sun Jan 08 22:21:19.410297 2023] [mpm_prefork:alert] [pid 155072] no listening sockets available, shutting down
[Sun Jan 08 22:21:19.410316 2023] [:emerg] [pid 155072] AH00019: Unable to open logs, exiting
[Sun Jan 08 22:21:24.020382 2023] [core:warn] [pid 275707] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 08 22:21:24.027850 2023] [mpm_prefork:notice] [pid 275707] AH00163: Apache/2.4.54 (Debian) configured -- resuming normal operations
[Sun Jan 08 22:21:24.029115 2023] [core:notice] [pid 275707] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 08 22:21:24.428695 2023] [mpm_prefork:notice] [pid 275707] AH00169: caught SIGTERM, shutting down
I don't understand why apache tries a graceful restart on port 80 as, in /etc/apache2/ports.conf I have this:
------------------------------------------
Listen 81
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
------------------------------------------
Listen is 81 as haproxy is on 80.
A normal apache2 start or restart is OK as expected, ending up on httpd listening on port 81.
I have the feeling there is something wrong with a script or ?
FYI, some more data:
- Linux serveur 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
- Server version: Apache/2.4.54 (Debian)
- Server built: 2022-06-09T04:26:43
- Raspberry pi OS: debian version 11.6
Many thanks,
Frederic
Since few days every graceful restart, initiated by logrotate (every 12 hours), endup to :
[Sun Jan 08 22:21:19.381860 2023] [mpm_prefork:notice] [pid 155072] AH00171: Graceful restart requested, doing restart
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
[Sun Jan 08 22:21:19.410297 2023] [mpm_prefork:alert] [pid 155072] no listening sockets available, shutting down
[Sun Jan 08 22:21:19.410316 2023] [:emerg] [pid 155072] AH00019: Unable to open logs, exiting
[Sun Jan 08 22:21:24.020382 2023] [core:warn] [pid 275707] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 08 22:21:24.027850 2023] [mpm_prefork:notice] [pid 275707] AH00163: Apache/2.4.54 (Debian) configured -- resuming normal operations
[Sun Jan 08 22:21:24.029115 2023] [core:notice] [pid 275707] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 08 22:21:24.428695 2023] [mpm_prefork:notice] [pid 275707] AH00169: caught SIGTERM, shutting down
I don't understand why apache tries a graceful restart on port 80 as, in /etc/apache2/ports.conf I have this:
------------------------------------------
Listen 81
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
------------------------------------------
Listen is 81 as haproxy is on 80.
A normal apache2 start or restart is OK as expected, ending up on httpd listening on port 81.
I have the feeling there is something wrong with a script or ?
FYI, some more data:
- Linux serveur 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
- Server version: Apache/2.4.54 (Debian)
- Server built: 2022-06-09T04:26:43
- Raspberry pi OS: debian version 11.6
Many thanks,
Frederic