システムの起動時に httpd.service が起動できず Cannot assign requested address: AH00072: make_sock: could not bind to address エラーが発生する
Issue
以下の 2 つの条件が満たされると、システムの起動時に httpd.service が起動できません。
- 特定の IP アドレスで
httpdがリッスンするように設定されている NetworkManager.serviceが無効になっている
システムの起動時に httpd サービスを起動しようとする際に、以下のメッセージが発生します。
httpd: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 12.34.56.78:80
httpd: no listening sockets available, shutting down
httpd: AH00015: Unable to open logs
systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
kill: kill: cannot find process ""
systemd: httpd.service: control process exited, code=exited status=1
systemd: Failed to start The Apache HTTP Server.
systemd: Unit httpd.service entered failed state.
systemd: httpd.service failed.
- システムの起動時、ネットワークが完全に起動する前に systemd が
httpd.serviceを実行するため、httpd が起動できません。この問題は Fedora 17 で報告されました (Bugzilla 921566 - httpd does not wait for network start and fails)。この問題は、RHEL 7 では修正されるのはいつですか? - RHEL7 で、https://bugzilla.redhat.com/show_bug.cgi?id=1352139 の問題に対して利用できる修正はありますか?
Environment
- Red Hat Enterprise Linux 7.3
- httpd-2.4.6-45.el7.x86_64
- NetworkManager-1.4.0-12.el7.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
