last day (14 days later) » 

3:41 AM
0
A: Web request unable to enter Server

Valmiky Arquissandas Is the IP address of the machine the same? If you're using a domain name, are you sure it is pointing to the correct IP address? Are you absolutely sure that tomcat is running? Can you make sure tomcat isn't just listening locally (i.e. bound to 127.0.0.1 instead of 0.0.0.0)? That is, can you ru...

 
The proxy server is using a domain name but its pointing to the right location. The tomcat is running fine. I'll check the third point you mentioned. How can I netcat or curl a request to the application server.
 
Try these commands; install them if you don't have them: printf "GET / HTTP/1.0\r\n\r\n" | nc www.tecnico.pt 80 and curl -v www.tecnico.pt. Change the site to your application server's DNS name.
 
BTW I'm unable to telnet from Apache server to the Tomcat server on the Tomcat port 8080, what does this error mean. How do I solve the same.
 
That is "normal" - it's the same problem you described above. Can you make the same telnet from some other computer? What about from the computer running tomcat itself?
 
I checked the telnet from another server, it says it connected to the the server and after a few seconds it says Connection closed by foreign host. Is this normal response. Is it suppose to close the connection on its own.
 
3:41 AM
If you didn't say anything in the telnet connection (such as the GET / HTTP/1.0), then it is normal. If you said anything, it is not. However, you were able to connect, which means that the problem is in the apache server. Is there any firewall that may be blocking it? Or a routing problem? (see the output of ip r)
 
I typed GET/ HTTP/1.0 I got no response and I got the message Connection closed by foreign host. What can this mean.
Hi
Hello
 
3:56 AM
Hi!
Did you type GET/ or GET /?
you need that space
 
I typed GET / HTTP/1.0
I included the space
 
I need to go to sleep; but if I got it correctly, you were able to telnet from a different server, right?
can you telnet to localhost from the tomcat's server?
 
On the local server telnet is not setup which needs root access which I don't have
 
I'm assuming you also don't have neither nc, curl or wget?
 
Nope
 
4:00 AM
hm... what about netcat or ss?
oops, sorry
I meant netstat
 
I have netstat
 
then try netstat -ntpl
or some other combination of flags that shows the PIDs and IP/ports they're listening to
 
I tried this one "nmap -v -A -p 8079-8081 -PN hostname.domainname.com" and it appears 8080 is open
 
ok, this means that tomcat seems to be listening
 
yes
 
4:05 AM
I can only think of a firewall in the path, or a bad route
I would have to understand your network at a deeper level to debug this with you
 
Any way to confirm either if these?
 
ip r in the apache server gives you its routes
but whether they are correct or not, it's up to you
 
Anyway to check local firwll settings?
 
it depends on your firewall
sudo iptables -nvL
that would be for iptables
but again, this is highly dependent on your network config
I guess the AIX server isn't publicly accessible?
 
yes
 
4:13 AM
then I don't know what else to do
you can also try to run
ifconfig
and route in the AIX machine to eventually find network issues
but it really is strange that the machine is able to reply to some servers but not to the apache's server
 
ifconfig is available
 
they are on the same network, right?
 
yes
 
no interesting output from iptables or route?
 
cannot execute iptables since I don't have sudo access
 
4:23 AM
even in the apache's server?
if you're not privileged enough to access these tools, I'm not sure if you should be debugging this issue at all
what I could tell from this conversation is that tomcat is running and listening in all interfaces, other servers can talk to it, but the apache's server can't
this usually implies almost exclusively network problems or a firewall in the middle
that's as far as I can go
 
I had only error message from the server on which apache server is set up, But I don't have access to the server itself, thaks for the help
 
I must go now, it's nearly 5:30 am in Portugal
I'll check with you again tomorrow
see ya!
 
thanks
 

last day (14 days later) »