Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

fmenditto

Posts

4

Joined

Sat Apr 24, 2010 8:34 pm

Error on downloading file from OS400 FTP Server

by fmenditto » Wed Apr 28, 2010 3:15 am

I'm evaluation edtFTPnet/PRO for our programs. I'm downloading files from OS400 FTP Server with edtFTPnet/pro. But I have an error:

DEBUG [ExFTPConnection] 27 apr 2010 18:33:53.770 : Attempt #1
DEBUG [FTPConnection] 27 apr 2010 18:33:53.771 : DownloadFile(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom\REPLY.TXT,REPLY.TXT)
DEBUG [FTPControlSocket] 27 apr 2010 18:33:53.771 : ---> SIZE REPLY.TXT
DEBUG [FTPControlSocket] 27 apr 2010 18:33:53.771 : 500 Subcommand SIZE not valid.

and I have an exception so so I can't dowload the file. How can I tell to edtPRO that don't send SIZE command ?

There is another problems: when I use DownloadMultiple(FTPLocalPath, RemotePath, "*", False) and RemotePath is /QDLS/TEMP, the edtFTP make a change directory to change current directory to /QDLS/TEMP. After downloading file it try to change again the directory to default that it's QGPL but in not possible to do this in OS400 FTP so I have an exeption "no such directory .... Is possible to tell to edtFTP that don't have to change back to home directory ?

Thanks Filippo
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Error on downloading file from OS400 FTP Server

by support2 » Wed Apr 28, 2010 7:49 am

Do you have integrity checking for transfers switched on? If so set to false (IntegrityCheckTransfers property).

Otherwise please post the log file at the Debug level.

Can you change to /QDLS/TEMP before uploading?
no avatar
User

fmenditto

Posts

4

Joined

Sat Apr 24, 2010 8:34 pm

by fmenditto » Wed Apr 28, 2010 5:40 pm

I set integrity to false but nothing change. I can change /QDLS/TEMP. I change it before downloading. Here the log (the rela folder is /QDSL/NOVACLI)

DEBUG [SFTPMessageStore] 28 apr 2010 09:36:13.987 : Set timeout=30000
INFO [LicenseProperties] 28 apr 2010 09:36:13.994 : Licence expiry date: 03/06/2010
INFO [LicenseProperties] 28 apr 2010 09:36:13.994 : Trial license
DEBUG [FTPConnection] 28 apr 2010 09:36:13.995 : Set LocalDirectory='C:\Works\NovaExchange.NET\bin'
DEBUG [SecureFTPConnection] 28 apr 2010 09:36:13.996 : Set LocalDirectory to C:\Works\NovaExchange.NET\bin
INFO [LicenseProperties] 28 apr 2010 09:36:13.998 : Licence expiry date: 03/06/2010
INFO [LicenseProperties] 28 apr 2010 09:36:13.998 : Trial license
DEBUG [SSLFTPClient] 28 apr 2010 09:36:13.998 : Connecting to novadb1:21
DEBUG [SSLFTPControlSocket] 28 apr 2010 09:36:13.999 : waitOnShutdownSSL=True
DEBUG [HostNameResolver] 28 apr 2010 09:36:14.006 : Resolving novadb1
DEBUG [HostNameResolver] 28 apr 2010 09:36:14.006 : Obtained 1 addresses
DEBUG [HostNameResolver] 28 apr 2010 09:36:14.006 : IP address: 192.168.254.30
DEBUG [HostNameResolver] 28 apr 2010 09:36:14.006 : novadb1 resolved to 192.168.254.30
DEBUG [ExFTPControlSocket] 28 apr 2010 09:36:14.006 : Connecting directly to ftp-server novadb1:21
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.008 : Setting socket timeout=30000
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.010 : Command encoding=System.Text.ASCIIEncoding
DEBUG [ExFTPControlSocket] 28 apr 2010 09:36:14.011 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=novadb1, controlPort=21, timeout=30000
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.013 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.016 : 220-QTCP at S650D15B.NOVASYSTEMS.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.207 : 220 Connection will close if idle more than 5 minutes.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.211 : ---> USER filippom
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.212 : 331 Enter password.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.212 : ---> PASS ********
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.217 : 230 FILIPPOM logged on.
DEBUG [FTPConnection] 28 apr 2010 09:36:14.217 : Successfully logged in
DEBUG [ExFTPConnection] 28 apr 2010 09:36:14.252 : Starting KeepAlive thread with period 30s
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.253 : ---> TYPE I
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.255 : 200 Representation type is binary IMAGE.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.255 : ---> PWD
DEBUG [FTPControlSocket] 28 apr 2010 09:36:14.256 : 257 "QGPL" is current library.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.088 : ---> CWD /QDLS/NOVACLI
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.136 : 250-NAMEFMT set to 1.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.136 : 250 "/QDLS/NOVACLI" is current directory.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.136 : ---> PWD
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.137 : 257 "/QDLS/NOVACLI" is current directory.
DEBUG [RecursiveOperations] 28 apr 2010 09:36:17.139 : Get(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom,/QDLS/NOVACLI,*,True,False)
DEBUG [RecursiveOperations] 28 apr 2010 09:36:17.140 : Get(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom,/QDLS/NOVACLI,EnterpriseDT.Net.Ftp.FileFilter,True,False)
DEBUG [ConnRecursiveOperations] 28 apr 2010 09:36:17.141 : ChangeWorkingDirectory(/QDLS/NOVACLI)
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.141 : ---> CWD /QDLS/NOVACLI
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.143 : 250 "/QDLS/NOVACLI" is current directory.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.143 : ---> PWD
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.143 : 257 "/QDLS/NOVACLI" is current directory.
DEBUG [RecursiveOperations] 28 apr 2010 09:36:17.144 : GetFilesFromCurrentDir(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom,EnterpriseDT.Net.Ftp.FileFilter,True)
DEBUG [ConnRecursiveOperations] 28 apr 2010 09:36:17.145 : ClientDirDetails()
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.147 : ---> SYST
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.148 : 215 OS/400 is the remote operating system. The TCP/IP version is "V6R1M0".
DEBUG [FTPFileFactory] 28 apr 2010 09:36:17.149 : Selected OS/400 parser
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.149 : ---> PWD
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.151 : 257 "/QDLS/NOVACLI" is current directory.
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.154 : ---> PASV
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.155 : 227 Entering Passive Mode (192,168,254,30,232,39).
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.155 : Server supplied address=192.168.254.30
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.155 : Server supplied port=59431
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.155 : Substituting server supplied IP (192.168.254.30) with remote host IP (192.168.254.30)
DEBUG [HostNameResolver] 28 apr 2010 09:36:17.156 : Resolving 192.168.254.30
DEBUG [HostNameResolver] 28 apr 2010 09:36:17.156 : 192.168.254.30 resolved to 192.168.254.30
DEBUG [ExFTPControlSocket] 28 apr 2010 09:36:17.156 : Connecting directly to ftp-server 192.168.254.30:59431
DEBUG [ExFTPPassiveDataSocket] 28 apr 2010 09:36:17.158 : Created passive data-socket: ProxyConnector=
DEBUG [SSLFTPPassiveDataSocket] 28 apr 2010 09:36:17.158 : Created passive data-socket: Protocol=None, CompatibilityFlags=Standard, UseSSLClosure=True, WaitOnClose=True
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.158 : ---> LIST
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.184 : 125 List started.
DEBUG [FTPClient] 28 apr 2010 09:36:17.185 : Reading ASCII listing data
DEBUG [SecureSocket] 28 apr 2010 09:36:17.187 : Shutdown(Both)
DEBUG [SSLFTPPassiveDataSocket] 28 apr 2010 09:36:17.188 : Attempt to close unconnected passive data-channel.
DEBUG [FTPClient] 28 apr 2010 09:36:17.188 : -->MARCO 7680 15/04/09 15:30:32 *FLR CALI/
DEBUG [FTPClient] 28 apr 2010 09:36:17.188 : -->FILIPPOM 1238 15/01/10 16:55:09 *DOC REPLY.TXT
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.387 : 250 List completed.
DEBUG [FTPClient] 28 apr 2010 09:36:17.387 : Found 2 listing lines
DEBUG [FTPFileFactory] 28 apr 2010 09:36:17.388 : Parse() called using culture: Invariant Language (Invariant Country)
DEBUG [FTPFileFactory] 28 apr 2010 09:36:17.389 : Confirmed format OS400
DEBUG [RecursiveOperations] 28 apr 2010 09:36:17.393 : GetFile(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom,REPLY.TXT)
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.395 : ---> TYPE A
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.395 : 200 Representation type is ASCII nonprint.
DEBUG [ConnRecursiveOperations] 28 apr 2010 09:36:17.395 : DownloadFile(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom\REPLY.TXT,REPLY.TXT)
DEBUG [ExFTPConnection] 28 apr 2010 09:36:17.396 : Attempt #1
DEBUG [FTPConnection] 28 apr 2010 09:36:17.396 : DownloadFile(C:\Works\NovaExchange.NET\bin\TEMP_FTP\novadb1\filippom\REPLY.TXT,REPLY.TXT)
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.397 : ---> SIZE REPLY.TXT
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.398 : 500 Subcommand SIZE not valid.
INFO [FTPControlSocket] 28 apr 2010 09:36:17.398 : Expected reply codes = [213] (strict=False)
WARN [FTPConnection] 28 apr 2010 09:36:17.404 : Could not get size of file REPLY.TXT - 500 Subcommand SIZE not valid. (code=500)
DEBUG [FTPConnection] 28 apr 2010 09:36:17.473 : Closing connection (instance=0)
DEBUG [FTPFileFactory] 28 apr 2010 09:36:17.473 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.473 : ---> QUIT
DEBUG [FTPControlSocket] 28 apr 2010 09:36:17.473 : 221 QUIT subcommand received.
DEBUG [SecureSocket] 28 apr 2010 09:36:17.474 : Shutdown(Both)
DEBUG [ExFTPConnection] 28 apr 2010 09:36:17.588 : KeepAlive thread finished.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Apr 29, 2010 8:23 am

Could you try it with just a single download rather than a recursive one, just to check if that works?

Who is online

Users browsing this forum: No registered users and 25 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign