FTP not working for me

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

FTP not working for me

Post by mightycpa » Wed Apr 21, 2021 10:20 pm

It used to be pretty easy to connect via ftp. I'm having trouble with it.

I'm able to connect via filezilla. It's using TLS version 1.2, require explicit. It's set to passive mode too.

Here's my script:

Code: Select all

//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1

Let>FTP_STATUS=1
Let>FTP_USETLS=3
Let>TLS_VER=12

FTPGetDirList>ftp://g02.one,g02one,gUmXYzzMn4333,21,/home/g02.one/html,,,D

MessageModal>FTP_RESULT
The two SSL files are in the script folder, and in MacroScheduler folder too.

This manual page is not particularly instructive about troubleshooting, so I'm not sure if I'm doing it right:

https://www.mjtnet.com/manuals/v15/HTML ... rlist.html
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: FTP not working for me

Post by Grovkillen » Wed Apr 21, 2021 10:21 pm

ftps://...
Let>ME=%Script%

Running: 15.0.27
version history

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: FTP not working for me

Post by mightycpa » Wed Apr 21, 2021 10:29 pm

Thanks, but no. Tell you what, you may or may not have noticed, there is a password in my code. Give it a shot, tell me if it works for you.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: FTP not working for me

Post by mightycpa » Wed Apr 21, 2021 11:13 pm

I did a log from Filezilla, this was in it, and may be the issue:
Status: Server sent passive reply with unroutable address. Using server address instead.
I think this means Filezilla is doing a workaround, ignoring the incorrect passive reply and substituting its own best guess. I'm guessing that MS is not ignoring it, and that this is the cause of the failure.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTP not working for me

Post by Marcus Tettmar » Tue Apr 27, 2021 7:25 am

FTPGetDirList needs a LOCAL file and a remote folder. And you don't need the protocol specifier, which could be the issue here:

FTPGetDirList>g02.one,g02one,gUmXYzzMn4333,21,c:\temp\folder.txt,/html,*,D

Also usually ftp over tls uses port 990 not port 21 but that really depends how your server is set up.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts