Need help reassigning dependencies between services
Anonymous
HOBBYOP

a year ago

Hi Railway team,

I'm working on a project (scintillating-beauty) and I accidentally deleted a PostgreSQL database and some connected services. I redeployed a fresh template and now I have a new Primary service (ID or name: primary-production-3dbb...) that I want to use instead of the older Primary-Ru4J.

However, I can’t find where to edit dependencies in the new UI to make Worker depend on the new Primary instead of the old one.

Could you please help me either:

Reconnect the Worker service to the new Primary, or

Guide me on how to edit service dependencies in the new UI?

Thanks in advance!

Mati M.

<#1006629907067064482>

$10 Bounty

2 Replies

Anonymous
HOBBYOP

a year ago

19788c7f-4fb8-4402-888e-55ec2d6e7f9b


smolpaw
HOBBY

a year ago

Your worker was connected to your postgres using variables. Since the variables are tied to service id, that service id no longer exists because of a new deployment so there is no longer a connection.

You need to change the variables for your worker to your new postgres by going into Variables and editing any variables that start with DB_ and pointing them to your new postgres.

Let me know if you need further help with any of this.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...