Ssh_exchange_identification Read Connection Reset By Peer Aws



Ssh_exchange_identification

502 Bad Gateway
Posted on: Jan 4, 2014 7:12 PM
Dear all,
I need your helps now.
My website is hosting on EC2 Amazon and yesterday my website got and error '502 Bad Gateway'.
When I logged into EC2 amazon I checked my server then I saw all status were failure, 'Status Check Failed (Instance)'
What is the problem and how to resolve it?
Best Regards,
Replies: 7 | Pages: 1 - Last Post: Feb 4, 2020 6:21 PM by: hmanjunath83
Re: 502 Bad Gateway
Posted on: Jan 4, 2014 9:21 PM
Hello,
Generally 'Instance Status Check' verifies that your instance's operating system is accepting traffic.
When it fails it means that the operating system inside the instance is not responding to traffic, for example this can happen when a Windows instance hangs or when a Linux instance kernel panics or network is disabled inside the instance.
I had a look at your account and there is one instance in there, looking at the instance it seems that you have rebooted the instance and I could make successful connection to port 22 and 80 on the instance as those ports are open to world.
I also had a look at the underlying host of the instance and could not see any issues on the underlying host. I would recommend you to check system and kernel logs before the reboot to track down what has happened.
'502 Bad Gateway' could also be a sign of the webserver not responding in timely manner, which is in line with the fact that CloudWatch has recorded constant 100% CPU usage for your instance.
Given the fact that your instance is a t.micro instance, if the high load is legitimate you may want to consider migrating to a larger instance type like m1.small for example.
Kind regards,
Mostafa S.
Re: 502 Bad Gateway
Posted on: Jan 5, 2014 5:23 AM
Thank for your advice.
Let me try to migrate it to other larger instance.
If it still get a problem i will reach you again.
Regards,
Re: 502 Bad Gateway
Posted on: Jan 5, 2014 7:32 AM
Hi Mostafa S,
I would like to inform you one more thing that sometime my website appear an error message '504 Gateway Time-out'.
What is this message about?
Regards,
Han
Edited by: hychanhan on Jan 5, 2014 7:32 AM
Re: 502 Bad Gateway
Posted on: Jan 8, 2014 12:25 PM
Correct
Hello,
Thank you for the update. I would like to investigate your ec2 server, however, I might need more information from you. Can you please provide me with your ec2 instance ID?
Regards,
Marcin
Re: 502 Bad Gateway
Posted on: Jan 14, 2014 11:55 PM
Hi Marcin,
I have solved the problem already.
The problem caused from my server was running out of storage.
And now I just created another snapshot for a new volume 25GB more.
It is working fine now.
Thank you so much.

Best Regards,
ChanHan

Re: 502 Bad Gateway
Posted on: Aug 29, 2017 4:50 PM
EC2 instance stuck in 'stopping' state, pls resolve it
Hi EC2 support,
My EC2 instance, stops all the time, so I have to manually reboot it through the AWS EC2 Management Console. That's a huge problem, because, as a result my webpage stops working, pretty much plenty times per day too, along with my EC2 instance, because if I try to ssh, I'll always get 'ssh_exchange_identification: read: Connection reset by peer', while my instance is in that state . Please, get it resolved.
My instance id is: i-06b8743cb2461b1dd
Thanks,
Mil
Re: 502 Bad Gateway
Posted on: Feb 4, 2020 6:21 PM
Hi,
My site giving 502 bad gateway.pls help.instance id is. i-04dc8c91a36f3b1a7
Now i stated getting database error.
We didnot change any credentials.
Please check if database is up and running.
Reply to this Thread
Answered question
Unanswered question with answer points still available
Unanswered question
Ace: 2000+ pts
Expert: 750-1999 pts
Guide: 300-749 pts
Enthusiast: 50-299 pts
Newbie: 5-49 pts
Amazonian

Ssh_exchange_identification Read Connection Reset By Peer AwsConnectionSsh_exchange_identification Read Connection Reset By Peer Aws

Connection Reset By Peer

'sshexchangeidentification: read: Connection reset by peer' ftp connects sometimes but then few moments later it again says 'Error: Connection reset by peer Error: Could not connect to server' need some help here that if issue is due to my storage or usage limit or for some other reason? 'Connection reset by peer' means the TCP stream was abnormally closed from the other end. I think the most likely explanations are that the remote server process handling the connection has crashed, or else some network device (like a stateful firewall or load balancer).