Back

Open image in appwrite console = 100% load

  • 1
  • Self Hosted
  • Storage
D5
28 Aug, 2023, 09:21

Yes, as the title says, I open a file, for example, an Image and the server CPU starts loading to 100% on both cores (2 cores server)

TL;DR
User opened an image in Appwrite console and the server's CPU load jumped to 100%. They received various errors related to database connection and the server crashed. Restarting didn't fix the issue and running Appwrite doctor revealed that MariaDB is down. User wonders if they need to reinstall everything. No backups were done. User suspects the issue may be related to accessing the file but is unsure. They consider deleting everything and starting from scratch. Solution: Reinstalling everything from scratch may be the best option since the data may be corrupted.
D5
28 Aug, 2023, 09:21

Then after a while I get error 0 : aborted

D5
28 Aug, 2023, 09:27

The errors I get in sentry :

TypeScript
Failed to connect to database: SQLSTATE[HY000] [2002] Connection refused
Failed to connect to database: SQLSTATE[HY000] [2002] Host is unreachable
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again```

Seems those errors are after the issue was produced
D5
28 Aug, 2023, 09:34

Restarted the server since Mariadb crashed. Now nothing works 😭

D5
28 Aug, 2023, 09:35

I get error 502: bad gateway

D5
28 Aug, 2023, 09:52

After running Appwrite doctor, Mariadb is down

D5
28 Aug, 2023, 09:52
D5
28 Aug, 2023, 09:52

those are the Mariadb logs

D5
28 Aug, 2023, 10:14

Bruh, reinstall everything or what? 🀯

safwan
28 Aug, 2023, 10:16

Did you upgrade to a new version by any chance?

safwan
28 Aug, 2023, 10:16

@D5

D5
28 Aug, 2023, 10:17

Nope

D5
28 Aug, 2023, 10:17

Never upgraded or something

D5
28 Aug, 2023, 10:18

It just crashed by accessing a file

Susmita
28 Aug, 2023, 10:19

Try restrarting everything

D5
28 Aug, 2023, 10:19

Tried, everything got worse

Susmita
28 Aug, 2023, 10:20

Bruh; worst case scenarios going here

D5
28 Aug, 2023, 10:21

Yep. Seems I will need to delete everything? (Note: no backups where done 🀣).

D5
28 Aug, 2023, 10:22

Note 2: The instance only had data to test (doesn't matter losing all πŸ˜…)

D5
28 Aug, 2023, 10:25

But sincerely, I don't see it normal everything going down suddenly after opening a file from console πŸ€·β€β™‚οΈ

D5
28 Aug, 2023, 10:32
D5
28 Aug, 2023, 10:33

What's weird is that my issue started by accessing a file. First it started loading to 100%, freezed my Appwrite instance. After restarting, nothing works

D5
28 Aug, 2023, 10:38

Okay, after digging into MariaDB docs, it seems like data corrupted (not sure why) and it's stopping to prevent data corruption propagation

safwan
28 Aug, 2023, 10:40

That makes a lot of sense

D5
28 Aug, 2023, 10:49

Okay, I think it's better deleting everything and starting from scratch?

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