8 days ago
This is my first time playing around with Railway IaC so correct me if Im doing something wrong / trying to use it wrong.
I had an existing project with a couple services and a pg database I created manually and decided to try out IaC in a new environment to verify the structure came out the same. But in the new environment railway config apply did not want to create any services that already existed with the same name in the existing environment. Since in this case it was 'Postgres' that didn't want to create, my other services were stuck waiting on it. The dashboard was just stuck in an 'Applying' state and failed after ~5 minutes with the message: 'An unknown error occurred'.
I was able to reproduce this in a new project where in the default environment I applied a basic IaC file that just created a pg database with the name 'Postgres'. It created fine in the default environment. But when creating a second environment and applying the same IaC file the CLI displays success but nothing is actually created.
2 Replies
8 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 8 days ago
7 days ago
can u share a screenshot that will help
manuproject
can u share a screenshot that will help
7 days ago
This seemed easier to show: https://www.youtube.com/watch?v=q9UYTxbl7aw
Excuse the bad quality.
Around minute 1:00 you can see the config applies correctly to the production environment.
Around minute 1:50 you can see only the web service is created in the env2 environment and the db service is still planned but never applied.
The db service only applies when I change it's name around 2:40.