We have tried creating a new app via snapshots, but these new apps will also not move to a new org.
There is lots of topics with similar issues and no real solutions, can someone share a solution to move a PG app to a new org please?
When trying to fork in the same org in the hopes that the new app will actually migrate we get these errors:
failed post-init: failed to enable repmgr: failed to create repmgr database: ERROR: template database "template1" has a collation version mismatch (SQLSTATE XX000). Retrying...
Edit:
I have tried absolutely everything possible to create a clone of the current PG app by creating from snapshot or trying to create from a fork, nothing will result in a healthy new app. Nothing works.
We have now tried to use remote backups - this also fails with no helpful error messagesā¦
Moving across orgs is a little tricky as they involve IP changes. I would recommend creating a new Postgres cluster within the target organization and using fly pg import to import your data.
Thanks @shaun - yes I finally resorted to this, I had a different PG app that moved flawlessly, not sure what the difference was. There was issues outside moving orgs here by the way, snapshot and forking had tons of issues within the same org in the hopes that a new flesh version of the app would move like my other PG app, but I couldnāt even get a same org clone going.
More issues trying to redeploy apps after attaching new DATABASE_URL:
app hanging on waiting for healthy allocations:
[PM01] machines API returned an error: "machine ID 82d335a767e348 lease currently held by dan.wetherald@gmail.com, expires at 2024-07-17T22:15:04Z"
More errors:
WARN failed to acquire lease: failed to get lease on VM 28606dbee09238: machine ID 28606dbee09238 lease currently held by dan.wetherald@gmail.com, expires at 2024-07-17T22:22:01Z
Error: error acquiring leases on all machines
Looks like your source App was running an older versionā¦ Thereās a known issue when migrating from < v0.0.43 to >= v0.0.43 that can lead to collation issues.
Itās annoying, but can be manually addressed by following the instructions here:
Alternatively, you can perform pgdump/pgrestore which is what the fly pg import process does behind the scenes.