Back

Database not reachable

  • 0
  • Self Hosted
Nefnief
8 Mar, 2024, 21:34
TL;DR
Database not reachable. Developers need to check the output of `docker ps`, ensure the database is running the correct version, and try bouncing the containers by using `docker compose down && docker compose up -d`. For upgrades, make sure to follow the migration steps outlined at https://appwrite.io/docs/advanced/self-hosting/update. Also, review changes made to environment variables.
Nefnief
8 Mar, 2024, 21:36
Evdog
8 Mar, 2024, 21:40

Can you provide more context here? Did you upgrade? Random crashes?

Nefnief
8 Mar, 2024, 21:42

i upgraded and tryed to use the selfhosted functions but then it crafshed... so then i reset it all to stcom 1.5.1 so i removed my edits from the env (only the github changes)

Evdog
8 Mar, 2024, 21:44

Make sure you're upgrading then performing a migration, the steps are outlined here: https://appwrite.io/docs/advanced/self-hosting/update

Nefnief
8 Mar, 2024, 21:44

i did migarte

Nefnief
8 Mar, 2024, 21:44

and update

VincentGe
8 Mar, 2024, 21:44

check if the the db container

VincentGe
8 Mar, 2024, 21:44

is running

VincentGe
8 Mar, 2024, 21:44

do a docker ps

Nefnief
8 Mar, 2024, 21:45
Evdog
8 Mar, 2024, 21:48

did you bounce the containers w/ docker compose down && docker compose up -d, would also be curious if you changed any environment variables. when running the upgrade, it should create a .env backup in the directory that you can look at to compare

Nefnief
8 Mar, 2024, 21:51

changed nothing in the env, eaven restored the backup... and i ran the commands but still the db isnt runnign

Nefnief
8 Mar, 2024, 21:54

the db is still listed as 1.4.13, is this normal?

VincentGe
8 Mar, 2024, 21:57

Def not 🤔

Evdog
8 Mar, 2024, 21:57

what is the output of docker ps

Nefnief
8 Mar, 2024, 21:57
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