question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instances not being stopped correctly

See original GitHub issue

I’m seeing some pretty odd behaviour with my EC2 scheduler. My first thought is that it’s because I’m trying to schedule OpsWorks EC2 instances, as the RDS schedule is working fine.

Below are logs showing the desired state is stopped, and that the Scheduler is not stopping the instances.

2018-02-18 - 06:00:23.248 - DEBUG : No running periods at this time found in schedule "instance-schedule-opsworks" for this time, desired state is stopped 2018-02-18 - 06:00:23.248 - DEBUG : Desired state for instance from schedule "instance-schedule-opsworks" is stopped, last desired state was stopped, actual state is running 2018-02-18 - 06:00:23.248 - INFO : Scheduler result {'752691938387': {'started': {}, 'resized': {}, 'stopped': {}}}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
jeffmacd99commented, Apr 4, 2018

Hello, I believe I found the issue with instance startup. My EBS volumes are encrypted, I added “kms:CreateGrant” to the instanceSchduler role and now the instances are starting as per the schedule

0reactions
shseniorcommented, Jun 13, 2019

Fixed in v1.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instances not being stopped correctly · Issue #9 - GitHub
I'm seeing some pretty odd behaviour with my EC2 scheduler. My first thought is that it's because I'm trying to schedule OpsWorks EC2 ......
Read more >
Troubleshoot stopping your instance - AWS Documentation
If you have stopped your Amazon EBS-backed instance and it appears stuck in the stopping state, there may be an issue with the...
Read more >
Amazon - EC2 stop instances not working properly - Server Fault
Your EC2 instances are most likely being created by an Auto Scaling group. If you used Elastic Beanstalk, then this is highly likely....
Read more >
AWS - EC2 stop instances not working properly - Stack Overflow
I have decide keep just one project so I terminate eb-flask-demo-dev and stop swipe-dev instance. After few minutes instace state was stoped and ......
Read more >
What is the difference between terminating and stopping an ...
When you stop an EC2 instance, the instance will be shutdown and the virtual machine that was provisioned for you will be permanently...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found