Day 14: Linux Process Troubleshooting

Question:

The production support team of xFusionCorp Industries has deployed some of the latest monitoring tools to keep an eye on every service, application, etc. running on the systems. One of the monitoring systems reported about Apache service unavailability on one of the app servers in Stratos DC.

Identify the faulty app host and fix the issue. Make sure Apache service is up and running on all app hosts. They might not have hosted any code yet on these servers, so you don’t need to worry if Apache isn’t serving any pages. Just make sure the service is up and running. Also, make sure Apache is running on port 5001 on all app servers.


Solution:

# SSH to App server 1
ssh tony@stapp01

# Check status of the Apache server
sudo systemctl status httpd
× httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Thu 2026-12-03 07:55:32 UTC; 3min 12s ago
       Docs: man:httpd.service(8)
    Process: 14354 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
   Main PID: 14354 (code=exited, status=1/FAILURE)
     Status: "Reading configuration..."
        CPU: 39ms

Dec 03 07:55:32 stapp01 systemd[1]: Starting The Apache HTTP Server...
Dec 03 07:55:32 stapp01 httpd[14354]: AH00558: httpd: Could not reliably determine the server's fully qualifi>
Dec 03 07:55:32 stapp01 httpd[14354]: (98)Address already in use: AH00072: make_sock: could not bind to addre>
Dec 03 07:55:32 stapp01 httpd[14354]: (98)Address already in use: AH00072: make_sock: could not bind to addre>
Dec 03 07:55:32 stapp01 httpd[14354]: no listening sockets available, shutting down
Dec 03 07:55:32 stapp01 httpd[14354]: AH00015: Unable to open logs
Dec 03 07:55:32 stapp01 systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 07:55:32 stapp01 systemd[1]: httpd.service: Failed with result 'exit-code'.
Dec 03 07:55:32 stapp01 systemd[1]: Failed to start The Apache HTTP Server.

# Check listening ports and their PIDs
sudo ss -tupln
Netid  State   Recv-Q  Send-Q   Local Address:Port   Peer Address:Port  Process                               
tcp    LISTEN  0       10           127.0.0.1:5001        0.0.0.0:*      users:(("sendmail",pid=13796,fd=4))  
tcp    LISTEN  0       128            0.0.0.0:8080        0.0.0.0:*      users:(("ttyd",pid=60,fd=11))        
tcp    LISTEN  0       128            0.0.0.0:22          0.0.0.0:*      users:(("sshd",pid=1442,fd=3))       
tcp    LISTEN  0       128               [::]:22             [::]:*      users:(("sshd",pid=1442,fd=4)) 

# Kill the send mail process
sudo kill 13796

# Restart the httpd service (apache service)
sudo systemctl restart httpd

# Check status of the Apache server
sudo systemctl status httpd
● httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
     Active: active (running) since Thu 2026-12-03 08:03:58 UTC; 58s ago
       Docs: man:httpd.service(8)
   Main PID: 40175 (httpd)
     Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec"
      Tasks: 177 (limit: 404712)
     Memory: 15.0M
        CPU: 89ms
     CGroup: /system.slice/httpd.service
             ├─40175 /usr/sbin/httpd -DFOREGROUND
             ├─40182 /usr/sbin/httpd -DFOREGROUND
             ├─40183 /usr/sbin/httpd -DFOREGROUND
             ├─40184 /usr/sbin/httpd -DFOREGROUND
             └─40185 /usr/sbin/httpd -DFOREGROUND

Dec 03 08:03:58 stapp01 systemd[1]: Starting The Apache HTTP Server...
Dec 03 08:03:58 stapp01 httpd[40175]: AH00558: httpd: Could not reliably determine the server's fully qualifi>
Dec 03 08:03:58 stapp01 httpd[40175]: Server configured, listening on: port 5001
Dec 03 08:03:58 stapp01 systemd[1]: Started The Apache HTTP Server.

# Get App server 1 IP
hostname -I
10.244.244.147 

# Exit to jump host
exit

# Test with curl
curl -s 10.244.244.147
... response

By shafdo

Leave a Reply

Your email address will not be published. Required fields are marked *