# Containers stuck in "Not Running"

**URL:** <https://discuss.circleci.com/t/containers-stuck-in-not-running/17151>\
**Category:** Bug Reports\
**Created:** [October 5, 2017, 10:11am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151 "2017-10-05T10:11:27Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zinob](https://avatars.discourse-cdn.com/v4/letter/z/838e76/32.png) [@zinob](https://discuss.circleci.com/u/zinob)\
**Post date:** [October 5, 2017, 10:11am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/1 "2017-10-05T10:11:27Z")

</div>

Despite not having any running builds no new builds are starting since about half an hour or so.  
 ![image](https://global.discourse-cdn.com/circleci/original/3X/3/8/38d4ff201e24059be80c9dfb95392f9d90d29d86.png)

---

<div class="post-metadata">

**Author:** ![mantono](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mantono/32/9158_2.png) [@mantono](https://discuss.circleci.com/u/mantono)\
**Post date:** [October 5, 2017, 10:54am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/2 "2017-10-05T10:54:36Z")

</div>

We still have this problem despite [Circle CI status page](https://status.circleci.com/) reporting no problems. Is the status page not actually displaying current conditions?

---

<div class="post-metadata">

**Author:** ![choliver](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/choliver/32/8783_2.png) [@choliver](https://discuss.circleci.com/u/choliver)\
**Post date:** [October 5, 2017, 10:54am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/3 "2017-10-05T10:54:45Z")

</div>

I’m seeing similar issues, though anecdotally only with workflow builds right now.

FWIW, I’ve managed to unstick my workflow builds by triggering an unrelated non-workflow build, and then cancelling it.

---

<div class="post-metadata">

**Author:** ![DominikGM](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/dominikgm/32/7975_2.png) [@DominikGM](https://discuss.circleci.com/u/DominikGM)\
**Post date:** [October 5, 2017, 11:28am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/4 "2017-10-05T11:28:46Z")

</div>

> [@choliver](#):
>
> FWIW, I’ve managed to unstick my workflow builds by triggering an unrelated non-workflow build, and then cancelling it.

I can confirm that this triggering works with our currently stucked workflows as well.

---

<div class="post-metadata">

**Author:** ![Eric](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/eric/32/2759_2.png) [@Eric](https://discuss.circleci.com/u/Eric)\
**Post date:** [October 5, 2017, 12:45pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/5 "2017-10-05T12:45:04Z")

</div>

Hi everyone,

We’ve recently discovered a bug where jobs can queue indefinitely. The process to reproduce this is:

1. Start up multiple workflows such that jobs queued need more containers than your plan has. At least one job should be queued by this.
2. Cancel the workflows owning the running jobs.
3. The queued jobs will remain in a “not running” state, when they should switch to running.

If you can confirm that this matches what you saw, I can add your cases to our ticket. Additionally, you can work around this bug by cancelling indefinitely “not running” jobs and re-run their workflows, if necessary.

The additional workaround you’ve provided about triggering a workflow and cancelling it is helpful. Thank you for sharing that!

If your issue is different, please provide reproduction steps if possible.

---

<div class="post-metadata">

**Author:** ![choliver](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/choliver/32/8783_2.png) [@choliver](https://discuss.circleci.com/u/choliver)\
**Post date:** [October 5, 2017, 1:13pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/6 "2017-10-05T13:13:43Z")

</div>

Hi @Eric - this doesn’t seem to quite be the scenario in my case. I have no other builds running or queued, and didn’t cancel anything during the run of my workflow. Nevertheless one job is currently stuck “not running” indefinitely:

 ![19](https://global.discourse-cdn.com/circleci/original/3X/4/3/43ed8c419d2d80298373a4f466cbc6e943144fee.png)

FWIW I only have one container on my plan.

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [October 5, 2017, 4:17pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/7 "2017-10-05T16:17:56Z")

</div>

Hello,

Thank you for letting us know about this. Our engineers located and corrected an issue, and all your builds should be running or ran now.

If you still have a stuck build, or see this again, please fill our a ticket at [https://circleci.zendesk.com/hc/en-us/requests/new](https://circleci.zendesk.com/hc/en-us/requests/new) with the workflow or build URL so we can investigate.

---

<div class="post-metadata">

**Author:** ![joem86](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/joem86/32/18769_2.png) [@joem86](https://discuss.circleci.com/u/joem86)\
**Post date:** [October 5, 2017, 6:12pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/8 "2017-10-05T18:12:33Z")

</div>

Hi, I appear to have the same issue with my workflow today, and I haven’t cancelled anything. It appears to simply be stuck.

---

<div class="post-metadata">

**Author:** ![jamesthompson](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@jamesthompson](https://discuss.circleci.com/u/jamesthompson)\
**Post date:** [October 5, 2017, 6:35pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/9 "2017-10-05T18:35:30Z")

</div>

Same issue here - is this related to the outage yesterday Oct 4?

---

<div class="post-metadata">

**Author:** ![Eric](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/eric/32/2759_2.png) [@Eric](https://discuss.circleci.com/u/Eric)\
**Post date:** [October 6, 2017, 5:34pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/10 "2017-10-06T17:34:44Z")

</div>

Hi all,

Thanks for checking your jobs again and reporting back. Our engineers deployed another fix. Please let us know if you’re still seeing this issue.

---

<div class="post-metadata">

**Author:** ![Eric](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/eric/32/2759_2.png) [@Eric](https://discuss.circleci.com/u/Eric)\
**Post date:** [October 10, 2017, 11:26am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/12 "2017-10-10T11:26:23Z")

</div>

Opened on October 10, 2017, 11:26am UTC



---

<div class="post-metadata">

**Author:** ![simbs](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@simbs](https://discuss.circleci.com/u/simbs)\
**Post date:** [October 16, 2017, 4:55pm UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/13 "2017-10-16T16:55:07Z")

</div>

Happening to our builds as well, but only the ones with a workflow. If there is another build running, the entire workflow seems to get queued even if there are available containers. Cancelling any job in the queue - in the ‘not running’ workflow or not - seems to trigger them to run, or a rebuild. Some workflows have more containers that we have available, but not all.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:35am UTC](https://discuss.circleci.com/t/containers-stuck-in-not-running/17151/14 "2018-06-18T11:35:13Z")

</div>

Closed on June 18, 2018, 11:35am UTC


