a year ago
I was running postgres database and stored some data in it.
https://railway.com/project/2a28446f-6951-44c3-a63a-d37eb16d2d94/service/d188038a-f2b7-46cc-8513-fe4dcc9e4668?environmentId=5fa8fd09-4f8b-41f2-b15e-45bb381743ab
Once I redeployed it all my table get removed and I cannot see my tables. My swap volume is still there and data is there in it.
There was no warning given by railway that "All Your Data will be Lost".
When I set PGDATA path to my swap volume and redeployed, I got below error:
initdb: error: directory "/data" exists but is not empty Apr 07 14:59:51 initdb: hint: If you want to create a new database system, either remove or empty the directory "/data" or run initdb with an argument other than "/data".
Can I set some ENV variables to skip with this init step and use existing data.
1 Replies
a year ago
I think this may be due to the version of the Postgres database that is being deployed? Do you know your last DB version before redeployment?
Status changed to Awaiting User Response Railway • 11 months ago
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