Back

Mariadb is restarting

  • 0
  • Web
Binyamin
3 Apr, 2023, 15:52

In what folder you run this command?

TL;DR
Issue: Mariadb is constantly restarting and the user is unable to find a solution online. They have tried reinstalling Docker Desktop, unregistering all services, and restarting their PC multiple times. Solution: The user has not found a solution yet but intends to try some suggestions found online. They also mention the possibility of a changed Docker configuration file causing the issue. Restarting the PC seemed to temporarily fix the issue, but it reoccurred. The user is advised to check if the system's port is bound to port 3306 virtually through the Docker container. They are also directed to the Docker network documentation for further understanding. The user
Hmm
3 Apr, 2023, 15:52

parent directory

Hmm
3 Apr, 2023, 15:52

It was working fine till morning

Binyamin
3 Apr, 2023, 15:52

So in this folder you should have folder named appwrite And within it you should have two files

  • docker-compose.yml
  • .env
Binyamin
3 Apr, 2023, 15:53

I understand, from my pov it's seems like some service are running in the background In windows systems, sometime simple OS restart solved the problem (Have you try that)

Hmm
3 Apr, 2023, 15:54

no I haven't . I will try that . But I wonder if logs show that something is running on port 3306 then why netstat isn't showing anything

Binyamin
3 Apr, 2023, 15:55

Because the port is taken by docker internal network

Hmm
3 Apr, 2023, 15:56

I see

Hmm
3 Apr, 2023, 15:57

I don't wanna fall into rabbit hole but still netstat should show that docker service that is running on that port ? anyways its not my main concern rn

Binyamin
3 Apr, 2023, 15:58

If you want to see it you can run docker network inspect appwrite_appwrite To see all taken ports within the appwrite network

Binyamin
3 Apr, 2023, 16:01

Docker network are very interesting subject by their own https://docs.docker.com/network/

In short imagine that all the containers are connected to a router/switch. so all of their IPs and ports are inside the switch. and you can specify which ports are exposed the out world

The MariaDB for example is exposing the 3306 port only inside the virtual router and the to the outside world So that mean if you have taken port is taken inside the virtual network.

Binyamin
3 Apr, 2023, 16:01

Is this make sense?

Hmm
3 Apr, 2023, 16:16

I get it so the port of my system is not binded to port 3306 , its just a virtual port thro docker container

Binyamin
3 Apr, 2023, 16:16

Exactly

Binyamin
3 Apr, 2023, 16:37

Did it worked?

Hmm
3 Apr, 2023, 16:55

docker desktop was stuck at starting .. for 10 mins , now I am restarting the pic

Hmm
3 Apr, 2023, 16:55

pc*

Hmm
3 Apr, 2023, 17:11

seems like docker decided to not work today , stuck at starting... even after restarting the pc

Binyamin
3 Apr, 2023, 17:13

Mmm maybe somehow one of docker configuration files has been changed It's a difficult task to troubleshoot

It shouldn't affect any of your containers and stuff - but I do recommend do any backup you can - just uninstall and reinstall docker

Hmm
3 Apr, 2023, 17:49

I found that this docker is starting... is a famous issue , I found some answers over the internet , will try them

Binyamin
3 Apr, 2023, 17:50

Let us know what solution worked out for you

Hmm
3 Apr, 2023, 17:50

sure

Hmm
4 Apr, 2023, 04:18

ok So I can't find any solution over the internet to fix these restarting containers

Hmm
4 Apr, 2023, 04:19

What I have tried

  • reinstalling docker desktop
  • unregistered all the services
  • restart pc several time
Drake
4 Apr, 2023, 04:32

Can you share a screenshot of your error?

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