docker-osticket icon indicating copy to clipboard operation
docker-osticket copied to clipboard

'osticket-db' is not accessible, retrying..

Open RussellLeVasseur opened this issue 4 years ago • 4 comments

Used the example yml as written with password variables changed and seeing this error: osticket-app | [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying..

I am not the best with docker networking to understand why.

RussellLeVasseur avatar Mar 29 '21 15:03 RussellLeVasseur

It looks like the mariadb container never actually starts. image

RussellLeVasseur avatar Mar 29 '21 15:03 RussellLeVasseur

Is it possible that you have missed to update the second istance of DB_PASS? The passwords in the environment sections for the containers osticket-app and osticket-db has to match in order to be able to establish a connection.

apiening avatar Jul 28 '21 21:07 apiening

The database is quite sensitive, it breaks easily, so it's normal to recover a copy or start over.

It is advisable to have a UPS to avoid it "mine was in poor condition and broke 3 times in 1 week"

MilorES avatar Jul 25 '23 09:07 MilorES

Are you running this from within WSL by any chance?

I ran into that issue as well. After debugging for some time, I noticed that it only happens if I run docker-compose from within WSL on a Windows machine.

Then, on separate machines, I ran docker-compose directly in Windows and in Linux (no WSL), and it worked without any issues.

Also, going back to the original machine, if I first run docker-compose up in Windows, then I shut it down, and then I run docker-compose up in WSL, it also works.

I am still trying to figure it out, it seems it should be some config in WSL. Just letting you guys know in case you can reproduce it and figure it out more quickly than I would.

mariomenjr avatar Sep 22 '23 19:09 mariomenjr