R
Railway11mo ago
7wonders

Internal hosts don't work after region migration

It seems that the internal hosts e.g. postgresql://postgres:[email protected]:5432/railway don't work after doing a region migration. The proxy ones do still. Bug or is there something that should be added when using EU region??
Solution:
i just deployed nocodb, then changed the region on both databases to eu, then changed the region on nocodb to eu too - no issues maybe try deploying nocodb again from the template, but please dont change the service variables...
Jump to solution
16 Replies
Percy
Percy11mo ago
Project ID: daf664ef-3747-4e2f-8abe-77b1317b3273
Percy
Percy11mo ago
Project ID: daf664ef-3747-4e2f-8abe-77b1317b3273
7wonders
7wondersOP11mo ago
daf664ef-3747-4e2f-8abe-77b1317b3273 same for redis private url
Brody
Brody11mo ago
just did a test connecting to the database via public and private in the original region it was deployed to (us-west) - no issues migrated the database to us-east, re-ran the test - no issue migrated the testing service to us-east, re-ran the test - no issue can you please be more specific when you say "don't work"
7wonders
7wondersOP11mo ago
Hi Brody, Just ran a test using nocodb, span up with original region - no issues. Switched to EU region for both service and PG and started getting Error: getaddrinfo ENOTFOUND That was from the nocodb logs. Using the proxy public host works fine.
Brody
Brody11mo ago
will try to reproduce with nocodb
7wonders
7wondersOP11mo ago
No description
7wonders
7wondersOP11mo ago
NOPE: pg://postgres.railway.internal:5432?u=${{Noco DB.PGUSER}}&p=${{Noco DB.PGPASSWORD}}&d=railway YEP: pg://${{Noco DB.PGHOST}}:${{Noco DB.PGPORT}}?u=${{Noco DB.PGUSER}}&p=${{Noco DB.PGPASSWORD}}&d=railway Same for redis
Brody
Brody11mo ago
how long ago did you originally deploy nocodb?
7wonders
7wondersOP11mo ago
1 hour maybe
Brody
Brody11mo ago
neither of those variable strings are correct
pg://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}?u=${{Postgres.PGUSER}}&p=${{Postgres.PGPASSWORD}}&d=${{Postgres.PGDATABASE}}
pg://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}?u=${{Postgres.PGUSER}}&p=${{Postgres.PGPASSWORD}}&d=${{Postgres.PGDATABASE}}
Solution
Brody
Brody11mo ago
i just deployed nocodb, then changed the region on both databases to eu, then changed the region on nocodb to eu too - no issues maybe try deploying nocodb again from the template, but please dont change the service variables
7wonders
7wondersOP11mo ago
yeah something is awry because I get the same for redis too
Brody
Brody11mo ago
i have not been able to reproduce any errors, maybe try deploying nocodb again from the template, but please dont change the service variables
7wonders
7wondersOP11mo ago
Yep, now it worked 🤷‍♂️ Sorry for the bother
Brody
Brody11mo ago
no worries!
Want results from more Discord servers?
Add your server