Skip to content
Init is coming / May 19 - 23
Back

Message: MySQL server has gone away

  • 0
  • Self Hosted
  • Databases
mav8rick
1 Mar, 2024, 03:36

I'm running 1.3.7 and I'm getting the errors in my logs:

TypeScript
appwrite  | [Error] Timestamp: 2024-03-01T03:29:37+00:00
appwrite  | [Error] Method: GET
appwrite  | [Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
appwrite  | [Error] Type: PDOException
appwrite  | [Error] Message: MySQL server has gone away
appwrite  | [Error] File: @swoole-src/library/core/Database/PDOStatementProxy.php
appwrite  | [Error] Line: 64

I think someone mentioned about restarting the server without the volume docker-compose xxx... -v yyy... as a way to try to resolve the issue. May I know if I can retain the data of the system if I keep the database but wipe the volume? I suppose wiping the volume will cause a refresh of the SSL certs but are there any other impact?

TL;DR
Developers are experiencing a "MySQL server has gone away" error and wondering if they can retain data by wiping volumes. Wiping volumes will result in data loss. The suggested solution is to restart the server without the volume using 'docker-compose down -v'.
Steven
1 Mar, 2024, 03:38

Why do you need to wipe volumes?

mav8rick
1 Mar, 2024, 03:42
Steven
1 Mar, 2024, 03:51

the initial suggestion in that thread was to just restart

Steven
1 Mar, 2024, 03:52

May I know if I can retain the data of the system if I keep the database but wipe the volume?

If you wipe volumes, you lose data

Steven
1 Mar, 2024, 03:52

soooo

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more