Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

graceful restart ignore ports.conf

38 просмотров
Перейти к первому непрочитанному сообщению

Frédéric Deghetto

не прочитано,
9 янв. 2023 г., 01:11:2109.01.2023
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

не прочитано,
9 янв. 2023 г., 01:19:0709.01.2023
In article <9027160f-ed69-4b33...@googlegroups.com>,
Debian? You might have to readd modules.
--
Member - Liberal International This is doc...@nk.ca Ici doc...@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

не прочитано,
9 янв. 2023 г., 01:29:5509.01.2023
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

не прочитано,
9 янв. 2023 г., 03:47:3409.01.2023
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

не прочитано,
10 янв. 2023 г., 00:27:3810.01.2023
Looks OK right now.
0 новых сообщений