LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-19-2021, 03:05 AM   #1
sirius_lee
LQ Newbie
 
Registered: Nov 2021
Posts: 10

Rep: Reputation: Disabled
Apache on Centos 7 shows AH01114: HTTP: failed to make connection to backend 127.0.0.1


This is a server with Centos 7 and Apache and Tomcat installed 4 years ago and it stopped working few days ago. After looking into error_log file I've noticed that the certificate has expired:

Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved. And I followed this tutorial to update it: https://programmerah.com/apache-cann...expired-36077/

It all seemed well, but now it shows an 503 error on the main page: example.com and the other url: example.com/rest/login.jsp works just fine.

The error is:

https://ibb.co/cDsDQff

The conf file is:
https://ibb.co/QpVX8r0https://ibb.co/FgzY8QW


And the netstat -tulpn gives back this: Netstat, so the server is not listening anithing on the port 5000 and I have half of the website working and the other half - 503 service unvailable.
https://ibb.co/H7VVKPs

I've tried setting SElinux to permissive mode and /usr/sbin/setsebool httpd_can_network_connect 1 as well as putting retry=0 into ProxyPass but nothing helped...

Any ideas would be more than welcome.
Thank you guys!
 
Old 11-19-2021, 07:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Quote:
And the netstat -tulpn gives back this: Netstat, so the server is not listening anithing on the port 5000 and I have half of the website working and the other half - 503 service unvailable.
Looks like whatever app should listen on port 5000 is not running, so apache cannot connect to the backend server on that port

Last edited by bathory; 11-19-2021 at 08:28 AM.
 
Old 11-24-2021, 12:46 AM   #3
sirius_lee
LQ Newbie
 
Registered: Nov 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
In the end it was wildfly service that needed to be restarted. Never heard of it before, so I couldn't guess it.
Thank you for your reply and insight.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.4 (CentOS 7) apache issue ah01114: http: failed to make connection to backend: localhost gak bs rev Winanjaya Linux - Server 7 06-14-2021 01:30 AM
Newbie with Apache Server question "ervice - The Apache HTTP Server" vs. "Service - The Apache HTTP Server" HYEARWOOD Linux - Newbie 5 10-17-2017 02:38 AM
connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024) adamos22 Linux - Newbie 2 07-31-2013 12:40 PM
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration