micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.07k stars 1.07k forks source link

Error message when execute CLI (Connection refused) #1133

Closed rgilles closed 5 years ago

rgilles commented 5 years ago

Thanks for reporting an issue for Micronaut, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.

NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.

Task List

Steps to Reproduce

  1. Follow the Quick Start guide
  2. Install with Sdkman
  3. run mv command

Expected Behaviour

You should now be able to run the Micronaut CLI.

$ mn
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
mn>

Actual Behaviour

I get the following message in the shell (bash)

micronaut-core$ mn
| Error Error occurred running Micronaut CLI: Connection refused (Connection refused) (Use --stacktrace to see the full trace)

When I try to run with --stacktrace I get the same result and the stacktrace is not printed.

Environment Information

Example Application

Nothing there I'm trying to just start micronaut CLI.

graemerocher commented 5 years ago

Are you behind a proxy?

rgilles commented 5 years ago

Hi, No I'm not behind a proxy. I'm directly connected to the internet

rgilles commented 5 years ago

I manage to do some progress by cloning the examples. I found that the examples are not aligned with the Quick start guide but maybe it is the intent. In the start guide you have to query the URL: $ curl http://localhost:8080/hello in the examples: $ curl http://localhost:8080/hello/{name} Which was confusing at the beginning but now it is ok for me :)

graemerocher commented 5 years ago

Ok thanks. Feel free to improve the docs if you find anything could be made clearer

mbreevoort commented 5 years ago

Same problem here with ubuntu 18.04 and java 8.0.201-zulu or java 11.0.2-open : "| Error Error occurred running Micronaut CLI: Connection refused (Connection refused) (Use --stacktrace to see the full trace)"

No proxy or firewall running, direct connection to the internet.

Is there a solution to this problem? SOLVED: It uses maven and my local maven settings.xml where pointing to a repo I cannot resolve from home...

Doogiemuc commented 4 years ago

Same problem here (on Windows). The mn.bat does not show any detailed information, even when called with rm --stacktrace