Cannot download from specific FTP server with WinSCP.com
Could not retrieve file information
Command was blocked. Contact admin.
The commands I am using are
"\Program Files (x86)\WinSCP\WinSCP.com" /log="winscp.log" open ftp://... get /dsf/fr/y20...
WinSCP.com
calls MLST
before actually retrieving the file. Is this correct, why is this required? It it possible to disable that?
If I call
stat
, I get the same error.
If I use the GUI, I can download the file without error.
The log was created with WinSCP v5.1.7, but I tested with 5.5.3 either, this version shows the same error message.
Win7 64bit
FTP
no GUI
. 2014-06-02 10:20:50.985 -------------------------------------------------------------------------- . 2014-06-02 10:20:50.986 WinSCP Version 5.1.7 (Build 3446) (OS 6.1.7601 Service Pack 1) . 2014-06-02 10:20:50.986 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\ . 2014-06-02 10:20:50.987 Local account: IXENXOM\hmu . 2014-06-02 10:20:50.987 Working directory: C:\Users\hmu.IXENXOM . 2014-06-02 10:20:50.987 Process ID: 5092 . 2014-06-02 10:20:50.987 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=517 /consoleinstance=_4916_111 "/log=winscp.log" . 2014-06-02 10:20:50.987 Time zone: Current: GMT+2, Standard: GMT+1, DST: GMT+2, DST Start: 30.03.2014, DST End: 26.10.2014 . 2014-06-02 10:20:50.987 Login time: Montag, 2. Juni 2014 10:20:50 . 2014-06-02 10:20:50.987 -------------------------------------------------------------------------- . 2014-06-02 10:20:50.987 Session name: EXittXann@ftparch.giove.xxx.int (Modified stored session) . 2014-06-02 10:20:50.987 Host name: ftparch.giove.xxx.int (Port: 21) . 2014-06-02 10:20:50.987 User name: EXittXann (Password: Yes, Key file: No) . 2014-06-02 10:20:50.987 Tunnel: No . 2014-06-02 10:20:50.987 Transfer Protocol: FTP . 2014-06-02 10:20:50.987 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec . 2014-06-02 10:20:50.987 Proxy: none . 2014-06-02 10:20:50.987 FTP: FTPS: None; Passive: Yes [Force IP: A]; List all: A . 2014-06-02 10:20:50.987 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes . 2014-06-02 10:20:50.987 Cache directory changes: Yes, Permanent: Yes . 2014-06-02 10:20:50.987 DST mode: 1; Timezone offset: 0h 0m . 2014-06-02 10:20:50.987 -------------------------------------------------------------------------- . 2014-06-02 10:20:50.996 Connecting to ftparch.giove.xxx.int ... . 2014-06-02 10:20:51.047 Connected with ftparch.giove.xxx.int. Waiting for welcome message... < 2014-06-02 10:20:51.074 220 Check Point FireWall-1 Secure FTP server running on FW-ESA-01 > 2014-06-02 10:20:51.075 USER EXittXann < 2014-06-02 10:20:51.104 331 password: you can use password@password > 2014-06-02 10:20:51.104 PASS ***************** < 2014-06-02 10:20:51.334 230-User EXittXann authenticated by FireWall-1 authentication < 2014-06-02 10:20:51.334 230-Connected to server. Logging in... < 2014-06-02 10:20:51.344 230-220 ProFTPD 1.3.4c Server (GPCARC ProFTPD Server) [172.17.0.10] < 2014-06-02 10:20:51.344 230-331 Password required for EXittXann < 2014-06-02 10:20:51.344 230-230-******************************************************************************* < 2014-06-02 10:20:51.344 230- IT IS AN OFFENCE TO CONTINUE WITHOUT PROPER AUTHORISATION. This system is < 2014-06-02 10:20:51.344 230- restricted to authorised users . < 2014-06-02 10:20:51.344 230- Individuals attempting unauthorised access will be prosecuted. < 2014-06-02 10:20:51.344 230- ******************************************************************************* < 2014-06-02 10:20:51.344 230 230 User EXittXann logged in > 2014-06-02 10:20:51.344 SYST < 2014-06-02 10:20:51.366 215 UNIX Type: L8 > 2014-06-02 10:20:51.366 FEAT < 2014-06-02 10:20:51.396 211-Features: < 2014-06-02 10:20:51.632 MDTM < 2014-06-02 10:20:51.632 MFMT < 2014-06-02 10:20:51.632 TVFS < 2014-06-02 10:20:51.632 MFF modify;UNIX.group;UNIX.mode; < 2014-06-02 10:20:51.632 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*; < 2014-06-02 10:20:51.632 REST STREAM < 2014-06-02 10:20:51.632 SIZE < 2014-06-02 10:20:51.632 211 End . 2014-06-02 10:20:51.633 Connected . 2014-06-02 10:20:51.633 -------------------------------------------------------------------------- . 2014-06-02 10:20:51.634 Using FTP protocol. . 2014-06-02 10:20:51.634 Doing startup conversation with host. > 2014-06-02 10:20:51.635 PWD < 2014-06-02 10:20:51.664 257 "/" is the current directory . 2014-06-02 10:20:51.665 Getting current directory name. . 2014-06-02 10:20:51.666 Startup conversation with host finished. < 2014-06-02 10:20:51.666 Script: Active session: [1] EXittXann@ftparch.giove.xxx.int > 2014-06-02 10:22:16.808 Script: get /dsf/fr/y2013/m06/d30/h07/GNA/GNARNAVS999913181HMRAWF000.xml.gz . 2014-06-02 10:22:16.809 Listing file "/dsf/fr/y2013/m06/d30/h07/GNA/GNARNAVS999913181HMRAWF000.xml.gz". > 2014-06-02 10:22:16.810 REST 0 < 2014-06-02 10:22:16.810 502 Security server inhibited REST command > 2014-06-02 10:22:16.810 PWD < 2014-06-02 10:22:16.810 257 "/" is the current directory . 2014-06-02 10:22:16.810 Retrieving file information... > 2014-06-02 10:22:16.810 MLST /dsf/fr/y2013/m06/d30/h07/GNA/GNARNAVS999913181HMRAWF000.xml.gz < 2014-06-02 10:22:16.854 505 Command was blocked. Contact admin. . 2014-06-02 10:22:16.854 Could not retrieve file information < 2014-06-02 10:22:16.855 Script: Can't get attributes of file '/dsf/fr/y2013/m06/d30/h07/GNA/GNARNAVS999913181HMRAWF000.xml.gz'. < 2014-06-02 10:22:16.856 Script: Could not retrieve file information < 2014-06-02 10:22:16.857 Command was blocked. Contact admin. . 2014-06-02 10:22:16.858 Script: Failed > 2014-06-02 10:22:22.039 Script: bye . 2014-06-02 10:22:22.040 Script: Exit code: 1 . 2014-06-02 10:22:22.041 Disconnected from server