On 21/02/2020 10.19, Scott van Looy via users wrote:
This is probably something super simple, but…

My httpd is failing on boot.

The server has 3x adaptors, all are static IPs and don’t require DHCP or anything. Addresses, etc are specified in the config files. All are present once boot has ended. All are managed by NetworkManager, yet I get this error in the log

Feb 21 07:40:15 <server> systemd[1]: Starting The Apache HTTP Server...
Feb 21 07:40:16 <server> httpd[1012]: [Fri Feb 21 07:40:16.208953 2020] [so:warn] [pid 1012:tid 140114180026688] AH01574: module ssl_module is already loaded, skipping Feb 21 07:40:16 <server> httpd[1012]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address <my ip>:80 Feb 21 07:40:16 <server> httpd[1012]: no listening sockets available, shutting down
Feb 21 07:40:16 <server> httpd[1012]: AH00015: Unable to open logs
Feb 21 07:40:16 <server> systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE Feb 21 07:40:16 <server> systemd[1]: httpd.service: Failed with result 'exit-code'.
Feb 21 07:40:16 <server> systemd[1]: Failed to start The Apache HTTP Server.

It’s like httpd is starting too early.

Looking at the service info I can see it’s supposed to start after network.target. Looking at its critical chain using systemd-analyze it seems to be doing this correctly. I’m kinda at a loss. Does anyone have any suggestions as to what I can try?

Scott

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Hi Scott
try to start it after network-online.

In /lib/systemd/system/httpd.service or in /etc/systemd/system/httpd.service:

....
After=network-online.target remote-fs.target nss-lookup.target httpd-init.service

....

It has helped here...

suomi
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to