2 years ago
I we have payload-cms running on nodejs env, the app is not stable and we not found the source of the crashs or NO responding, can anyone please give me hint?
Payload version 2.11.1
We are on PRO plan seem to have resources to this not happen.
23 Replies
2 years ago
Hello,
Unfortunately we are unable to provide code support, I would recommend adding verbose logging and error handling so you can find the root of the instabilities.
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
Thank you, I know you not provide code support!
Just wondering looking at logs can you see if the resources are ok? Do I need share the here something? logs screenshot or project id?
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
Looking at your metrics graphs for the service, you have never even remotely went close to using your max allowed resecures.
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
Yeah, odd not sure why it stops responding when the app auth fails. wondering if the database drop the connection somehow.
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
You are hardcoding the database URL, please use reference variables to reference the private URL.
https://docs.railway.app/guides/variables#referencing-another-services-variable
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
Is the same issue, I hardcoded to see if that helps.
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
Thank you for you support! Everthing else look ok to you?
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
brody, why should the use reference variables to reference the private URL make a difference?
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
It is a best practice, using the private network to connect to your database means no database <--> service egress fees!
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
good, but I guess in terms of stability or the lake of them does not matter for our issue, looks like.
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
Yep, I would make sure to properly handle errors and add verbose logging so you can narrow down your issue.
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
brody,
It seems like the connection between nodejs and postgresql sometimes is lost, or it is postgresql that have issues... not 100% sure yet.
But today I restarted postgresql and the app back to work again.
Every day I have to restart our nodejs 4 or more times, today I just restarted postgresql to see what If that work.
I will continue monitor the issue. Do you mind to check if out postgresql is been ok?
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
Hello,
There's nothing wrong with the database from its logs.
https://docs.strapi.io/dev-docs/configurations/database#database-pooling-options
Please take a look at the Caution banner here, perhaps this is your issue.
I've also looked at the probes for the private network and there are no issues there, so whatever this is, it would not be a platform error.
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
Thank you, link you shared is from strapi any reason?
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
Please see the sentence that followed the link for the reasoning..
> https://docs.strapi.io/dev-docs/configurations/database#database-pooling-options
> Please take a look at the Caution banner here, perhaps this is your issue.
Status changed to Awaiting User Response Railway • over 1 year ago
2 years ago
okay just wanted to make sure you that you are not thinking that we use strapi cms, because we use Payload cms. so I was confused. thank you.
Status changed to Awaiting Railway Response Railway • over 1 year ago
2 years ago
unresponsive again... I don't get it.
Status changed to Awaiting User Response Railway • over 1 year ago
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Completed zuchka • over 1 year ago
