By using AWS re:Post, you agree to the Terms of Use
/Elastic Beanstalk with Flask: Command failing on EC2 Instance/

Elastic Beanstalk with Flask: Command failing on EC2 Instance

0

Hi, what is the best way to see an error log or what exactly is failing on the ec2 instance automatically created with my EB environment? I have successfully found the ec2 instance in my console and was wondering if I could see what exactly was wrong with it.

I have the following error: Unsuccessful command execution on instance id(s) 'i-xxxxxxxxxxx'. Aborting the operation.

so I assume that the best course of action is to try and see what's happening on my instance Does anyone have any tips or potential reasons the flask env would do this?

asked 17 days ago24 views
2 Answers
0

Hello there! I have noticed that you would like to know how to review logs from your Elastic Beanstalk instance. You may refer to the Elastic Beanstalk logs to help you troubleshoot your issue further and find the cause of the issue at large.

You may follow the following steps to retrieve the full logs[1]:

    1. Open the Elastic Beanstalk console, and in the Regions list, select your AWS Region.
    1. In the navigation pane, choose Environments, and then choose the name of your environment from the list.
    1. In the navigation pane, choose Logs.
    1. Choose Request Logs, and then choose Full Logs.

If you continue to face challenges with deploying your application and troubleshooting on Elastic Beanstalk you may reach out to AWS PS to help further troubleshoot your issue [2].

References:

[1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html

[2] https://aws.amazon.com/premiumsupport/knowledge-center/

answered 17 days ago
  • It says there's a bunch of errors with "File "/usr/lib/python3.7/site-packages/cfnbootstrap/util.py"" and "2022-06-17 05:47:50,644 [WARNING] Timeout of 60 seconds breached 2022-06-17 05:47:50,644 [ERROR] Client-side timeout"

0

Hello everybody, additional way, you can connect to instance ec2 with SSH client, "1. Open an SSH client. 2. Locate your private key file. The key used to launch this instance is .... 3. Run this command, if necessary, to ensure your key is not publicly viewable." I use mobaxterm for connection, when you connect, type: sudo tail -f /var/log/nginx/error.log

answered 15 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions