# Infinite loop during postgres upgrade

**URL:** <https://meta.discourse.org/t/infinite-loop-during-postgres-upgrade/91767>\
**Category:** Self-hosting\
**Created:** [July 7, 2018, 10:39am UTC](https://meta.discourse.org/t/infinite-loop-during-postgres-upgrade/91767 "2018-07-07T10:39:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![vulkanino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vulkanino/32/119654_2.png) [@vulkanino](https://meta.discourse.org/u/vulkanino)\
**Post date:** [January 12, 2021, 1:52pm UTC](https://meta.discourse.org/t/infinite-loop-during-postgres-upgrade/91767/7 "2021-01-12T13:52:24Z")

</div>

No, but I’ve managed to do it finally!

The two `mv` commands in templates/postgres.template.yml are not checked for goodness. The script always says `UPGRADE OF POSTGRES COMPLETE` which is not true when the move is in error.

I removed the commands, then moved the directories by hand after entering in the docker, and the next `rebuild app` is currently working as before! I’m so happy 😃  
Thank you.

---

_[View the full topic](https://meta.discourse.org/t/infinite-loop-during-postgres-upgrade/91767)._
