Inaccessible Service and failing of environment sync redeploy
pancakeguru
PROOP

3 months ago

Getting 502 Bad Gateway error when trying to access a service, which seems to be running, but in logs there is obviously no connection to database.

Additionally, sync from one environment to another is failing - even if changes are showing adding volumes, the volumes are not copied and cause the services to crash.

See the screenshots for relevant logs and information.

Screenshot_2026-02-12_at_04-11-52_nm-n8n.png

Screenshot_2026-02-12_at_04-12-15_502_Bad_Gateway.png

Screenshot_2026-02-12_at_04-12-58_nm-n8n.png

Screenshot_2026-02-12_at_04-15-05_neuromentor-ru.png

Solved

17 Replies

3 months ago

Hey! Railway had an incident earlier today, can you try redeploying the affected services? DB and N8N


pancakeguru
PROOP

3 months ago

I have tried earlier several times.

Sync is still failing - dismounts existing volumes in the target location and fails the re-deploy with no volumes creaated.

(Sync from staging -> production)

As for staging env, tried to redeploy now and seems to work fine, can access n8n dashboard again.


3 months ago

My suggestion was just to get your services up and running, are you still having the sync issue? I'll escalate this thread if so


3 months ago

What error does it throw on fail?


pancakeguru
PROOP

3 months ago

Yes, the sync issue, still persists.

The sync has the addition of volumes listed in the deployment changes.

But then the volumes are not created nor added and I'm left with message in "build logs" - This service requires a volume to be mounted at /var/lib/postgresql/data. Please attach a volume to the service and try again.

This happens regardless of whether the services have volumes connected or not. If there are connected volumes, they get disconnected.

However, I cannot find any error, that would be directly relating to this.

The image shows the changes, which are supposed to be made.

Screenshot_2026-02-12_at_15-01-55_neuromentor-ru.png

Attachments


Status changed to Awaiting Railway Response medim 3 months ago


3 months ago

Assuming I start from a blank project, how do I reproduce this?


pancakeguru
PROOP

3 months ago

To be honest, not entirely sure.

I have tried to delete everything and wanted to sync staging -> production, but I didn't find the "Sync" button available anywhere.

So, I have tried with minimun, which was:

  1. Create environment.
  2. Deploy empty service.
  3. Sync environments.

That would lead to the changes copying services from "staging" and removing the empty service.

However, some services with volumes were deployed successfully, but some were not.

So far I have had this issue only with the n8n services.

Other services - NocoBase, Supabase have successfully synced and volumes appeared.

But the volumes don't seem to have synced properly.

I have tried to access the synced Supabase deployment, but the dashboard doesn't load - error "This project doesn't exist.", which points at the fact, that the synced Postgres and its volume don't contain the data from "staging" deployment.


pancakeguru
PROOP

3 months ago

The sync button is not available in the empty environment, so I had to do it with workaround like this, but empty service shouldn't really be affecting the result.


3 months ago

I would love to help here, but due to volume, we would need a fully reproducible example in order for us to spend some cycles on this.


pancakeguru
PROOP

3 months ago

I will try to remake and sync the environment again later.

Which in itself is not an issue, because services can be synced individually via your "Sync from another environment" function accessible via right-click on the service under "Config" dropdown.

I have tested this also aside the environment-wide sync.

But same issue - the volume is not being duplicated/synced.

And volume itself doesn't have the option to be synced or copied over to the other environment.


I have formally made a ticket for this, sorry for how long it took to get it spun up.

Just to be clear on nomenclature, when you say "copy" you expect the data to be in the other env? The bug in my understanding here is that the other services just straight up won't provision is my understanding.


Status changed to Awaiting User Response Railway 3 months ago


pancakeguru
PROOP

3 months ago

Yes, that is correct understanding.

I have used the term "copy" here as description of what I expect the Sync function to do.

Which in this regard means to duplicate (copy/sync - your pick for the wording) all services and data from existing "source" (the one we sync from) environment or service, as is, into the "target" (the one we sync into) environment/service.

This includes the connected volumes and the data they contain.

As per screenshots - the functionality is actually trying to do that, but with zero result.

The only exceptions are public domains or other elements, which would cause direct conflict if same values were applied across multiple services/environments.


3 months ago

Oh I see what you mean.

We do not support copying the contents of the volume over, and that's unfortunately not something we will have in the immediate future.


pancakeguru
PROOP

3 months ago

Then the question would be, why is the sync trying to do so or puts it into deploy changes to begin with?

That's kind of misleading.

On the other hand, if the contents of the volume cannot be copied over like this - is there an alternative way to do so?


3 months ago

The sync is creating a volume. I don't think there is any misrepresentation that it will copy data.

You would have to implement something on your end to copy over the data.


pancakeguru
PROOP

3 months ago

Well, then there is still issue, because the volumes are not getting created reliably. 🤔

Some of the services got the volumes, but some didn't even after several tries.


3 months ago

Then we are back to this unfortunately.


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...