Discussion:
graceful restart ignore ports.conf
(too old to reply)
Frédéric Deghetto
2023-01-09 06:11:19 UTC
Permalink
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
The Doctor
2023-01-09 06:19:05 UTC
Permalink
Post by Frédéric Deghetto
Hi,
[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
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
------------------------------------------
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 ?
- 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
Debian? You might have to readd modules.
--
Member - Liberal International This is ***@nk.ca Ici ***@nk.ca
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Birthdate: 29 Jan 1969 Redhill, Surrey, England Beware https://mindspring.com
Frédéric Deghetto
2023-01-09 06:29:53 UTC
Permalink
Post by Frédéric Deghetto
Hi,
Since few days every graceful restart, initiated by logrotate (every 12
[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
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
------------------------------------------
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 ?
- 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
Debian? You might have to readd modules.
--
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Birthdate: 29 Jan 1969 Redhill, Surrey, England Beware https://mindspring.com
You mean the enabled modules ?
Here what I have:
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
status_module (shared)
Frédéric Deghetto
2023-01-09 08:47:33 UTC
Permalink
Post by Frédéric Deghetto
Post by Frédéric Deghetto
Hi,
Since few days every graceful restart, initiated by logrotate (every 12
[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
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
------------------------------------------
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 ?
- 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
Debian? You might have to readd modules.
--
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Birthdate: 29 Jan 1969 Redhill, Surrey, England Beware https://mindspring.com
You mean the enabled modules ?
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
status_module (shared)
I had /etc/apache2/sites-enabled/000-default.conf pointing on port 80 for virtualhost. I have changed it to 81.
I have seen this with apachectl -S.
I keep you in touch in test in progress
Frédéric Deghetto
2023-01-10 05:27:37 UTC
Permalink
Post by Frédéric Deghetto
Post by Frédéric Deghetto
Post by Frédéric Deghetto
Hi,
Since few days every graceful restart, initiated by logrotate (every 12
[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
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
------------------------------------------
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 ?
- 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
Debian? You might have to readd modules.
--
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Birthdate: 29 Jan 1969 Redhill, Surrey, England Beware https://mindspring.com
You mean the enabled modules ?
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
status_module (shared)
I had /etc/apache2/sites-enabled/000-default.conf pointing on port 80 for virtualhost. I have changed it to 81.
I have seen this with apachectl -S.
I keep you in touch in test in progress
Looks OK right now.

Loading...