title: AWS Beanstalk: Cannot retrieve logs in degraded state
body: <p>After some time of serving my app has died and gone to "degraded" state. I have no idea what happened because no one was using it. Maybe it was hibernated and did not wake up?</p>
  
  <p>Now I am trying to check the logs but I am not able to do it. Requesting logs takes ages and from time to time I get timeouts. When I click Request logs (100 lines or full logs ) I get this message</p>
  
  <pre><code>Elastic Beanstalk is updating your environment.
  To cancel this operation select Abort Current Operation from the Actions dropdown. 
  </code></pre>
  
  <p>this takes some time and finally nothing happens. Moreover I cannot abort this operation as is written because:</p>
  
  <pre><code>Error
  
  Could not abort the current environment operation for MY_APP_NAME: Environment named MY_ENV_NAME is in an invalid state for this operation. Must be pending deployment.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/s06Zl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s06Zl.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/a0jqM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a0jqM.png" alt="enter image description here"></a></p>