Unable to connect to MySQL after migrating the region (to Metal)

a year ago

Hello,

I migrated my MySQL database to another region (on Metal) and now I can't connect to the database at all (either via my backend service or via the “Data” tab of the MySQL service).

Solved

51 Replies

a year ago

9841789e-8487-4afa-ab8b-2e53a0fbb8f2


a year ago

mind sending a screenshots of the top part of your service settings?


a year ago

1355651421432975600
1355651421755801900


a year ago

thank you, and when was the last succesful deploy of your MySQL database?


a year ago

the deployments still work fine, but the connection is no longer possible. I tried to migrate today, so deployments older than 1 day were working


a year ago

so does it work when you redeploy it on a GCP region?


a year ago

I will try


a year ago

To me it looks like the redeploy is making the mysql server want to update, but it fails because it's trying to delete something it's not allowed to delete


a year ago

The migration to GCP has just finished, but the problem persists


a year ago

The logs seem to be the same

1355655976363233300


a year ago

yea, that's what I thought


a year ago

so it's not metal, it's just failing to update your mysql server


a year ago

so the latest working deployment is a day old?


a year ago

if I can have the timeframe then I can try tracking down the specific version


a year ago

Ok okay, so it's certainly related to the fact that the release points to mysql:8 Docker image and therefore a minor release has been incremented due to a new deployment?


a year ago

well I'm not sure, that's just my theory


a year ago

From several months ago… 😅


a year ago

how many months ago?


a year ago

1355657653443101000


a year ago

3 months


a year ago

Dec 27, 2024 2:14 AM


a year ago

mysql 8 was on mysql 8.4.3 three months ago
mysql 8.4.4 released 2 months ago


a year ago

from the logs, it does seem like it's starting an 8.4.4 server


a year ago

Do you have a backup of the database?


a year ago

cause we probably shouldn't mess with the versions without having a backup


a year ago

Do you know if the rollback button restarts a build? Or does it really use the previous build (and therefore the exact version that was there)

1355658271331193000


a year ago

it redoes the build with the same configurations, but I'm not sure that'll help cause it'll still pull from mysql:8 which I think now routes to 8.4.4


a year ago

nop


a year ago

and you're not on pro plan so you can't do one from railway's side huh..


a year ago

this is quite the pickle


a year ago

and on this workspace I'm not a pro user, so I can't create a backup


a year ago

there is one thing we could try, but it's kinda scuffed
you could go into your project settings, go to environments, enable PR environments with copy volume data enabled
that way it copies your database into a new service when you create a PR, then create a PR for your service
railway will then create a duplicate environment for you
then on your created PR environment you could try changing your database version to 8.4.3 and see if it works before doing it in the production environment


a year ago

or if you don't care about the data in the database you could just try going mysql:8.4.3 directly and see what happens


a year ago

I'm willing to take the risk: if there's a 30%+ chance that a version change will break the data, then I could code a service to retrieve the content of the voume before the version change


a year ago

I don't think there's a major risk of data loss here, but if the data is important then i don't think any amount of risk is worth it


a year ago

I'll test it with PR environments!


a year ago

alright, def the safer approach


a year ago

i'm gonna go eat the sushi I ordered and I'll be back in a bit, good luck! 🫡


a year ago

Thank you for your help and "bon appétit"🇫🇷!


a year ago

🤣 thank you


a year ago

1355663742616211500


a year ago

ah that is no bueno


a year ago

seems it can't revert cause the upgrade already started


a year ago

I'm out of ideas


a year ago

yes, I'll try other things by downloading the data of the volume!
thanks for your help and the hints you gave me! 💯


a year ago

no problem, good luck with this
sorry that I wasn't able to offer more help


a year ago

It's already a lot!


a year ago

$wa


a year ago

$s


a year ago

💀


a year ago

!s


Status changed to Solved dev 11 months ago


Loading...