Bug 2131458 - httpd: Can't start httpd.service with error "Cannot load modules/mod_http2.so into server"
Summary: httpd: Can't start httpd.service with error "Cannot load modules/mod_http2.so...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mod_http2
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joe Orton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-01 13:19 UTC by Xiaofeng Wang
Modified: 2023-11-28 10:05 UTC (History)
7 users (show)

Fixed In Version: mod_http2-2.0.11-1.fc38
Clone Of:
Environment:
Last Closed: 2023-11-28 10:05:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Xiaofeng Wang 2022-10-01 13:19:30 UTC
Description of problem:
Deploy Fedora rawhide instance on GCP. Install httpd and start with "sudo systemctl enable --now httpd.service". httpd service start fail.

Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.

Check httpd.service log:
httpd: Syntax error on line 61 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.modules.d/10-h2.conf: Cannot load modules/mod_http2.so into server: /etc/httpd/modules/mod_http2.so: undefined symbol: nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation

Version-Release number of selected component (if applicable):
apr-1.7.0-18.fc37.x86_64
apr-util-1.6.1-22.fc37.x86_64
apr-util-bdb-1.6.1-22.fc37.x86_64
apr-util-openssl-1.6.1-22.fc37.x86_64
fedora-logos-httpd-38.0.0-1.fc38.noarch
httpd-2.4.54-5.fc37.x86_64
httpd-core-2.4.54-5.fc37.x86_64
httpd-filesystem-2.4.54-5.fc37.noarch
httpd-tools-2.4.54-5.fc37.x86_64
julietaula-montserrat-fonts-1:7.222-3.fc37.noarch
mailcap-2.1.53-4.fc37.noarch
mod_http2-2.0.7-1.fc38.x86_64
mod_lua-2.4.54-5.fc37.x86_64

How reproducible:

Steps to Reproduce:
1. Deploy Fedora rawhide instance on GCP
2. Install httpd with "sudo dnf install httpd"
3. Start httpd service with "sudo systemctl enable --now httpd.service"

Actual results:
httpd service start fail

Expected results:
start httpd service without error

Additional info:

Comment 1 Joe Orton 2022-10-03 07:26:32 UTC
mod_http2-2.0.7-1.fc38.x86_64
httpd-2.4.54-5.fc37.x86_64

You are running Fedora 38 builds on Fedora 37, which won't (necessarily) work.

Comment 2 Joe Orton 2022-10-03 08:03:10 UTC
Hm, you say it's Rawhide, what is the nghttp2 version? The symbol appears to be present in

https://koji.fedoraproject.org/koji/buildinfo?buildID=2066048

$ nm -D usr/lib64/libnghttp2.so.14 | grep ws
00000000000157d0 T nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation

but we probably should add a Conflicts:

Comment 3 Xiaofeng Wang 2022-10-04 05:36:37 UTC
My Fedora rawhide is using libnghttp2-1.48.0-2.fc37.x86_64.
I just download Fedora rawhide GCP image and upload, then run it. I did not change any repo settings. All installed packages come from default repo. Thanks!

Comment 4 Joe Orton 2022-10-04 07:53:20 UTC
I'm not sure how Rawhide images get to GCP but that sounds like a bad compose then, the nghttp2-1.50.0 build I referenced above is tagged into f38.

Comment 5 Xiaofeng Wang 2022-10-04 13:08:07 UTC
I always download Fedora image for GCP from https://download-cc-rdu01.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images. This should be official image, right?
I downloaded latest Fedora rawhide GCP image Fedora-Cloud-Base-GCP-Rawhide-20221003.n.0.x86_64.tar.gz to GCP. Can't find this issue again. I think we can close this bug. Thanks for your reply.

Comment 6 Joe Orton 2022-12-20 14:33:48 UTC
Looks like this symbol was added in nghttp2 1.50.0, updated spec file accordingly.

Comment 8 Joe Orton 2022-12-20 14:43:53 UTC
Package: mod_http2-2.0.11-1.fc38
Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=2102387

Comment 9 Ben Cotton 2023-02-07 15:13:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 10 Joe Orton 2023-11-28 10:05:54 UTC
Fixed in current builds.


Note You need to log in before you can comment on or make changes to this bug.