java.net.ConnectException

Connection refused

Samebug tips4

Check if your MongoDB is available.

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13203

  • via GitHub by richtera
    , 4 months ago
    Connection refused (Connection refused)
  • via GitHub by gbrost
    , 7 months ago
    Connection refused (Connection refused)
  • via GitHub by Patheek1971
    , 4 months ago
    Connection refused (Connection refused)
  • Stack trace

    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at clojure.tools.nrepl$connect.doInvoke(nrepl.clj:184) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.tools.nrepl.ack$send_ack.invoke(ack.clj:47) at clojure.tools.nrepl.server$start_server.doInvoke(server.clj:146) at clojure.lang.RestFn.invoke(RestFn.java:619) at user$eval2777.invoke(NO_SOURCE_FILE:0) at clojure.lang.Compiler.eval(Compiler.java:6703) at clojure.lang.Compiler.eval(Compiler.java:6693) at clojure.lang.Compiler.eval(Compiler.java:6666) at clojure.core$eval.invoke(core.clj:2927) at leiningen.core.eval$fn__4815.invoke(eval.clj:314) at clojure.lang.MultiFn.invoke(MultiFn.java:231) at leiningen.core.eval$eval_in_project.invoke(eval.clj:337) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at leiningen.repl$server$fn__8776.invoke(repl.clj:203) at clojure.lang.AFn.applyToHelper(AFn.java:152) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:624) at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1862) at clojure.lang.RestFn.invoke(RestFn.java:425) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.RestFn.applyTo(RestFn.java:132) at clojure.core$apply.invoke(core.clj:628) at clojure.core$bound_fn_STAR_$fn__4140.doInvoke(core.clj:1884) at clojure.lang.RestFn.invoke(RestFn.java:397) at clojure.lang.AFn.run(AFn.java:22) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 3 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    123 times, 3 hours ago
    826 more bugmates