Skip to content
Environment changes stuck in APPLYING; no new deployment
junnishiojun
OP

a month ago

Our production environment changes have remained in APPLYING since 2026-10-11 05:58 UTC.

At our last check at 07:25 UTC:

  • The commit API had returned committed=true and deploymentStatus=triggered.
  • No new deployment had been created.
  • The existing luna-rule-router service remained healthy.
  • We had not retried the commit or restarted the service.

Could Railway investigate the stuck environment commit and advise how to recover it?

I can provide the project, patch, and workflow IDs privately to Railway staff.

Solved

1 Reply

Railway
BOT

a month ago

Your production environment has grown too large for staged changes to apply, and the cause is how luna-rule-router's code is shipped. The service runs a plain python:3.13-slim image with no repo connected. Its application is stored as base64/zlib payloads split across many numbered variables (the ROUTER_*_RUNTIME_N, ROUTER_R3_P* and *_B64 sets), and the start command decodes and runs them. This latest patch adds 73 more of those chunks. Storing code in variables isn't supported, and once an environment holds this much encoded content, applies stop completing. The change then stays marked as applying and no deployment is created.

The configuration writes may already have landed, so don't retry or restage this patch. Each attempt adds more variables and makes the next apply fail sooner.

To get applies working again, move the application out of variables. You can deploy it from a connected repo, build and publish an image and deploy that, keep large files on a volume, or fetch them from object storage at runtime. Then remove the encoded variables and replace the start command with a short command that runs the deployed files. Variables are meant for configuration and secrets only.


Status changed to Awaiting User Response Railway • about 1 month ago


Railway
BOT

a month 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 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...