-
Notifications
You must be signed in to change notification settings - Fork 153
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
Weird MongoDB error when running the rest-fights service with Quarkus dev #752
Comments
Yeah this is known and is due to microcks/microcks-quarkus#30 You can get it to work by not using Microcks by following https://github.com/quarkusio/quarkus-super-heroes/tree/main/rest-fights#integration-with-microcks (i.e. |
ah I didn't see that issue, thank you so much! |
Do you happen to know if getting an issue in the frontend like this with Quarkus dev:
is related to the issue? I started the frontend with the same |
Yeah port 8080 is the correct port, not 3000. It's a quarkus app. |
@ingmarfjolla, to add a bit more context to what you're seeing, a Quarkus extension called Quinoa is handling the integration between the front and back ends. Under the covers, it starts the javascript live coding server on port 3000, and then it proxies requests to it. But if you access things directly on 3000, they won't have the right back end services because you're only seeing the thin front-end layer. https://quarkus.io/blog/quinoa-modern-ui-with-no-hassle/ explains a bit more about Quinoa. |
@holly-cummins thanks for the added context! |
@ingmarfjolla am I ok to close out this issue? |
@edeandrea yep, sounds good to me |
Describe the bug
hello!
When I try to run the rest-fights service with
./mvnw quarkus:dev
I get a stack trace like this:Now, I noticed that if I manually start a mongoDB container (and then also provide the mongoDB connection string, user, password in an app properties) that error goes away and it seems to be working.
But, when I try to initiate a fight I get a super similar error for kafka:
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.net.UnknownHostException: kafka-c2mfg: nodename nor servname provided, or not known
To Reproduce
Steps to reproduce the behavior:
docker compose -f rest-heroes/deploy/docker-compose/java17.yml -f rest-villains/deploy/docker-compose/java17.yml -f rest-narration/deploy/docker-compose/java17.yml -f grpc-locations/deploy/docker-compose/java17.yml up --remove-orphans
./mvnw quarkus:dev
Expected behavior
Starting with no issues, unless I missed something in the docs
Desktop (please complete the following information):
Let me know if you need more info, or if I just completely missed something in the docs! Thanks
The text was updated successfully, but these errors were encountered: