Postgres database, "Can't reach database server"
Checked old posts, of which suggested sleeping the project before start, and/or adding
?connect_timeout=300
to the end of the DATABASE_URL
variable would resolve the issue, did not, the project is continuing to erorr with the following console output.
repo: https://github.com/ghostfolio/ghostfolio/tree/main
Image: https://hub.docker.com/r/ghostfolio/ghostfolio (used)GitHub
GitHub - ghostfolio/ghostfolio: Open Source Wealth Management Softw...
Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍 - GitHub - ghostfolio/ghostfolio: Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + Type...
37 Replies
Project ID:
e35c6535-fa60-4402-b954-796421cb36c3
e35c6535-fa60-4402-b954-796421cb36c3
are you running migrate in the build stage?
It is possible that this is related to our current incident, please see updates here #🚨|incidents
I will also circle back and update threads when it's resolved
true true
Still doesn't work, and not sure.
same Can't reach database server?
Yeah.
Not sure, it may be but idk.
can you add a 3 second sleep to the beginning of the start command
Not sure what the rest of the start command is but I can see
sleep 3 && <whatever the current start command is>
Should I set the start command to
yarn database:setup
first?
after the sleepis this a ghost docker image?
Ghostfolio
GitHub
GitHub - ghostfolio/ghostfolio: Open Source Wealth Management Softw...
Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍 - GitHub - ghostfolio/ghostfolio: Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + Type...
are you deploying from its docker image?
Yes.
https://github.com/ghostfolio/ghostfolio/blob/main/Dockerfile#L61
so your new start command should be
sleep 3 && yarn start:production
Got it, thank you, let me try it
Marked deployment completed but no logs
and it has been more than 3 seconds right
Yeah
try this instead
/bin/sh -c "sleep 3 && yarn start:production"
Worked, now this
redeploy?
Oops didn’t copy
okay going to try to deploy it myself
im setting up the project and ill get back to you
Okay, thank you
might make a template too
Nooo
I was gonna 😭
okay, ill make the template and give it to you
I have tons I wanna make templates for, we can share a list if u want
And work em out on free time
sounds cool
it uses redis for cache, and the underlying redis package it uses for that is from 4 years ago, it doesnt support ipv6
that will make two of your templates that cant use the private network for redis haha
i hereby give you permission to fork and publish this template https://railway.app/button?code=6g5rX1
thank you 😘
😭 😭
haha no problem!