# Error when migrating to an external postgres instance

**URL:** <https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992>\
**Category:** Self-hosting\
**Created:** [January 17, 2024, 8:19pm UTC](https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992 "2024-01-17T20:19:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Morpheus636](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@Morpheus636](https://meta.discourse.org/u/Morpheus636)\
**Post date:** [January 18, 2024, 4:51pm UTC](https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992/3 "2024-01-18T16:51:45Z")

</div>

Yes to all three. It generates a new, blank site, connected to the correct database. The environment variables are set when I grep for them, and I can manually connect to the db from within the container.

---

_[View the full topic](https://meta.discourse.org/t/error-when-migrating-to-an-external-postgres-instance/291992)._
