Replies: 1 comment
-
It may help to link to the other references you read to see if its the same issue. You should be able to see what MC does to connect in this source code: https://github.com/nextgenhealthcare/connect/blob/3.8.0/server/src/com/mirth/connect/connectors/file/filesystems/SftpConnection.java Looking at the exact line in the stack trace - this seems to happen on the actual connection I do not know the solution but I hope this helps trace the problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had this issue on a couple file writers using Mirth SFTP. I'll get connection refused right away. My credentials work fine in Filezilla. I've read through older posts saying it's caused by Mirth sending a CWD when it connects, and this is a bug. One work around I had was the vendor relaxed permissions for my account on their SFTP server, but I don't know exactly what permissions they added.
Is there any work around or fix I can affect from Mirth?
Apr 5, 2022 9:19:30 AM4Destination 1File WriterDestination Connector (File Writer) error ERROR MESSAGE: Error writing file
com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect
at com.jcraft.jsch.Util.createSocket(Util.java:394)
at com.jcraft.jsch.Session.connect(Session.java:215)
at com.mirth.connect.connectors.file.filesystems.SftpConnection.(SftpConnection.java:163)
at com.mirth.connect.connectors.file.filesystems.FileSystemConnectionFactory.makeObject(FileSystemConnectionFactory.java:176)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at com.mirth.connect.connectors.file.FileConnector.getConnection(FileConnector.java:186)
at com.mirth.connect.connectors.file.FileDispatcher.send(FileDispatcher.java:165)
at com.mirth.connect.donkey.server.channel.DestinationConnector.handleSend(DestinationConnector.java:888)
at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:518)
at com.mirth.connect.donkey.server.channel.DestinationChain.doCall(DestinationChain.java:121)
at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:63)
at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1759)
at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:1221)
at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:192)
at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:170)
at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:418)
at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:328)
at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:239)
at com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.jcraft.jsch.Util$1.run(Util.java:362)
at java.lang.Thread.run(Unknown Source)
java.net.ConnectException: Connection refused: My_Mirth to External_Vendor 2f99e893-f509-436e-ac60-fb777c6981ecDestination Connector96a94c02-e9fb-4f30-860e-b2df69f3f125general alert0ecf90a5-5e9f-4e7b-b901-f133365d3bb1
Beta Was this translation helpful? Give feedback.
All reactions