title: Error in AWS Elasticbeanstalk deployment flask app
body: <p>I am deploying a Flask app using EB CLI having requirements.txt file.</p>
  <pre><code>eb init
  eb open flask-env
  </code></pre>
  <p>Application is properly uploaded on the server, but it's health status says Severe.<br> I am getting the following errors.<br></p>
  <ul>
  <li>In the dashboard</li>
  </ul>
  <pre><code>Command failed on all instances.
  ELB health is failing or not available for all instances
  
  Application deployment failed at 2020-07-01T03:49:21Z with exit status 1 and error: Engine execution has encountered an error.
  Instance ELB health state has been &quot;OutOfService&quot; for 14 minutes: Instance has failed at least the UnhealthyThreshold number of health checks consecutively.
  
  </code></pre>
  <ul>
  <li>In the logs</li>
  </ul>
  <pre><code>[ERROR] Creating a Pipfile for this projectâ€¦
  Requirements file provided! Importing into Pipfileâ€¦
  'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
  
  [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c python3 -m pipenv install -r requirements.txt --skip-lock failed with error exit status 1. Stderr:Creating a Pipfile for this projectâ€¦
  Requirements file provided! Importing into Pipfileâ€¦
  'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
  </code></pre>
  <p>I also deployed multiple applications but they are also giving the same error</p>