• graceful restart ignore ports.conf

    From =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Deghet@21:1/5 to All on Sun Jan 8 22:11:19 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Deghet@21:1/5 to All on Sun Jan 8 22:29:53 2023
    Le lundi 9 janvier 2023 à 07:19:07 UTC+1, The Doctor a écrit :
    In article <9027160f-ed69-4b33...@googlegroups.com>,
    Frédéric Deghetto <frederic...@gmail.com> wrote:
    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
    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
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Doctor@21:1/5 to frederic.deghetto@gmail.com on Mon Jan 9 06:19:05 2023
    In article <9027160f-ed69-4b33-802b-19f95b3719c3n@googlegroups.com>,
    Frédéric Deghetto <frederic.deghetto@gmail.com> wrote:
    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

    Debian? You might have to readd modules.
    --
    Member - Liberal International This is doctor@nk.ca Ici doctor@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Deghet@21:1/5 to All on Mon Jan 9 00:47:33 2023
    Le lundi 9 janvier 2023 à 07:29:55 UTC+1, Frédéric Deghetto a écrit :
    Le lundi 9 janvier 2023 à 07:19:07 UTC+1, The Doctor a écrit :
    In article <9027160f-ed69-4b33...@googlegroups.com>,
    Frédéric Deghetto <frederic...@gmail.com> wrote:
    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
    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
    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)

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Deghet@21:1/5 to All on Mon Jan 9 21:27:37 2023
    Le lundi 9 janvier 2023 à 09:47:34 UTC+1, Frédéric Deghetto a écrit :
    Le lundi 9 janvier 2023 à 07:29:55 UTC+1, Frédéric Deghetto a écrit :
    Le lundi 9 janvier 2023 à 07:19:07 UTC+1, The Doctor a écrit :
    In article <9027160f-ed69-4b33...@googlegroups.com>,
    Frédéric Deghetto <frederic...@gmail.com> wrote:
    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
    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
    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)
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)