6 days ago
Project ID: 847be373-2849-40c9-a794-19f0ebe16d41
Service ID: cbcb8572-cd10-4cb7-b47a-f07d22e9ece7
I configured DB the environment variable to use the internal URL but I am seeing this error in the build logs.
Error: getaddrinfo ENOTFOUND postgres.railway.internal
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'postgres.railway.internal'
}
Here I'm just trying to migrate the DB during the build phase. Do the build machines don't get access to the internal DB service I have?
7 Replies
For now I had to use the public URL to get the build working and move on. But I would need to set up private networking please.
6 days ago
is your code using ipv4? ipv6 is needed for internal communication.
is your reference correct ? if you had previously deployed 2 DB so url might be different
Attachments
6 days ago
I am just trying to use TypeORM Postgres DB migration. TypeORM must be using pg
drvier under-the-hood. Do you know you guys have a tip for this?
6 days ago
ssl, is it true?
6 days ago
SSL is it true? What do you mean?
6 days ago
I am trying to use environment variable linking. This worked in other projects.
Attachments
6 days ago
The private network is not available during build; please use a pre-deploy command instead.
6 days ago
Could you help me how to set that up? Can I do that in the railway.toml
file?
6 days ago
Ok I solved it by just running the migration as first step during startCommand
.
6 days ago
It would be best to use a pre-deploy command.