Skip to main content
Participant
June 25, 2018
Question

SFTP Issue on Coldfusion 2016

  • June 25, 2018
  • 1 reply
  • 1916 views

Hello,

We recently migrated our applications from ColdFusion 9 to ColdFusion 2016. One of our applications SFTPs files using cfftp tag.

We noticed that CFFTP tag with ColdFusion 2016 no longer works. We worked with our internal IT team and the remote SFTP server team to resolve all issues with firewall. When we connect with WINSCP from our end, we were able to successfully connect to the remote server but when we use CFFTP from ColdFusion 2016, it seems stuck in the CFFTP tag. It does not even time out.

Initially we thought it's the same code as CF9 and since CFFTP worked in CF9, it should work in CF 2016 but it did not. Later we realized that some of the tags were deprecated and we corrected that and ran the tests. But our efforts were in vain.

We get this error message in the FTP log: "Information","ajp-nio-8016-exec-1","06/20/18","14:06:00","","Starting FTP request {action='open'}"

We used the below code to connect:

<cfftp action = "open"
  
connection = "myConnection1"
  
fingerprint="aa:bb:cc:dd:ee:ff:gg:hh:ii:jj:kk:ll:mm:nn:oo"
  
passive="yes"
  
password="xxxxx"
  
port="22"
  
secure = "yes"
  
server = "1.1.1.1" 
  
stopOnError = "yes"
  
timeout="30"
  
username = "xyz">

Here is the environment info:

Version 2016, 0, 06, 308055

Tomcat Version 8.5.28.0

Java Version 1.8.0_161

OpenSSL Version 1.0.2n

Please assist.

Thanks,

KP

This topic has been closed for replies.

1 reply

WolfShade
Legend
June 25, 2018

I haven't worked with the CFFTP tag, but I suggest changing stopOnError to "no" and putting CFTRY/CFCATCH tags around the CFFTP tag, and have it either CFDUMP the #cfcatch# to screen, or send it via email.  You should see the underlying cause.

HTH,

^ _ ^

Participant
June 25, 2018

Thanks WolfShade. We will try and will let you know.

Thanks,

KP