3 Answers
- Newest
- Most votes
- Most comments
0
Hi,
In order to troubleshoot effectively I would suggest to login into your EC2 instance and try to check if your application is working by the running this command:
wget http://localhost
If your application is actually running you should get back an output line containing
HTTP request sent, awaiting response... 200 OK
If your application is running I would recommend to double check:
- Security Group
- Network ACL of your Subnets
answered a year ago
0
I am unable to get this exercise to work. I have ssh'd to the ec2 instance and notice that when I enter the following command:
$ wget https://aws-tc-largeobjects.s3-eu-north-1.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip
I get the response:
-bash: wget https://aws-tc-largeobjects.s3-eu-north-1.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip: No such file or directory
Is this why the example doesn't work?
answered 9 months ago
Relevant content
- asked a month ago
- asked a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
I am not sure how to run a command for an EC2 instance. Can you tell me how to do this?
To run the command on Ec2 instance you first need to connect to the instance by following one of the methods listed here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html Once you logged to your instance you can actually run the command by simply copy and paste this code "wget http://localhost"
Okay, I connected to my EC2 instance via ssh, and I ran the command you gave me through AWS CloudShell, and I got the following error
What should be my next step?
Hi, here you can see that you application is not actually running, as you it is not reachable from you localhost. This exclude that the issue that you are facing is actually related to security group or other Ec2 network configurations. My suggestion now to keep troubleshooting is the following:
Did this help? can you please consider to accept my answer?