# Update stuck?

**URL:** https://meta.discourse.org/t/update-stuck/329677
**Category:** Self-hosting
**Created:** [October 7, 2024, 11:32am UTC](https://meta.discourse.org/t/update-stuck/329677 "2024-10-07T11:32:05Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 7, 2024, 11:32am UTC](https://meta.discourse.org/t/update-stuck/329677/1 "2024-10-07T11:32:06Z")

</div>

Hi, I am updating my self hosted instance of Discourse through the web interface, but it seems stuck? It’s been over an hour now and I can’t reach the site? CPU and Disk use are at max.

Anything I can do to resolve this?

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 7, 2024, 12:04pm UTC](https://meta.discourse.org/t/update-stuck/329677/2 "2024-10-07T12:04:55Z")

</div>

> [@RogerK](#):
>
> but it seems stuck?

Hey Roger, can you share any details on where it is stuck at?

For example:

> [@Stuck on “bundle exec rake multisite:migrate”..help](https://meta.discourse.org/t/stuck-on-bundle-exec-rake-multisite-migrate-help/97631/1):
>
> ![image](https://global.discourse-cdn.com/meta/original/3X/b/0/b047b3b04060e0359e460f9fb65fa3b68fca040f.png)

or

> [@Upgrade stuck on bundle exec rake multisite:migrate](https://meta.discourse.org/t/upgrade-stuck-on-bundle-exec-rake-multisite-migrate/97464/1):
>
> ![Upgrade.png](https://global.discourse-cdn.com/meta/original/3X/9/3/9357126ba77a4afd12c20268c9255f2e67cbed58.png)

Also it would help if you could share your CPU/Disk size.

---

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 7, 2024, 12:17pm UTC](https://meta.discourse.org/t/update-stuck/329677/3 "2024-10-07T12:17:57Z")

</div>

Since I upgraded through the web interface I think the last message had to do with webpack. Sorry I lost that state when I shut down my browser.

At the moment I get an error message when visiting my forum; [https://forum.fencecheck.online/](https://forum.fencecheck.online/)

---

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 7, 2024, 12:20pm UTC](https://meta.discourse.org/t/update-stuck/329677/4 "2024-10-07T12:20:18Z")

</div>

As for my VPS; 2 cores / 4.096 MB / Ubuntu 24.04 LTS / 150GB

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 7, 2024, 12:23pm UTC](https://meta.discourse.org/t/update-stuck/329677/5 "2024-10-07T12:23:28Z")

</div>

Hmm it looks like your forum is up. Could you check again if the update is still going on?

---

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 7, 2024, 12:41pm UTC](https://meta.discourse.org/t/update-stuck/329677/6 "2024-10-07T12:41:11Z")

</div>

It’s back. Guess I need more patience when updating. All is well and the update went through fine.

Thanks for the prompt response.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 8, 2024, 11:46am UTC](https://meta.discourse.org/t/update-stuck/329677/7 "2024-10-08T11:46:08Z")

</div>

Roger, how much swap have you got?

Even on a 4GB machine, online rebuilds can eat up all available memory and at this point the server might freeze.

---

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 9, 2024, 6:49am UTC](https://meta.discourse.org/t/update-stuck/329677/8 "2024-10-09T06:49:16Z")

</div>

Hey Robert, I looked and when I use _ **swapon -s** _ I get no return. Does that mean there is no swap configured? I’m a noob when it comes to my VPS and I figured if the forum itself runs without a problem, the update should run as well?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 9, 2024, 7:01am UTC](https://meta.discourse.org/t/update-stuck/329677/9 "2024-10-09T07:01:39Z")

</div>

Also type `free -h`

Note: I’ve even experienced this myself recently only to discover that specific server did not have swap configured (very much my omission).

You are often recommended to have double the swap compared to RAM but you can get away with 1:1 with Discourse it seems.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [October 9, 2024, 7:47am UTC](https://meta.discourse.org/t/update-stuck/329677/10 "2024-10-09T07:47:14Z")

</div>

Updating demands a lot more of the server than the regular day-to-day work.

It’s always a good idea, and sometimes essential, to have swap. If you can spare the disk space, 4G swap is a good number.

I have in the past temporarily upsized my server to more RAM, done the upgrade, then downsized it. You have to sure this is reversible. It only costs a few pennies to run the bigger server for an hour or so. But of course, there is a little downtime with this method.

---

<div class="post-metadata">

### Author: ![RogerK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rogerk/32/454498_2.png) [@RogerK](https://meta.discourse.org/u/RogerK)
#### Post date: [October 9, 2024, 8:51am UTC](https://meta.discourse.org/t/update-stuck/329677/11 "2024-10-09T08:51:23Z")

</div>

Alright, thanks for the insights. I will delve deeper into the swap settings of my little VPS, good to know.
