Archived Forum Post

Index of archived forum posts

Question:

Not able to send file Using Chilkat to SFTP

Sep 09 '15 at 07:37

Hi

Recently I have updated Chilkat library using below link

http://www.chilkatsoft.com/downloads_ios.asp

Before update this It was working perfectly. But when I update this library , Its not working. LastErrorHTML for PutFile method is

ChilkatLog:

PutFile:
DllDate: Aug 26 2015
ChilkatVersion: 9.5.0.52
UnlockPrefix: M2CMSYFTP
Architecture: Little Endian; 64-bit
Language: IOS Objective-C
VerboseLogging: 0
LocalFilename: /var/mobile/Containers/Data/Application/609B6A1E-2048-41E5-838D-45110C78E12F/Documents/09092015-[110029]-[1].xml
RemoteFilename: 09092015-[110029]-[1].xml
ProgressMonitoring:
enabled: no
heartbeatMs: 0
sendBufferSize: 65536
IdleTimeoutMs: 60000
ReceiveTimeoutMs: 60000
ConnectTimeoutSeconds: 30
uploadFromLocalFile:
localFileSize: 945
uploadFromDataSource:
initialGreeting: 220 Serv-U FTP Server v14.0 ready...
restartNext: 0
modeZ: 0
binaryMode: 1
pbsz_protp:
simpleCommand:
sendCommand:
sendingCommand: PBSZ 0
readCommandResponse:
replyLineQP: 200 PBSZ command OK. Protection buffer size set to 0.
simpleCommand:
sendCommand:
sendingCommand: PROT P
readCommandResponse:
replyLineQP: 200 PROT command OK. Using private data connection.
setupDataConnection:
passive transfer mode
setupPassiveDataSocket:
sendCommand:
sendingCommand: PASV
readCommandResponse:
replyLineQP: 227 Entering Passive Mode (192,168,50,55,216,250)
dataConnect:
hostname: 192.168.50.55
port: 55546
socket2Connect:
connect2:
connectSocket:
connect_ipv6_or_ipv4:
timeout waiting for connect to complete
numSec: 30
numMicroSec: 0
failedWaitToConnect: Socket operation timeout.
ConnectFailReason: Timeout
dataConnectSuccess: 0
Try setting the PassiveUseHostAddr property = true
setupPassiveDataSocket dataConnect failed.
Failed to setup passive data socket for upload
Failed to setup data connection for upload.
readRepliesAfterFailedDataConn:
readCommandResponse:
idleTimeoutMs: 1000
tlsReadIncoming: Socket operation timeout.
Failed to receive more TLS applicaton data.
recvUntilMatch: Socket operation timeout.
Failed to read FTP control channel reply.
readFtpReply: Socket operation timeout.
shutdownChannel:
terminateConnection:
error on socket shutdown.
socketErrno: 57
socketError: Socket is not connected
Failed.
TotalTime: Elapsed time: 32655 millisec
Failed.

and when I call PutFile method , it says NO

CkoFtp2 *ftp = [[CkoFtp2 alloc] init];
BOOL value = [ftp PutFile:dataFilePath remoteFilename:xmlName];

Can anyone please tell me Is there any other procedure I should do after updating Chilkat library ?


Answer

  1. You've given us the LastErrorText for the Connect method, not the PutFile method.
  2. Put the LastErrorText in "pre" tags so that it's readable.
  3. FTP2 is NOT SFTP. SFTP is secure file transfer over SSH. "FTPS" is FTP over SSL/TLS.
  4. Chilkat v9.5.0.52 is the latest version.