Skip to content

Fix intermittent Windows CI failure caused by unpatched Listen port 80 - #12

Merged
marekkopecky merged 2 commits into
modcluster:mainfrom
honza-kasik:fix-listen-port80-windows
Jul 9, 2026
Merged

marekkopecky merged 2 commits into
modcluster:mainfrom
honza-kasik:fix-listen-port80-windows

Conversation

@honza-kasik

Copy link
Copy Markdown
Contributor

The patchHttpdConf() regex ^Listen 80$ only matches the bare Listen 80 format used in RHEL JBCS distributions. The Windows JBCS httpd.conf uses Listen 127.0.0.1:80 (IP-prefixed), which the regex silently skips — leaving port 80 active.

When port 80 happens to be free on the CI node, httpd starts despite the failed patch and tests pass. When something else holds port 80 (HTTP.sys, IIS, or another service), httpd crashes with OS error 10013 (WSAEACCES) and all 87 tests fail with "Failed to start native httpd balancer".

Broaden the regex to match all Listen directive formats for port 80: Listen 80, Listen 127.0.0.1:80, Listen [::]:80, etc. — while still excluding Listen 8080 and similar.

Also, diagnostic output was fixed to use proper path.

The patchHttpdConf() regex `^Listen 80$` only matches the bare
`Listen 80` format used in RHEL JBCS distributions. The Windows JBCS
httpd.conf uses `Listen 127.0.0.1:80` (IP-prefixed), which the regex
silently skips — leaving port 80 active.

When port 80 happens to be free on the CI node, httpd starts despite
the failed patch and tests pass. When something else holds port 80
(HTTP.sys, IIS, or another service), httpd crashes with OS error 10013
(WSAEACCES) and all 87 tests fail with "Failed to start native httpd
balancer".

Broaden the regex to match all Listen directive formats for port 80:
Listen 80, Listen 127.0.0.1:80, Listen [::]:80, etc. — while still
excluding Listen 8080 and similar.
logHttpdDiagnostics() resolved the modules directory relative to
httpdHome (jbcs-httpd24-2.4/), but modules live under the ServerRoot
(jbcs-httpd24-2.4/etc/httpd/modules/ — a symlink to lib64/httpd/modules/).
This caused all four mod_cluster modules to be reported as MISSING even
when they were present, making the diagnostic output misleading.

Use serverRoot() instead so the path follows the same symlink that
httpd itself uses.
@honza-kasik
honza-kasik requested a review from marekkopecky July 9, 2026 05:56
@marekkopecky

Copy link
Copy Markdown
Contributor

PR LGTM, thank you!

@marekkopecky
marekkopecky merged commit 5f4a186 into modcluster:main Jul 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants