Skip to content
Back

500 Error on Appwrite Docker

  • 1
  • Users
  • General
  • Self Hosted
Drake
1 Jul, 2023, 13:51

Please share the mariadb logs

TL;DR
User is experiencing a 500 error on Appwrite Docker. They were able to resolve the issue by reinstalling Appwrite from scratch and deleting all the data. They provide instructions on how to clear the data by running "docker compose down -v" and then starting up Appwrite again with "docker compose up -d". They suggest using the CLI to pull the collection schema if it is still accessible. They also mention the possibility of the MariaDB database being corrupted and suggest restoring from a previous backup or wiping the data and starting fresh. Another suggestion is to check the resources allocated to Docker and make sure it has enough system resources. The
Dipen
2 Jul, 2023, 17:38
Dipen
2 Jul, 2023, 17:39
Dipen
2 Jul, 2023, 17:50
Drake
2 Jul, 2023, 17:58

What are the specs on your server?

Drake
2 Jul, 2023, 18:00

What else is there above this?

Dipen
3 Jul, 2023, 07:39

I'm using localhost

Dipen
3 Jul, 2023, 07:39

m1 Mac pro

Dipen
3 Jul, 2023, 07:39

16 GB Ram.. 1 TB SSD

Dipen
3 Jul, 2023, 07:40

it's just keeps scrolling

Drake
3 Jul, 2023, 15:24

Maybe not enough resources were allocated for docker? Open docker desktop and check how much system resources were given to docker

Dipen
3 Jul, 2023, 17:11
Dipen
3 Jul, 2023, 17:11

isn't this enough?

Dipen
3 Jul, 2023, 17:11

or should I change it to more?

Drake
3 Jul, 2023, 22:15

No that's plenty.

Maybe your mariadb is corrupted. You might need to restore to a previous backup. If you don't care about the data, you can wipe it all and spin up a fresh Appwrite instance

Dipen
4 Jul, 2023, 07:22

i haven't created the data yet but have created all the data structues and databases!

Dipen
4 Jul, 2023, 07:23

either way it's not running so.. i'll try to fresh install appwrite.!

Loic Devaux
4 Jul, 2023, 13:09

Hi Dipen, maybe awogen can avoid you the pain of losing your data structures next time : https://github.com/devloic/awogen/blob/main/examples/awogen_cli_example/README.md

Loic Devaux
4 Jul, 2023, 13:10

(if you are using dart)

Loic Devaux
4 Jul, 2023, 13:11

define dart classes and the tool will create the collections and attributes for you

Loic Devaux
4 Jul, 2023, 13:11

in the database so they map to your classes

Loic Devaux
4 Jul, 2023, 13:12

if the db crashes, you just regenerate the collections ( wont help you with the lost data though)

Drake
4 Jul, 2023, 15:25

You might be able to use the CLI to pull the collection schema if you can still access it: https://appwrite.io/docs/command-line-deployment

Drake
4 Jul, 2023, 15:26

To clear your data, go into your appwrite folder with the docker-compose.yml and run:

TypeScript
docker compose down -v

down stops and removes the containers and the -v flag says to also remove the volumes (where the data is)

Then you can start up Appwrite with

TypeScript
docker compose up -d
Dipen
5 Jul, 2023, 10:24

it worked! I reinstalled appwrite from scratch! had to delete all the data!

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