# Bootstrap Container נתקע על su discourse -c 'bundle exec rake db:migrate'

**URL:** <https://meta.discourse.org/t/bootstrap-container-hangs-on-su-discourse-c-bundle-exec-rake-db-migrate/179319>\
**Category:** Bug\
**Created:** [11 בפברואר,‏ 2021,‏ 10:40am UTC](https://meta.discourse.org/t/bootstrap-container-hangs-on-su-discourse-c-bundle-exec-rake-db-migrate/179319 "2021-02-11T10:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [11 בפברואר,‏ 2021,‏ 10:40am UTC](https://meta.discourse.org/t/bootstrap-container-hangs-on-su-discourse-c-bundle-exec-rake-db-migrate/179319/1 "2021-02-11T10:40:05Z")

</div>

We are currently running this recent release:

> **[Commits · discourse/discourse](https://github.com/discourse/discourse/commits/f4db1675f3b0cc79fa87430c229918ad7bce8a44)**
>
> A platform for community discussion. Free, open, simple. - Commits · discourse/discourse

It’s still running in our production container (no issues).

I’m trying to bootstrap based on this release:

> **[Comparing f4db1675...f5b18e2a · discourse/discourse](https://github.com/discourse/discourse/compare/f4db1675...f5b18e2a)**
>
> A platform for community discussion. Free, open, simple. - Comparing f4db1675...f5b18e2a · discourse/discourse

I’ve tried a number of times today, and each time it hangs here:

![Screen Shot 2021-02-11 at 5.32.24 PM](https://global.discourse-cdn.com/meta/optimized/3X/0/3/03bbbc882be3cde19f2162918f0ef4addc197216_2_690x33.jpeg)

Checked the logs in the data and the standby app container (we are bootstrapping) and there are no errors, no issues.

Each time I bootstrap, it hangs on this line:

```plaintext
I, [2021-02-11T10:37:25.133098 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'

```

Any clues where to look to help debug this?

I’ve looked in all the logs I can think of (in all containers) and cannot find problems.

Thanks.

Additional Info:

Each time it hangs and I control C out of the bootstrap process, it seems to leave a postmaster process, which I can subsequently kill.

Here is an example:

 ![Screen Shot 2021-02-11 at 5.49.42 PM](https://global.discourse-cdn.com/meta/original/3X/4/6/46cc022f95614013de4b50c2945c3b9e898af72f.jpeg)

Update:

Bootstrap rebuilds fine if I comment out the “db:migrate” line in the web template.

There is some strange issue with “rails db:migrate” hanging with zero errors I have never experienced before.

I wonder if there is an error (or some underlying issue) in this recent migration?

[https://github.com/discourse/discourse/commit/f5b18e2a311abf503b21d996031d38286e71f74a#diff-961cae2154c303bd80bb3c10faf54ea6037c9ad0dc72411fb21551418c7f1d68](https://github.com/discourse/discourse/commit/f5b18e2a311abf503b21d996031d38286e71f74a#diff-961cae2154c303bd80bb3c10faf54ea6037c9ad0dc72411fb21551418c7f1d68)

See also:

> <https://github.com/discourse/discourse/blob/f5b18e2a311abf503b21d996031d38286e71f74a/db/migrate/20210208022738_move_new_since_to_new_table.rb>

---

_[View the full topic](https://meta.discourse.org/t/bootstrap-container-hangs-on-su-discourse-c-bundle-exec-rake-db-migrate/179319)._
