# App rebuild hangs

**URL:** https://meta.discourse.org/t/app-rebuild-hangs/300757
**Category:** Self-hosting
**Created:** [March 24, 2024, 11:33pm UTC](https://meta.discourse.org/t/app-rebuild-hangs/300757 "2024-03-24T23:33:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![agf1997](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@agf1997](https://meta.discourse.org/u/agf1997)
#### Post date: [March 24, 2024, 11:33pm UTC](https://meta.discourse.org/t/app-rebuild-hangs/300757/1 "2024-03-24T23:33:08Z")

</div>

I’m having an issue where I tried upgrading, ran into an issue, then tried rebuilding the app with  
`./launcher rebuild app`

The rebuild is hanging at:

```plaintext
I, [2024-03-24T22:32:01.280882 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
Node.js heap_size_limit (1006.0) is less than 2048MB. Setting --max-old-space-size=2048.

```

Also tried `discourse-doctor` but did the same thing

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [March 25, 2024, 1:11am UTC](https://meta.discourse.org/t/app-rebuild-hangs/300757/2 "2024-03-25T01:11:46Z")

</div>

Sounds like the server is out of memory.

Search here for [heap\_size\_limit is less than 2048MB](https://meta.discourse.org/search?q=heap_size_limit%20is%20less%20than%202048MB%20order%3Alatest)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 25, 2024, 12:23pm UTC](https://meta.discourse.org/t/app-rebuild-hangs/300757/3 "2024-03-25T12:23:00Z")

</div>

I see that message ask the time. I think it is not the problem. It is likely that memory is an issue though. How much ram and swap do you have? I think you need at least 4gb combined. A build with 1gb of ram can take upwards of 20 minutes these days.
