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

Docker installation - "error connecting to db server: no reachable servers" #3298

Open
madcerto opened this issue Aug 1, 2023 · 1 comment

Comments

@madcerto
Copy link

madcerto commented Aug 1, 2023

Hi, I did a fresh install with the docker compose file on a Ubuntu LTS server, and when running the first installation command, for initializing data, it ends with this error message:

INFO:apps.prepopulate.app_initialize:Data import finished
INFO:superdesk:Command finished with: 0
installing demo data
2023-08-01T23:05:58.509+0200    Failed: error connecting to db server: no reachable servers

The client runs on http://<server ip>:8080, but it displays nothing and in the console it says that getting /api/client_config fails with error 502 (bad gateway).

The only thing I've changed is client/superdesk.config.js to replace localhost with my server's IP. Changed that back and it just failed the connection entirely, because of course localhost isn't the server. I've also turned off the firewall.

@madcerto
Copy link
Author

madcerto commented Aug 3, 2023

Small update: it seems like i get the same error in browser console when running superdesk locally for the first few seconds after running it. After at max a couple minutes, it works as expected. No such error in console though, when running the initialization commands.

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

1 participant