R
Railwayβ€’10mo ago
Attacler/Bart

Backup does not seem to work

I just tried to have the S3 template working in Railway. Somehow it cannot connect to the DB. Other services are able to connect to the DB with the same Database url.
No description
Solution:
1. this template deploys from a Dockerfile that's based on an alpine image, you will need that alpine work around variable. 2. this template uses pg_isready, you should not need a sleep anywhere...
Jump to solution
17 Replies
Percy
Percyβ€’10mo ago
Project ID: 0a83d4ac-14fa-437e-80f1-2a5c67cbd3e8
Attacler/Bart
Attacler/BartOPβ€’10mo ago
0a83d4ac-14fa-437e-80f1-2a5c67cbd3e8
Fragly
Fraglyβ€’10mo ago
Could you try adding a 3 second sleep to your start command?
Attacler/Bart
Attacler/BartOPβ€’10mo ago
in what way? (unsure what the default startup command is)
Fragly
Fraglyβ€’10mo ago
like for nodejs:
sleep 3 && node index.js
sleep 3 && node index.js
Attacler/Bart
Attacler/BartOPβ€’10mo ago
lets see if index.js is the correct one
Fragly
Fraglyβ€’10mo ago
I'm doubtful it will be, why not just check the package.json?
Attacler/Bart
Attacler/BartOPβ€’10mo ago
i copied the default template thingy into the GH of a customer of mine. cant access it bcause i dont have full access in the organisation of him
Fragly
Fraglyβ€’10mo ago
ooh okay <:e_guh:1114526512339763341> brody is here hope I wasn't wrong..
Brody
Brodyβ€’10mo ago
you where
Fragly
Fraglyβ€’10mo ago
depressed
Attacler/Bart
Attacler/BartOPβ€’10mo ago
no worries fragly πŸ™‚
Fragly
Fraglyβ€’10mo ago
my bad
Solution
Brody
Brodyβ€’10mo ago
1. this template deploys from a Dockerfile that's based on an alpine image, you will need that alpine work around variable. 2. this template uses pg_isready, you should not need a sleep anywhere
Attacler/Bart
Attacler/BartOPβ€’10mo ago
could it be because the region is not the same? ah, lets see if i can find that apline env variable somewehre ENABLE_ALPINE_PRIVATE_NETWORKING got it πŸ™‚
Brody
Brodyβ€’10mo ago
linking to docs pages on mobile is not fun, so I didn't πŸ˜‡
Attacler/Bart
Attacler/BartOPβ€’10mo ago
its solved, thanks
Want results from more Discord servers?
Add your server