# Rebuild freezing when attempting to stop container

**URL:** <https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704>\
**Category:** Self-hosting\
**Created:** [April 30, 2021, 2:12pm UTC](https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704 "2021-04-30T14:12:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ajmuir](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@ajmuir](https://meta.discourse.org/u/ajmuir)\
**Post date:** [April 30, 2021, 2:12pm UTC](https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704/1 "2021-04-30T14:12:49Z")

</div>

I received my first **You are running an old version of the Discourse image. Upgrades via the web UI are disabled until you run the latest image** message today and I think I’ve broken my installation.

I followed the instructions, running each command as `sudo` because my hosting provider doesn’t permit the creation of root users.

```
cd /var/discourse
sudo git pull
sudo ./launcher rebuild app

```

I then had to re-run with `sudo git stash` before the `pull` as there was an error regarding clashes.

Everything seemed to progress ok (I left it over an hour) but then my Terminal session closed (broken pipe error). To overcome, I set `ClientAliveInterval` on the server to 60 as this was commented out, restarted, and tried again.

When the rebuild script now runs, it crashes when it goes to stop the docker container.

I tried to get around this by running `docker kill <id>` before running the rebuild script, but the same crash occurs (CPU at 100% for about 15mins…then nothing for hours).

When I reboot the site still comes up, but I’m unable to update it (the UI updater still says I’m running an old Discourse image).

Any advise gratefully received.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704)._
