Failed deployment: The selected runtime: LEGACY is not supported in this region: us-west2.
callmefredcom
PROOP

a year ago

My latest build, with no significant change, failed.

The error message is The selected runtime: LEGACY is not supported in this region: us-west2.

I'm using Python 3.10.11 in runtime.txt
It has to stay like that.

What should I do to make it work while preserving my configuration?

Solved

46 Replies

callmefredcom
PROOP

a year ago

b082e796-c15c-43c8-b3d6-81fc47342308


metamizeme
HOBBY

a year ago

Hi there rn having the same problem when I change it here tu us-west1 it allways defaults back to metal Beta thing when deploying and giving the same error

1320435671499931600


henjesus
HOBBY

a year ago

Is my error too


metamizeme
HOBBY

a year ago

my deployment allways worked fine and also after reverting the changes I got the same error so I guess there where some changes on railway side


henjesus
HOBBY

a year ago

Exactly


callmefredcom
PROOP

a year ago

@Brody any idea? I have to make sure any change doesn't break the fact that my app must be using 3.10.11
I saw someone complaining that their django app (mine if Flask) slowed down after switching to V2,
so I want to be sure there will be no impact if that's the thing to do in Settings.


brody
EMPLOYEE

a year ago

switch the runtime to v2 in the service settings


callmefredcom
PROOP

a year ago

It won't slow down the app or break it if runtime.txt is set to 3.10.11 ?


henjesus
HOBBY

a year ago

apparently the problem is in the meta beta regions


metamizeme
HOBBY

a year ago

worked for me ty


callmefredcom
PROOP

a year ago

@Brody additional question: my database service is not in the same PROJECT as the web app service. Are there risks it all breaks when I switch to V2?
Also, please confirm it won't slow down the app or break the 3.10.11 Python configuration.


henjesus
HOBBY

a year ago

My app contain PostgreSQL in other chanel, us oregon


brody
EMPLOYEE

a year ago

runtime has nothing to do with python, and no slow down as long as you are using the private network


callmefredcom
PROOP

a year ago

OK, so I can safely enable V2 then? No risk?


brody
EMPLOYEE

a year ago

you would want the database in the same project so you can use the private network, otherwise there could be slowdowns


callmefredcom
PROOP

a year ago

originally I hadn't "understood" the concept of projects, so that's why the DB was created elsewhere.
Is there a way to attach it to the web app project without breaking the whole thing?


henjesus
HOBBY

a year ago

My database is not in the same project, but due to a change in runtime, it is in different regions. After this my app is very slow


callmefredcom
PROOP

a year ago

I mean, it's been working fine for more than a year now,
but from I understand if I switch to V2, then it would slow down the whole thing.


brody
EMPLOYEE

a year ago

you'd want to have the database in the same project, go ahead and do that now


callmefredcom
PROOP

a year ago

1° how do you "move" the live database to another project?
2° how not to break all the credentials used in the code? (mysql password, etc.)


henjesus
HOBBY

a year ago

Is it possible for me to put the us-west1 region on the django server to be in the same region as my redis and postgresql?

callmefredcom
PROOP

a year ago

I've just read you can't move a SERVICE across PROJECTS. I have tons of data in the DB, as I said the app has been live for more than a year,
so I can't juste "move" it like that from one project to another.
What should I do then? @Brody


callmefredcom
PROOP

a year ago

I see a Backup tab in the MYSQL DB service but apparently you need a PRO plan to get this feature.
Also, I read this "Backups can only be restored into the same project + environment."
So basically I can't use the native Backup feature if I switch to Pro, download the Backup and restore it in an empty MYSQL deployment in the web app's project…


callmefredcom
PROOP

a year ago

@Brody Could you read the 2 messages above and give me the detailed instructions to:
1° move the DB from project A to B (where the web app is deployed) + instructions on how to update the credentials in the app after all the data tables are live in the new instance of the DB
2° make sure everything goes smoothly when I switch the Web App to V2 to fix the deployment bug
I appreciate your support.


henjesus
HOBBY

a year ago

I can't change my django server to the us-west1 Oregon region again and this is causing a lot of slowness because I have a DB and a redis in this Oregon region and my django server in us-west2 @Brody


brody
EMPLOYEE

a year ago

you would need to deploy a database into the correct project and backup and restore it manually.

for credentials you should be using reference variables.


callmefredcom
PROOP

a year ago

Do you have the code I can use in my terminal to create a backup at one end and restore it at the other end (zipping / unzipping if the data is too large)


brody
EMPLOYEE

a year ago

you would want to reference mysql's docs -


callmefredcom
PROOP

a year ago

Ok, I'll study this and also ask GPT4.
Can you confirm nothing will break when switching the web app's runtime to V2? No risk?


henjesus
HOBBY

a year ago

@Brody, can you help with my case?


brody
EMPLOYEE

a year ago

i can't promise that, but I can promise if something breaks it would be due to an issue with your application and nothing to do with the runtime


adam
MODERATOR

a year ago

hen, please open your own help thread. Brody is busy helping Fred


callmefredcom
PROOP

a year ago

Well, it doesn't really answer the question 🙂
The app is running perfectly fine now, the only reason why I need to switch to V2
is that, apparently, I can't push any new update since all new deployments fail due to the recent changes on Railway.


callmefredcom
PROOP

a year ago

I would rather stick to the current setup, which has been running perfectly for 15 months


brody
EMPLOYEE

a year ago

the v2 runtime needs to be used going forward, the legacy runtime is legacy for a reason, please work on putting your database in the correct project and connecting to it via the private network


callmefredcom
PROOP

a year ago

I understand but to be fair, it's kind of unfair that clients has to invest time in their updates with no guarantee that their app won't break because the platform decides to modify their infrastructure. Not the first time I encounter this kind of issue in the IT world but that's unpleasant, to say the least, especially when it happens during the holiday season.


brody
EMPLOYEE

a year ago

the v2 runtime has been out for a very long time, I'm sorry that you are just switching to it now


callmefredcom
PROOP

a year ago

I'm forced to because I got a failed deployment out of the blue


callmefredcom
PROOP

a year ago

and again, I don't see why you would not grandfather existing implementations.


callmefredcom
PROOP

a year ago

the answer probably being "it's not our policy, sorry"


callmefredcom
PROOP

a year ago

But now I've got to spend time learning how to migrate a DB and cross fingers this doesn't break my live project that's been up & running for 15 months without a glitch


brody
EMPLOYEE

a year ago

this will also save you on egress fees from not having to connect to the database publicly!


callmefredcom
PROOP

a year ago

Well, my expenses are pretty low on that front


callmefredcom
PROOP

a year ago

I value my Sunday night more than a few dollars 🙂


brody
EMPLOYEE

a year ago

going to mark this as solved now since you have a clear path forward for a resolution, in the future, please keep an eye on our changelogs so that you know to migrate to new features on weekdays


brody
EMPLOYEE

a year ago

!s


Loading...