web stats
Connection refused error when using CLI - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2019, 11:07 AM
provMonishNaidu provMonishNaidu is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 1
provMonishNaidu is on a distinguished road
Default Connection refused error when using CLI

I'm trying to run mirth connect using the CLI. It loads up on my localhost when I use mirth connect admin launcher but not using the CLI. I'm getting the error message below using this command:

./mccommand -a https://localhost:8443 -u admin -p admin

Error:

Quote:
com.mirth.connect.client.core.ClientException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8443 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at com.mirth.connect.client.core.ServerConnection.exe cuteSync(ServerConnection.java:277)
at com.mirth.connect.client.core.ServerConnection.app ly(ServerConnection.java:166)
at org.glassfish.jersey.client.ClientRuntime.invoke(C lientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$3.cal l(JerseyInvocation.java:722)
at org.glassfish.jersey.internal.Errors.process(Error s.java:315)
at org.glassfish.jersey.internal.Errors.process(Error s.java:297)
at org.glassfish.jersey.internal.Errors.process(Error s.java:228)
at org.glassfish.jersey.process.internal.RequestScope .runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invok e(JerseyInvocation.java:718)
at org.glassfish.jersey.client.JerseyInvocation$Build er.method(JerseyInvocation.java:459)
at org.glassfish.jersey.client.proxy.WebResourceFacto ry.invoke(WebResourceFactory.java:379)
at com.sun.proxy.$Proxy13.login(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mirth.connect.client.core.Client$2.invoke(Clie nt.java:266)
at com.sun.proxy.$Proxy13.login(Unknown Source)
at com.mirth.connect.client.core.Client.login(Client. java:331)
at com.mirth.connect.cli.CommandLineInterface.runShel l(CommandLineInterface.java:180)
at com.mirth.connect.cli.CommandLineInterface.run(Com mandLineInterface.java:163)
at com.mirth.connect.cli.CommandLineInterface.<init>( CommandLineInterface.java:106)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:423)
at com.mirth.connect.cli.launcher.CommandLineLauncher .main(CommandLineLauncher.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEn gine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.main(U nixLauncher.java:62)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8443 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnect ionOperator.connect(DefaultHttpClientConnectionOpe rator.java:159)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.connect(PoolingHttpClientConnectionMana ger.java:359)
at org.apache.http.impl.execchain.MainClientExec.esta blishRoute(MainClientExec.java:381)
at org.apache.http.impl.execchain.MainClientExec.exec ute(MainClientExec.java:237)
at org.apache.http.impl.execchain.ProtocolExec.execut e(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(R etryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execut e(RedirectExec.java:111)
at org.apache.http.impl.client.InternalHttpClient.doE xecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:108)
at com.mirth.connect.client.core.ServerConnection.exe cuteSync(ServerConnection.java:255)
... 32 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.ssl.SSLConnectionSocketFactor y.connectSocket(SSLConnectionSocketFactory.java:33 9)
at org.apache.http.impl.conn.DefaultHttpClientConnect ionOperator.connect(DefaultHttpClientConnectionOpe rator.java:142)
... 42 more
^CWALT878379:Mirth Connect monishnaidu$ ./mccommand -a https://localhost:8443 -u admin -p admin
com.mirth.connect.client.core.ClientException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8443 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at com.mirth.connect.client.core.ServerConnection.exe cuteSync(ServerConnection.java:277)
at com.mirth.connect.client.core.ServerConnection.app ly(ServerConnection.java:166)
at org.glassfish.jersey.client.ClientRuntime.invoke(C lientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$3.cal l(JerseyInvocation.java:722)
at org.glassfish.jersey.internal.Errors.process(Error s.java:315)
at org.glassfish.jersey.internal.Errors.process(Error s.java:297)
at org.glassfish.jersey.internal.Errors.process(Error s.java:228)
at org.glassfish.jersey.process.internal.RequestScope .runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invok e(JerseyInvocation.java:718)
at org.glassfish.jersey.client.JerseyInvocation$Build er.method(JerseyInvocation.java:459)
at org.glassfish.jersey.client.proxy.WebResourceFacto ry.invoke(WebResourceFactory.java:379)
at com.sun.proxy.$Proxy13.login(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mirth.connect.client.core.Client$2.invoke(Clie nt.java:266)
at com.sun.proxy.$Proxy13.login(Unknown Source)
at com.mirth.connect.client.core.Client.login(Client. java:331)
at com.mirth.connect.cli.CommandLineInterface.runShel l(CommandLineInterface.java:180)
at com.mirth.connect.cli.CommandLineInterface.run(Com mandLineInterface.java:163)
at com.mirth.connect.cli.CommandLineInterface.<init>( CommandLineInterface.java:106)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:423)
at com.mirth.connect.cli.launcher.CommandLineLauncher .main(CommandLineLauncher.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEn gine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.main(U nixLauncher.java:62)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8443 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnect ionOperator.connect(DefaultHttpClientConnectionOpe rator.java:159)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.connect(PoolingHttpClientConnectionMana ger.java:359)
at org.apache.http.impl.execchain.MainClientExec.esta blishRoute(MainClientExec.java:381)
at org.apache.http.impl.execchain.MainClientExec.exec ute(MainClientExec.java:237)
at org.apache.http.impl.execchain.ProtocolExec.execut e(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(R etryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execut e(RedirectExec.java:111)
at org.apache.http.impl.client.InternalHttpClient.doE xecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:108)
at com.mirth.connect.client.core.ServerConnection.exe cuteSync(ServerConnection.java:255)
... 32 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.ssl.SSLConnectionSocketFactor y.connectSocket(SSLConnectionSocketFactory.java:33 9)
at org.apache.http.impl.conn.DefaultHttpClientConnect ionOperator.connect(DefaultHttpClientConnectionOpe rator.java:142)
... 42 more
Reply With Quote
Reply

Tags
#connectionrefused #cli

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation