Unable to Create Volume in Railway - PostgreSQL and Empty Project
dimitri-vs
PROOP

a year ago

(updated, see EDIT)

I'm having issues creating a volume for media storage in my Railway project. This is a significant blocker for our Streamlit project that requires both a PostgreSQL database and storage for images, PDFs, and text files.

I've set up the PostgreSQL database service successfully, but I can't find any option to create a volume - the option simply isn't there when I right-click or use Command Palette. This is inconsistent with Railway's documentation.

I tried creating a separate blank project to test Volume creation, but encountered the same issue. I understand databases create their own volumes, but those don't seem to be accessible for general storage.

I've confirmed I'm not using Metal (the toggle isn't even on), so that's not the cause mentioned in another support thread: Unable to Create New Volume - Possible Hobby Plan Limitation.

EDIT: I discovered that databases already have an attached to volume (see RAILWAY_VOLUME_NAME etc. in Railway Provided Variables). And for new projects, you must first create a service (even an empty one) before the Volume creation option becomes available. This isn't mentioned in the documentation. Can Railway please update the Volume docs to briefly mention this information?

Solved

1 Replies

a year ago

Hello,

You cannot add a volume to a service that already has a volume, and Postgres would not pertain to media storage.

This is mentioned in the documentation -

https://docs.railway.com/reference/volumes#caveats

> Each service can only have a single volume

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


Railway
BOT

7 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 7 months ago


Loading...