Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RussellLeVasseur opened this issue Mar 29, 2021 · 4 comments
Open

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

RussellLeVasseur opened this issue Mar 29, 2021 · 4 comments

Comments

@RussellLeVasseur
Copy link

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
Copy link
Author

It looks like the mariadb container never actually starts.
image

@apiening
Copy link

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.

@MilorES
Copy link

MilorES commented Jul 25, 2023

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"

@mariomenjr
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants