GetAddrInfoReqWrap.onlookup FAILING my deployment
GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {
#12 7.515 errno: -3008,
#12 7.515 code: 'ENOTFOUND',
#12 7.515 syscall: 'getaddrinfo',
#12 7.515 hostname: 'postgres.railway.internal'
#12 7.515 }
hey everyone i get this error and i have no idea why this is happening it worked perfectly before adding migrations being build beforehand
39 Replies
Project ID:
05fccf62-810b-455f-83a0-a63bcb5042c0
05fccf62-810b-455f-83a0-a63bcb5042c0
could you try adding a 3 second sleep in in your start command?
im not using the start at all sir
its when the docker is being build
oh yea, private neworking is not available during build, you'd need to place migrations in your start command
oh shizzle
lemme test it sir one sec
like this?
perhaps, see if it works
( although I wouldn't recommend running typescript in production )
it shouldnt run typescript it should build then use the build right
wait omg no its ts-node
hahaahaha
its first time doing this bare with me
"start": "node ./build/index.ts && yarn sync && yarn migrate:run",
all good š
allrighttyyy lemme test
now my orm is giving me errors
š
i can copy paste text if this is not readable
could you try
are you using alpine?
idk this i didnt do anything but connect my app
yes sir
where can i check?
easiest way of trying is to add ENABLE_ALPINE_PRIVATE_NETWORKING=true to the env variables
what does this do?
It removes the fallback DNS server
if you don't have a dockerfile and you're simply building a node app then you're likely not using an alpine based image
yea i just conencted and it used nix or something and did its thing
WAIT
THE SLEEP WORKED
LOL
yea I think you're cool then
neat!
can i ask why sleep
š
i would never have guessed that was the issue
Private Networking takes a bit to initialize, so we delay your start command a little to give it some time to initialize
@Fragly cant you skip that by using this?
when it builds does it make a folder called /build? because my entites cant be found by my orm now š
I don't think so, that will cause more trouble if anything
it causes both public and private networking to take a little to initialize instead of just private networking
it should create a build dir right
looks like it
okayokay ez fix
man thank you so much!! im moving my client to this
no more droplets š
oh
try this
Solution
i already fixed the .js
we set it to
build/index.ts
before, instead of build/index.js
ohIT WORKS š
THANK!!!
<:chad_moment:758939193967378442> no problem
im buying u coffee as we speak
@Fragly dont have moeny on my card i wrote it down on my reminder
when i get paid
Thank you so much ā¤ļø š
ā¤ļø