ERR_CONNECTION_REFUSED when building employee directory app

3

I'm a beginner going through the tutorial to create the "Employee Directory App" from the AWS Technical Essentials program. I've gone through each step in detail, successfully launching my instance on EC2. When copying the public IP in a new browser tab as shown in the video, I get an ERR_CONNECTION_REFUSED error.

I've double checked everything (Security Groups, Permissions, etc...) and everything matches what was done in the video. Any idea what may be causing the error?

Thanks!

질문됨 일 년 전611회 조회
4개 답변
0

you might want to check the user data script that should install the application on the ec2 instance, and whether it is compatible with the AMI you are using, you can connect to the ec2 using instance connect and then try to run the script manually with sudo permissions and see if it gives any errors

AWS
답변함 일 년 전
0

HI there, running through the same training. It worked for me with http:// but not for https://. So try if http works.

any suggestions?

Thanks

답변함 7달 전
0

I have the same problem. http works fine but with https I've got the following message from my browser: This site can’t be reached18.101.32.181 refused to connect.

Where 18.101.32.181 is the public IP address asigned. Apparently my security groups are correctly configured: Enter image description here

I'd appreciate if someone can help with this.

Javier.

jep
답변함 6달 전
-1

Please refer to the following document to confirm that the problem is not on the browser side.
https://support.google.com/chromebook/answer/1085581?hl=en

Also, see if you can connect to the EC2 IP address from your computer with the following command.
If you are able to access the site with the following commands without any problems, the problem may not be on the EC2 side, but on your computer.

curl http://EC2 IPaddress
profile picture
전문가
답변함 일 년 전
  • Thanks for the suggestion. Unfortunately, still no luck. I checked what was recommended by Google support and that didn't work. I also ran the curl command and got this error: "curl: (7) Failed to connect to [EC2 IPaddress] port 80 after 94 ms: Couldn't connect to server"

  • I thought that the web server was not running on EC2. How is the web server installed? Also, can you share the operating system you use for EC2?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠