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-compose failing startup #465

Closed
adamkorynta opened this issue Nov 16, 2023 · 7 comments
Closed

Docker-compose failing startup #465

adamkorynta opened this issue Nov 16, 2023 · 7 comments

Comments

@adamkorynta
Copy link
Collaborator

@rripken and @ktarbet were having issues getting the docker-compose to startup in their development environments. The specific errors can be added to the description or as comments.

@ktarbet
Copy link
Collaborator

ktarbet commented Nov 16, 2023

15-Nov-2023 17:41:22.005 SEVERE [http-nio-7000-exec-1] cwms.cda.security.OpenIDAccessManager. Unable to initialize realm.
data-api_1 | java.net.ConnectException: Connection refused (Connection refused)
data-api_1 | at java.net.PlainSocketImpl.socketConnect(Native Method)
data-api_1 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

@MikeNeilson
Copy link
Contributor

hmm, that implements either a network/hostname/port problem or that the api isn't actually waiting for the database to be ready.

@ktarbet
Copy link
Collaborator

ktarbet commented Nov 20, 2023

@MikeNeilson Thanks for pointing me to networking.

The instructions say:
Add <real host ip> cwms-data.localhost auth.localhost traefik.localhost to the /etc/hosts file

So instead of 127.0.0.1 I used 192.168.206.134 in /etc/hosts

192.168.206.134 is my Private IP, and I can now see the swagger UI!

@MikeNeilson
Copy link
Contributor

It would be good to figure out a way to not need to do that, but given how just utterly picky some of those services are about URLs and docker with address I'm not sure we can.

@MikeNeilson
Copy link
Contributor

Perhaps a bigger font could help future users though.

@ktarbet
Copy link
Collaborator

ktarbet commented Nov 20, 2023

I have a PR here to warn about 127.0.0.1 : #466

@ktarbet
Copy link
Collaborator

ktarbet commented Jan 10, 2024

Closing this issue - docker compose is working for me -- below is my writeup.

https://github.com/USACE/cwms-data-api/wiki/How-to-use-Docker%E2%80%90compose-with-a-windows-Client

@ktarbet ktarbet closed this as completed Jan 10, 2024
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

3 participants