Bug 1798841
| Summary: | [httpd] (99)Cannot assign requested address: AH00072: make_sock: could not bind to address | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Sachin <sacpatil> |
| Component: | httpd | Assignee: | Luboš Uhliarik <luhliari> |
| Status: | CLOSED NOTABUG | QA Contact: | RHEL Stacks Subsystem QE <rhel-stacks-subsystem-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 | CC: | fadamo, huali, jorton, jsynacek, luhliari, rainer.traut, systemd-maint-list |
| Target Milestone: | rc | ||
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-02-25 16:50:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sachin
2020-02-06 06:11:50 UTC
(In reply to Sachin from comment #0) > This bug was initially created as a copy of Bug #1438749 > > I am copying this bug because: > > If the NetworkManager.service is running and the service(say httpd) want to > listen on explicitly configured IP address is unable to start. As per > BZ#1438749, the issue was fixed in systemd-219-33.el7 but I face this issue > on RHEL8(systemd-239-13.el8) In that bugzilla, NetworkManager was NOT present on the system and the bug was something else. > Feb 06 00:49:41 rhel8-box systemd[1]: Starting The Apache HTTP Server... > Feb 06 00:49:41 rhel8-box httpd[801]: AH00558: httpd: Could not reliably > determine the server's fully qualified domain name, using ::1. Set the > 'ServerName' directive globally to suppress t> > Feb 06 00:49:41 rhel8-box httpd[801]: (99)Cannot assign requested address: > AH00072: make_sock: could not bind to address 10.0.2.15:80 This looks like a misconfiguration to me. Anyway, not a systemd bug. Hi Jan, I'm aware that the NetworkManager was not present in BZ#1438749 but as in RHEL8 we don't have network.service to take over if NetworkManger.service is disabled, I decided to link the Bugzilla anyway. > This looks like a misconfiguration to me. Anyway, not a systemd bug. That is a relief. Any idea what exactly is misconfigured? Please see section "Starting the service at boot time" in httpd.service(8) man page - "man httpd.service", this case is covered there.
If httpd is configured to depend on any specific IP address (for example, with a
"Listen" directive) which may only become available during start-up, or if httpd
depends on other services (such as a database daemon), the service must be
configured to ensure correct start-up ordering.
For example, to ensure httpd is only running after all configured network interfaces
are configured, create a drop-in file (as described above) with the following
section:
[Unit]
After=network-online.target
Wants=network-online.target
See https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ for more
information on start-up ordering with systemd.
|