Posted Sat, 15 Dec 2018 00:26:26 GMT by

Hello,

I'm having trouble running commands against an FTP server once I've successfully logged into it.  I've tested logging in, downloading, uploading, etc using WinSCP from my Automate server successfully.  But I get problems when trying to do it in a task.

 

As you can see I can log in and log off without error:

------------------------------------------------------------------------
Date : 12/14/2018 8:18:01 AM
------------------------------------------------------------------------
12/14/2018 8:18:01 AM : Response: 220 Microsoft FTP Service
12/14/2018 8:18:01 AM : Command : AUTH TLS
12/14/2018 8:18:01 AM : Response: 234 AUTH command ok. Expecting TLS Negotiation.
12/14/2018 8:18:01 AM : Command : USER ftpUser
12/14/2018 8:18:01 AM : Response: 331 Password required
12/14/2018 8:18:01 AM : Command : PASS ***
12/14/2018 8:18:01 AM : Response: 230 User logged in.
12/14/2018 8:18:01 AM : Command : FEAT
12/14/2018 8:18:01 AM : Response: 211-Extended features supported:
12/14/2018 8:18:01 AM : Response:  LANG EN*
12/14/2018 8:18:01 AM : Response:  UTF8
12/14/2018 8:18:01 AM : Response:  AUTH TLS;TLS-C;SSL;TLS-P;
12/14/2018 8:18:01 AM : Response:  PBSZ
12/14/2018 8:18:01 AM : Response:  PROT C;P;
12/14/2018 8:18:01 AM : Response:  CCC
12/14/2018 8:18:01 AM : Response:  HOST
12/14/2018 8:18:01 AM : Response:  SIZE
12/14/2018 8:18:01 AM : Response:  MDTM
12/14/2018 8:18:01 AM : Response:  REST STREAM
12/14/2018 8:18:01 AM : Response: 211 END
12/14/2018 8:18:01 AM : Command : OPTS UTF8 ON
12/14/2018 8:18:01 AM : Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
12/14/2018 8:18:01 AM : Command : PWD
12/14/2018 8:18:01 AM : Response: 257 "/" is current directory.

12/14/2018 8:18:02 AM : Command : QUIT
12/14/2018 8:18:02 AM : Response: 221 Goodbye.

 

But I get errors when I try and actually download / upload a file:

------------------------------------------------------------------------
Date : 12/14/2018 8:23:12 AM
------------------------------------------------------------------------
12/14/2018 8:23:12 AM : Response: 220 Microsoft FTP Service
12/14/2018 8:23:12 AM : Command : AUTH TLS
12/14/2018 8:23:12 AM : Response: 234 AUTH command ok. Expecting TLS Negotiation.
12/14/2018 8:23:12 AM : Command : USER ftpUser
12/14/2018 8:23:12 AM : Response: 331 Password required
12/14/2018 8:23:12 AM : Command : PASS ***
12/14/2018 8:23:12 AM : Response: 230 User logged in.
12/14/2018 8:23:12 AM : Command : FEAT
12/14/2018 8:23:12 AM : Response: 211-Extended features supported:
12/14/2018 8:23:12 AM : Response:  LANG EN*
12/14/2018 8:23:12 AM : Response:  UTF8
12/14/2018 8:23:12 AM : Response:  AUTH TLS;TLS-C;SSL;TLS-P;
12/14/2018 8:23:12 AM : Response:  PBSZ
12/14/2018 8:23:12 AM : Response:  PROT C;P;
12/14/2018 8:23:12 AM : Response:  CCC
12/14/2018 8:23:12 AM : Response:  HOST
12/14/2018 8:23:12 AM : Response:  SIZE
12/14/2018 8:23:12 AM : Response:  MDTM
12/14/2018 8:23:12 AM : Response:  REST STREAM
12/14/2018 8:23:12 AM : Response: 211 END
12/14/2018 8:23:12 AM : Command : OPTS UTF8 ON
12/14/2018 8:23:12 AM : Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
12/14/2018 8:23:12 AM : Command : PWD
12/14/2018 8:23:12 AM : Response: 257 "/" is current directory.

12/14/2018 8:23:13 AM : Command : PWD
12/14/2018 8:23:13 AM : Response: 257 "/" is current directory.
12/14/2018 8:23:13 AM : Command : CWD /Store
12/14/2018 8:23:13 AM : Response: 250 CWD command successful.
12/14/2018 8:23:13 AM : Command : CWD /
12/14/2018 8:23:13 AM : Response: 250 CWD command successful.
12/14/2018 8:23:13 AM : Command : PWD
12/14/2018 8:23:13 AM : Response: 257 "/" is current directory.
12/14/2018 8:23:13 AM : Command : CWD /Store
12/14/2018 8:23:13 AM : Response: 250 CWD command successful.
12/14/2018 8:23:13 AM : Command : PBSZ 0
12/14/2018 8:23:13 AM : Response: 200 PBSZ command successful.
12/14/2018 8:23:13 AM : Command : PROT C
12/14/2018 8:23:13 AM : Response: 534 Policy requires SSL.

 

What am I missing?  Thanks,

 

 

 

 

 

Posted Sat, 15 Dec 2018 00:56:16 GMT by

I ended up figuring this out.  I had to enable these two options:

-Passive mode

-Encrypt data channel

Posted Sat, 15 Dec 2018 02:49:31 GMT by

Hello Erik,

 

We apologize for not getting back you sooner and thank you for the update. 

Posted Wed, 28 Aug 2019 22:52:23 GMT by

Thanks Erik. You helped in resolving the same issue I had.

;)

Posted Tue, 13 Sep 2022 15:06:21 GMT by Jon Dombrowiak Vice President Of Client Services, B2B SaaS Sales
The gift that keeps on giving, was having the same exact issue out here in 2022 and found this thread, good to go now!

You must be signed in to post in this forum.