Bug 65771 - Recurring issues (sites not loading) after upgrade to 2.4.52 (from 2.4.51)
Summary: Recurring issues (sites not loading) after upgrade to 2.4.52 (from 2.4.51)
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.52
Hardware: HP other
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-28 10:37 UTC by Oleksandr Lytvyn
Modified: 2022-04-09 11:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Lytvyn 2021-12-28 10:37:30 UTC
Hello,
A few days ago i upgraded our webserver to Apache 2.4.52 (from 2.4.51-1+ubuntu18.04.1+deb.sury.org+1), and now I'm seeing strange issue:

Approx. every 1,5 days or every 1 day websites becoming not responsive. If it's virtualhost that could be reached directly -> it just loads very long, if it's virtualhost that is behind CloudFlare -> it also loads very long. In both cases -> website is not opening.

In case of CloudFlare i don't see "typical" CF error, it just keeps loading.

In apache's virtualhost logs i dont see exact error. Webserver's RAM/CPU/network/IO load as usual. Virtually nothing wrong. But websites in cascade one by one over +- 20-30 mins stopping working. As soon as apache restarted -> everything is back to normal.

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic

# php-fpm7.3 -version
PHP 7.3.33-1+ubuntu18.04.1+deb.sury.org+1 (fpm-fcgi) (built: Nov 19 2021 06:24:43)

# apache2 -version
Server version: Apache/2.4.52 (Ubuntu)
Server built:   2021-12-20T21:06:57

# apt policy apache2
apache2:
  Installed: 2.4.52-1+ubuntu18.04.1+deb.sury.org+1
  Candidate: 2.4.52-1+ubuntu18.04.1+deb.sury.org+1
  Version table:
 *** 2.4.52-1+ubuntu18.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.29-1ubuntu4.20 500
        500 http://il.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     2.4.29-1ubuntu4.18 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     2.4.29-1ubuntu4 500
        500 http://il.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
-----

apache2/bionic,now 2.4.52-1+ubuntu18.04.1+deb.sury.org+1 amd64 [installed]
apache2-bin/bionic,now 2.4.52-1+ubuntu18.04.1+deb.sury.org+1 amd64 [installed,automatic]
apache2-data/bionic,bionic,now 2.4.52-1+ubuntu18.04.1+deb.sury.org+1 all [installed,automatic]
apache2-utils/bionic,now 2.4.52-1+ubuntu18.04.1+deb.sury.org+1 amd64 [installed,automatic]
libapache2-mod-cloudflare/xenial,now 2016.11.0-1 amd64 [installed]
libapache2-mod-fcgid/bionic,now 1:2.3.9-1 amd64 [installed]
libapache2-mod-php7.3/bionic,now 7.3.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 [installed]
python-certbot-apache/bionic,bionic,now 0.31.0-1+ubuntu18.04.1+certbot+1 all [installed]
python3-certbot-apache/bionic,bionic,now 0.31.0-1+ubuntu18.04.1+certbot+1 all [installed,automatic]

What i see in apache error log:
[Tue Dec 28 10:36:44.151538 2021] [proxy_fcgi:error] [pid 20792:tid 140114877458176] [client 95.91.75.28:20176] AH01071: Got error 'Primary script unknown'
[Tue Dec 28 10:36:50.355352 2021] [proxy_fcgi:error] [pid 20791:tid 140114114115328] [client 95.91.75.28:16452] AH01071: Got error 'Primary script unknown'
[Tue Dec 28 10:36:52.091766 2021] [proxy_fcgi:error] [pid 20791:tid 140115271718656] [client 95.91.75.28:16452] AH01071: Got error 'Primary script unknown'
[Tue Dec 28 10:36:54.282002 2021] [proxy_fcgi:error] [pid 20791:tid 140115305289472] [client 95.91.75.28:16452] AH01071: Got error 'Primary script unknown'

It was in the moment when issues appeared. But i's also could be seen here and there from time to time...

Please advice, is there some additional information i need to provide?
This looking very strange, because it appeared after upgrade to 2.4.52 and it's "fixed" by restarting apache2 service.

Thanks.
Comment 1 Yann Ylavic 2021-12-28 11:54:55 UTC
Possibly the same issue as bug 65769, please try this patch: https://bz.apache.org/bugzilla/attachment.cgi?id=38147
Comment 2 Oleksandr Lytvyn 2021-12-28 15:48:16 UTC
Please advice, is this safe to do on production server?
Comment 3 Oleksandr Lytvyn 2022-02-15 21:36:17 UTC
Hello, I tried to apply proposed patch, but was not able to find in which file/place I should change values.

I tried to find file: find / -type f -name "event.c"

But it's seems that there is no such file and it's not clear how to find it.

Please help. Thanks.
Comment 4 Yann Ylavic 2022-03-15 16:37:41 UTC
The patch is now part of the httpd-2.4.53 release (from yesterday).
Could you please test if it resolved your issue?
Comment 5 Oleksandr Lytvyn 2022-04-09 11:16:41 UTC
Thank you. It's been almost month as we upgraded to 2.4.53. Upgrade fixed this issue. Thank you.