#Urgent! all my_sql data are gone! please help!

123 messages · Page 1 of 1 (latest)

thin gate
#

i just made a push then all mysql data are now empty!

normal iglooBOT
#

Project ID: N/A

rugged matrixBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

surreal hound
#

where do you see the missing data?

thin gate
#

all my table are empty

surreal hound
#

what software are you using to view the database data?

thin gate
#

the railway platform are mysql workbench somtimes

#

please help those data are important

surreal hound
#

check with mysql workbench, do not use the railway dashboard to view your data

thin gate
#

also empty now when i use mysl workbench

#

all table a cleared

surreal hound
#

try restarting the database

thin gate
#

what about the datas i just loosed?

surreal hound
#

try restarting the database please

thin gate
#

let me try

#

how todo that?

surreal hound
#

from the settings tab in the plugin

thin gate
#

otion is not clickable

#

this option is not clickable

surreal hound
#

show me?

thin gate
#

okay

#

i cant't loose thos data please help

#

are you there?

surreal hound
#

@wary comet something doesn't seem right here

thin gate
#

??

surreal hound
#

I don't work for railway, Thomas does, he's a support engineer

wary comet
#

I need more details, project ID please

thin gate
#

@wary comet

#

okay a moment

wary comet
#

Yeah don't do that, you will be banned, Brody can you can't

#

Can you link the rules Brody

thin gate
#

6631d42b-d095-4ee8-ae80-f7815322a9c0

surreal hound
thin gate
#

i did not know

surreal hound
#

we understand this is a stressful situation, but please be patient while this gets sorted out

thin gate
#

Okay thank you. so what do i do know

surreal hound
thin gate
#

Okay i will be waiting

wary comet
#

are you sure you can't click restart database?

#

it's kinda greyed out by default

thin gate
#

yes

#

cursor show a red circle when hover it

#

i just try again and i still can click

#

do that will help getting the datas back?

wary comet
thin gate
#

can't

wary comet
#

it won't hurt

#

can I restart it for you?

thin gate
#

please

#

or can you do a rollback from your side or something like that?

wary comet
#

restarting

#

and not tonight I can't

#

did you drop the table or something?

thin gate
#

no!

wary comet
#

I am going offline soon, I jumped on this. Please give me as much detail as possible what happened

#

it should have restarted please check your data NOT on railway

thin gate
#

everything was working fine a just made a push then all my datas was cleared

wary comet
#

all tables?

#

I see tables

thin gate
#

all important tables

wary comet
#

please check again

thin gate
#

still empty

surreal hound
#

use mysql workbench for this check please

thin gate
#

jusct checked

wary comet
#

with mysql workbench?

thin gate
#

i just used it

#

still empty

#

this is the first time i have such a big issue on the platform

#

are you still there?

wary comet
#

yes, but not for much longer

#

this is past the end of my day

thin gate
#

so what do i do?

#

can someone else help me?

wary comet
#

Ok, I can't help you futher tonight. Please do the follow:
Review the change made during the push. Make sure your code didn't cause this. We don't just drop tables.
List the tables that are important and when they were in the state that was last known good.

#

Be polite to our conductors

#

I will bring this up with the team tomorrow.

#

and see what we can do

thin gate
#

i make a push every 2 o 3 days

#

this never happen

wary comet
#

Good night, please be polite. I understand that. Please document as much as possible for me tomorrow

quick pilotBOT
#

Thread has been flagged to Railway team by @wary comet.

ripe musk
#

@thin gate how are you interfacing with mysql from your main app?

thin gate
#

you mean mean i do i access mysql?

#

i usualy just use mysql on railway dashboard or mysql workbench

#

but most of the time i just use mysql on railway dashboard

ripe musk
#

No i mean how does your apps talk to your mysql db? via an ORM or executing raw sql (persay)?

thin gate
#

i don't think i got the question clearly, but it that can help this is a laravel app

#

i have made a backup yesterday i just resused it now the biggest problem is the taday data because i have'nt made any backup yet today

#

can you find my lost data from your side, i mean do you have any backup of existing databases on your server?

surreal hound
#

they don't work for railway either

#

for reference, the only people who work for railway are the users with the railway icon badge besides their name

thin gate
#

Noted. thank you

#

well this is a realy stressfull situation

surreal hound
#

and although I don't work for railway, I am fairly certain railway would not have an easily accessible backup that's newer than your backup

#

are you on the pro plan?

thin gate
#

no.

surreal hound
#

I'm not really sure how much they can do for you here unfortunately

thin gate
#

oh God i hope they can find a way

surreal hound
#

I would not hope if i where you, just trying to be realistic here

thin gate
#

Do railway are still doing upgrade or something like that that would provoke that kind of issue?

surreal hound
#

I'll be completely honest with you, and I am not trying to throw around blame, but as it stands this looks like it's something you have done

ripe musk
#

@thin gate share your push commit

#

Railway states that they do not reccomend DB for anything mission critical. You should be weary of that and have your own backups in place

surreal hound
#

the root cause can extend beyond their commit, something they did in the dashboard, or something they did in mysql workbench

thin gate
#

push commit you said?

ripe musk
#

share your latest commit that 'broke' the DB and we can have a look code wise

surreal hound
#

teph, you have already restored a backup that you took, railway wouldn't have a backup that's significantly newer than yours, the best course of action here would just to be more careful in the future and take database backups yourself at a much higher frequency

ripe musk
#

@thin gate what does your backup strategy look like? How are you performing backups

thin gate
#

i use mysql workbench to perform backup. i always perform backups at midnight or later

cedar mulch
#

Hopping in here to say that Railway does not restore database backups unless they are at fault. It seems as though they are not at fault in this case. You pushed code that wiped your db. Your latest backup will be your best option

thin gate
#

i'm sure i did not wipe it

#

here is the code i use when i want to wipe my database on railway NIXPACKS_BUILD_CMD=php artisan optimize && php artisan config:cache && php artisan view:cache && php artisan migrate:fresh --seed --force i i'm sur i had removed the :fresh --seed part as i always do. and i have double checked

surreal hound
#

well yeah there's your cause of the dropped tables

ripe musk
#

lol

surreal hound
#

I'm going to reiterate on what Adam said, railway does not restore databases if they aren't at fault, this or a similar command was the reason for the missing tables, railway was not at fault here

thin gate
#

migrate:fresh => clean tables, migrate => just migrate new table

surreal hound
#

I'm going to mark this as solved now, I'm sorry this has happened to you but this is out of railways hands, please be more diligent in the future

thin gate
#

i'm using the plaform since 3 or four month now

surreal hound
#

!resolve

quick pilotBOT
#

@surreal hound has marked this thread as resolved.