Rank 2: Process
I doubt if I am using an external MySQL because all I did was a default Appwrite install on a Compute Engine
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
I doubt if I am using an external MySQL because all I did was a default Appwrite install on a Compute Engine
Moderator
Then you're using MariaDB
Moderator
This is a completely fresh install, true?
Rank 2: Process
It has some organisations, projects and databases on it.
Rank 2: Process
We've been using it for about 3 months now
Moderator
You don't have backups?
Rank 2: Process
No
Moderator
Could you please run the command docker compose logs mariadb
Send here the result
Rank 2: Process
Here you go https://dpaste.org/P98fg
Moderator
Did you have upgraded recently?
Rank 2: Process
Upgraded to 1.4 from 1.3.7 but things didn't work out and I restored
Moderator
And after restoring you're getting that or is it just after upgrading?
Rank 2: Process
This error started occuring yesterday. But I had restored a week ago
Moderator
I see. Seems like your database got corrupted in some way. Maybe you have restarted or your instance crashed?
Rank 2: Process
When I found out that error I decided to run docker compose stop
Rank 2: Process
And docker compose up -d
Rank 2: Process
Now the instance works but I want to find out the cause of MySQL going down so that I can prevent it for longterm
Moderator
I think it was caused due to a crash in the main container
Moderator
It's just a hypothesis, so it's not a confirmation. There could be several reasons. I think this should not happen again, however for in case it happens anyways, doing regular backups is the key, so you could restore if data gets corrupted, I don't think this will happen, but better adopt more measures than not doing anything😅.
I was going to send some instructions to recover the database, but seems not needed
Moderator
From what I understand, it's working now?
Rank 2: Process
Yes it's working now.
Rank 2: Process
What tips can you suggest to keep regular backups?
Moderator
There are several ways to do backups. I think if you can automate it, that will be the most ideal thing you could do. I automate it by having a bash script that is being automatically triggered that dumps the entire database and uploads it to a FTP server
Moderator
[SOLVED] MySQL Server has gone away
Rank 2: Process
Thank you