Stuck environment patch blocking new bucket from provisioning
jayant1345
HOBBYOP

2 months ago

Hi, I have a stuck environment patch blocking a new bucket from provisioning.

Project: Iskon_book_store_project

Project ID: eef6974e-388c-4704-a900-0d2c0585bfda

Environment: production (id: 4b3461eb-bfa5-4af5-be81-7962d48675fe)

Stuck patch ID: 699eefb6-f50e-433d-9e05-84b55aca7b7d (status: APPLYING, created 2026-06-20, never resolves)

What happened: I tried creating a second volume on my iskcon_book_store service via the API, which failed because a service can only have one volume. That left an orphaned volume behind, which I deleted. But the environment patch that staged that failed volume attach is still stuck in APPLYING status, referencing the now-deleted volume — it's never going to complete on its own.

Since then, I created a Bucket (object storage) in the same project — name iskcon-ebooks, id af555b06-5d51-451b-b8bd-32c5712664f8 — but it has no working instance yet. Querying its S3 credentials returns "BucketInstance not found." I believe the stuck patch above is blocking it from provisioning, since environment changes seem to be serialized one-at-a-time.

Could you please:

Clear/cancel the stuck patch (699eefb6-f50e-433d-9e05-84b55aca7b7d) so it stops blocking the environment, and

Confirm the iskcon-ebooks bucket can now provision properly?

My live site (iskconbooks.in) has not been affected by any of this — I've verified deployments and volumes are all normal. Just need this one stuck record cleared. Thanks!

Solved

5 Replies

Status changed to Awaiting Railway Response Railway 2 months ago


Confirmed. A stuck environment change from that failed second-volume attach is wedged in your production environment, and because changes apply one at a time, it's holding up the new iskcon-ebooks bucket from provisioning. We're clearing that stuck record on our side now.

Your live site, deployments, and existing volumes are all healthy and unaffected. Please hold off on making further environment changes in this project until we confirm it's cleared, so nothing else queues up behind it. We'll follow up here once the bucket can provision.


Status changed to Awaiting User Response Railway 2 months ago


Status changed to Awaiting Railway Response angelo-railway 2 months ago


We found the cause. Your environment has a staged change set that is silently failing to apply: it's trying to attach a second volume to your iskcon_book_store service at /app/ebooks, but that service already has a volume mounted at /app/static/images/books. A service can only have one volume, so the change never applies and the pending banner never clears, which is also why the new volume can't provision.

We're clearing the stuck staged change for you now and will confirm once it's done. After that, you can attach the new volume to a service that doesn't already have one, or remove the existing volume first if you intend to replace it.


Status changed to Awaiting User Response Railway 2 months ago


Done. We've cleared the stuck staged change on your production environment, so the pending banner should now be gone and the new volume/bucket can provision.

One thing to note for the retry: the change that was stuck tried to attach the new volume to your iskcon_book_store service, which already has a volume mounted at /app/static/images/books. A service can only have one volume, so please attach the new volume to a different service (one without an existing volume), or remove the current volume from iskcon_book_store first if you mean to replace it.

Give it a try and let us know if anything still looks off.


jayant1345
HOBBYOP

2 months ago

Thanks for clearing the stuck patch — confirmed on my end it's gone. However, the bucket still doesn't work: I created a brand new bucket from scratch (after your fix), and it still returns "BucketInstance not found" when I query its S3 credentials/instance details. So this looks like a separate issue from the stuck patch — buckets created via the public API don't seem to actually provision an instance. Could you check whether there's an additional provisioning step needed on your end for API-created buckets specifically? Bucket IDs to check: af555b06-5d51-451b-b8bd-32c5712664f8 (original) and e1af71e0-2b07-497e-9623-0f3247b9275f (fresh retry, same result). My live site and book images remain completely unaffected throughout.


Status changed to Awaiting Railway Response Railway about 2 months ago


Good news first: confirmed the stuck patch is fully cleared and your production environment is healthy, deployments and volumes all READY.

On the new issue, you diagnosed it correctly. This is not a leftover of the stuck patch. Creating a bucket through the public API (bucketCreate) only creates the bucket record itself. It does not currently provision the actual storage instance or its S3 credentials, which is why both af555b06 and e1af71e0 return "BucketInstance not found". The environment deployment part of the API mutation is not wired up yet, so an API-only bucket never gets an instance.

The reliable path today is to create the bucket from the dashboard (project canvas, New > Bucket) and deploy/commit the change. That route stages and applies the bucket instance, provisions it into your production environment, and generates the S3 credentials. Once it shows up there, querying credentials will return a real endpoint and keys.

You can delete the two empty API-created buckets to avoid confusion. I've flagged the API provisioning gap internally so the mutation gets fixed. Your live site and book images were never at risk here.

Let me know once you've created one from the dashboard and I'll confirm the instance provisioned on our side.

— Angelo


Status changed to Awaiting User Response Railway about 2 months ago


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...