Had setup LAMP server on Ubuntu 16.04, my application is supposed to receive request from a server in Kenya. Whenever the server in Kenya sends request at my sever, then I don’t receive any request and on their side they get error: 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Can anyone help what is the reason?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
@hansen
I had finally got them to run the curl command.
But when I ran these commands on some other server then I got the response showing content of the homepage of the website.
What might be the reason for this?
Hello @hansen
well i have installed the certs, but the company in Kenya required to verify the “http” requests first then it will move to “https”. I have also created a support ticket support ticket for the same, but it seems that support reply comes on a particular time only.
I can say that I was able to receive some of the requests on my end, but every request. As you already have provide much of the information, can you suggest anything else which can help to end this once and for all.
Thank You
hi @hansen and @all
got something for you, this is what is the reply for “ping 104.131.77.15” on server in Kenya.
<1006 tbroker [sag] :/home/sag/log/sa-1/run>ping 104.131.77.15 PING 104.131.77.15 (104.131.77.15) 56(84) bytes of data. 64 bytes from 104.131.77.15: icmp_seq=1 ttl=255 time=0.147 ms 64 bytes from 104.131.77.15: icmp_seq=2 ttl=255 time=0.166 ms 64 bytes from 104.131.77.15: icmp_seq=3 ttl=255 time=0.135 ms 64 bytes from 104.131.77.15: icmp_seq=4 ttl=255 time=0.143 ms 64 bytes from 104.131.77.15: icmp_seq=5 ttl=255 time=0.167 ms 64 bytes from 104.131.77.15: icmp_seq=6 ttl=255 time=0.159 ms 64 bytes from 104.131.77.15: icmp_seq=7 ttl=255 time=0.125 ms
— 104.131.77.15 ping statistics — 7 packets transmitted, 7 received, 0% packet loss, time 5999ms rtt min/avg/max/mdev = 0.125/0.148/0.167/0.021 ms
As per additional info: I am using Ubuntu 16.04 32-bit.
And is there any role of firewall on my OS which might be letting such issue?
Hi @hansen
I appreciate that you took time to reply. I tried what you have suggested, but still issue not resolved. I forgot to provide the error which is generated on Kenya server. Have a look, might help in getting things clear.
Here is error and the response Kenya server is receiving:
2017-07-24 12:39:42|ERROR|response|SOAP|validation|NewTest|SAG:10.5.38.40|504021500931707241239429507002||60027|A service error occurred. Maybe http message illegal or analyse failed!|888777|888777000|OA:,DA:254713167623|2017-07-24 12:39:42|NodeInfo=NodeType:20,NodeID:1;TransType=Pay Bill;TransID=LGO319BAUR;BusinessShortCode=902026;internal_errorcode=60027;internal_errordesc=A service error occurred. Maybe http message illegal or analyse failed!;apiid=0| Content=0001050b:SA receive validation response message[sessionID:871] from NewTest[104.131.77.15] failed! Cost time : 221 ms.
HTTP/1.1 404 Not Found Content-Type: text/html Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Date: Mon, 24 Jul 2017 09:38:49 GMT Connection: close Content-Length: 1245
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=“http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”/> <title>404 - File or directory not found.</title> <style type=“text/css”> </style> </head> <body> <div id=“header”><h1>Server Error</h1></div> <div id=“content”> <div class=“content-container”><fieldset> <h2>404 - File or directory not found.</h2> <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> </fieldset></div> </div> </body>
This comment has been deleted
Hi @dragonSam
Most likely address they are using in Kenya is wrong. Check the full address again and paste it again in the Kenya server.
If you’re using a domain, then make sure there is no hosts changes. Run
ping yourdomain.com
on your computer and on the Kenya server. IP should be the same.If there’s a login system, then that could be causing the issue. Try visiting the address with a browser in incognito mode.