web stats
SFTP Polling - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2014, 09:37 AM
rpatel rpatel is offline
Mirth Newb
 
Join Date: Jun 2014
Posts: 21
rpatel is on a distinguished road
Default SFTP Polling

I have an issue with 3 of my channels that are constantly polling an SFTP server for data, one channel is polling every 2 seconds, another channel every 10 seconds, and another every 5 minutes.

For some weird reason, and I am not sure why, the channels just randomly stop polling and data is not getting picked up for hours and hours. At this point I have to halt the channel and then start it back up. Why would this happen?

This is in production, and hence it is killing me. It has already happened 3 times in the last 30 days, and the customer is not happy at this point.
Reply With Quote
  #2  
Old 08-20-2014, 09:40 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Quote:
Originally Posted by rpatel View Post
I have an issue with 3 of my channels that are constantly polling an SFTP server for data, one channel is polling every 2 seconds, another channel every 10 seconds, and another every 5 minutes.

For some weird reason, and I am not sure why, the channels just randomly stop polling and data is not getting picked up for hours and hours. At this point I have to halt the channel and then start it back up. Why would this happen?

This is in production, and hence it is killing me. It has already happened 3 times in the last 30 days, and the customer is not happy at this point.
What version are you using? Anything in the server log when that happens?
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 08-20-2014, 11:21 AM
rpatel rpatel is offline
Mirth Newb
 
Join Date: Jun 2014
Posts: 21
rpatel is on a distinguished road
Default

Mirth Connect Server 3.0.1.7051

This is the last error that I see before it stopped:

[2014-08-20 08:44:11,658] ERROR (com.mirth.connect.connectors.file.FileReceiver:19 8): Error polling in channel: 3f9204c3-8b74-475a-85bf-77ba5eb59fd7
4:
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:17 21)
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:15 27)
at com.mirth.connect.connectors.file.filesystems.Sftp Connection.listFiles(SftpConnection.java:140)
at com.mirth.connect.connectors.file.FileReceiver.lis tFiles(FileReceiver.java:546)
at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:194)
at com.mirth.connect.donkey.server.channel.PollConnec tor$PollConnectorTask.run(PollConnector.java:141)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java: 2871)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.jav a:2895)
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:16 17)
... 7 more
Reply With Quote
  #4  
Old 08-21-2014, 10:13 AM
rpatel rpatel is offline
Mirth Newb
 
Join Date: Jun 2014
Posts: 21
rpatel is on a distinguished road
Default

Any updates on this?
Reply With Quote
  #5  
Old 12-09-2014, 01:05 AM
albertschreuder albertschreuder is offline
What's HL7?
 
Join Date: Dec 2014
Posts: 1
albertschreuder is on a distinguished road
Default

We experience the same problem. We would like to know een solution, so it retries.
Reply With Quote
  #6  
Old 01-08-2018, 05:35 PM
ulisesp ulisesp is offline
Mirth Newb
 
Join Date: May 2013
Posts: 8
ulisesp is on a distinguished road
Default Stop pulling from sftp

Do we have a solution for this issue? I have the same problem on version 3.4.2 with a File Reader connector using sftp, it pass the "Test Read" (also accessible from a third party tool), it works fine for a few days, but randomly stops working until I re-deploy the channel. Not good on a production environment.
The error is on the dashboard instead of the channel:
ERROR (com.mirth.connect.connectors.file.FileReceiver:20 7): Error polling in channel: c1bad0ad-90c4-4194-aff3-aa710cc7a626
4:
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:17 20)
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:15 26)
at com.mirth.connect.connectors.file.filesystems.Sftp Connection.listFiles(SftpConnection.java:185)
at com.mirth.connect.connectors.file.FileReceiver.lis tFiles(FileReceiver.java:555)
at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:203)
at com.mirth.connect.donkey.server.channel.PollConnec torJob.execute(PollConnectorJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:2 13)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:557)Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java: 2884)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.jav a:2908)
at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSft p.java:2446)
at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp .java:2465)
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:16 97)
... 7 more

The configuration is:
Source Queue: OFF
Response: None
Process batch: No
Max Processing Threads: 1
Timeout (ms): 10000
After Processing Action: Delete
Error Reading action: None
Error in response Action: After Processing Action
Check File Age: Yes
File Age (ms):1000
File size (bytes): 0 - Ignore Maximum checked
File Type: Text
Encoding default

The file to process is an hl7 with embedded PDF
Reply With Quote
  #7  
Old 01-09-2018, 03:55 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 838
siddharth is on a distinguished road
Default

Do you face the same problem while using a third party tool?
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
  #8  
Old 01-09-2018, 06:28 AM
ulisesp ulisesp is offline
Mirth Newb
 
Join Date: May 2013
Posts: 8
ulisesp is on a distinguished road
Default

No, I used the third party tool just to verify connectivity. As I mention, the issue is happening just sometimes. Is actually working fine today, but it may occur again in a few days. It happened 4 times on the last month.
Reply With Quote
  #9  
Old 01-13-2018, 07:57 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 608
kirbykn2 is on a distinguished road
Default

This is an ongoing issue for me too. I have opened tickets with support, but have been unable to get a resolution.

We have SFTP connections to different end points. They poll once per hour after different times. Occasionally we noticed that a channel stops picking up files from the SFTP endpoint. The channel appears to be functioning without issue. If I use a tool like Filezilla, I can connect to the endpoint and download files. If I restart the channel Mirth will pick up the files.

Perhaps its something in my configuration? What is the best practice for picking up files with Mirth from a SFTP end point?
__________________
Best,

Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.4
Mirth Connect Version 3.8.0
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_181-b13
PostgreSQL Version 9.6.8

Last edited by kirbykn2; 03-28-2018 at 10:15 AM.
Reply With Quote
  #10  
Old 01-16-2018, 08:34 AM
pfrey pfrey is offline
OBX.1 Kenobi
 
Join Date: May 2007
Posts: 26
pfrey
Default Polling error

I also have this issue with two of my SFTP channels. I am using Mirth 3.3.0.7801. I would like to know if anyone has found a solution to the issue. Thanks!
Reply With Quote
Reply

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 03:50 AM.


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