# Upgrade failed due to process terminating

**URL:** https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646
**Category:** Self-hosting
**Created:** [September 23, 2015, 3:52pm UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646 "2015-09-23T15:52:36Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 28, 2015, 11:47am UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646/22 "2015-09-28T11:47:32Z")

</div>



---

<div class="post-metadata">

### Author: ![Noya](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@Noya](https://meta.discourse.org/u/Noya)
#### Post date: [September 28, 2015, 12:10pm UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646/23 "2015-09-28T12:10:00Z")

</div>

Hey everyone!

I’ve been struggling with the exact same problem as @shadowhand since my first steps with Discourse a few weeks ago. For me, it is still not resolved on current beta.

After having a look at `message_bus.rb`, I think the problem is as follows: The default `keepalive_interval` is set to `60` seconds and the subscriber is killed after 3x this interval, i.e. after ~ 3 minutes. The asset precompilation for some files takes about 5 minutes on my DigitalOcean droplet.

Without having further investigated the asset compilation step, my guess would be that while a single asset is compiling, the subscriber is blocked, can’t respond to the keepalive and… gets killed mercilessly 😉 .

To confirm this, I’ve set the default `keepalive_interval` to `0`, which disables the keepalive mechanism. Asset precompilation then runs through as expected 😄 .

Maybe a solution would be to disable or raise the `keepalive_interval` for the asset precompilation step? Anyway, hope this will help you to fix this bug.

PS: Thank you for your awesome work on Discourse!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 28, 2015, 12:13pm UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646/24 "2015-09-28T12:13:38Z")

</div>

I plan to change it so all rake tasks manually disable the keepalive checks.

If you want to give it a shot in a PR let me know.

Basically anything that is a rake task should disable this in message bus.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 29, 2015, 12:18am UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646/25 "2015-09-29T00:18:37Z")

</div>

This should be fixed now per:

[https://github.com/discourse/discourse/commit/08ee367210f72d5eb33763c7db4bb7e9e9e32ba3](https://github.com/discourse/discourse/commit/08ee367210f72d5eb33763c7db4bb7e9e9e32ba3)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 24, 2015, 5:21am UTC](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646/26 "2015-10-24T05:21:14Z")

</div>



[Previous page](https://meta.discourse.org/t/upgrade-failed-due-to-process-terminating/33646.md?page=1)
