Hi, i try to restart an upload, but is nit Working.
ftp.RestartNext = True
Await System.Threading.Tasks.Task.Run(Sub() lftp.PutFile(localPath, remoteFilename))
Here the LastErrorText:
ChilkatLog:
PutFile:
DllDate: Dec 27 2016
ChilkatVersion: 9.5.0.65
UnlockPrefix: Anything for 30-day trial
Architecture: Little Endian; 64-bit
Language: .NET 4.6 / x64
VerboseLogging: 0
Component successfully unlocked using trial key
RemoteFilename: EA201504.zip
LocalFilename: H:\Temp\coFtpSync\EA201504.zip
ProgressMonitoring:
enabled: yes
heartbeatMs: 0
sendBufferSize: 65536
--ProgressMonitoring
IdleTimeoutMs: 60000
ReceiveTimeoutMs: 60000
ConnectTimeoutSeconds: 30
uploadFromLocalFile:
localFileSize: 1061931910
uploadFromDataSource:
initialGreeting: 220 ProFTPD 1.3.3g Server (NETGEAR ReadyNAS) [192.168.13.13]
restartNext: 1
modeZ: 0
binaryMode: 1
sizeCmd:
sizeCmdInner:
simpleCommand:
sendCommand:
sendingCommand: SIZE EA201504.zip
--sendCommand
readCommandResponse:
replyLineQP: 213 69664768
--readCommandResponse
--simpleCommand
--sizeCmdInner
--sizeCmd
setupDataConnection:
active transfer mode
setupActiveDataSocket:
Using ephemeral port range for Active data connection.
dataPort: 51386
portIpAddress: 192.168.13.104
MyIPv4: 192,168,13,104,200,186
sendCommand:
sendingCommand: PORT 192,168,13,104,200,186
--sendCommand
readCommandResponse:
replyLineQP: 200 PORT command successful
--readCommandResponse
--setupActiveDataSocket
--setupDataConnection
sendUploadCommand:
sendCommand:
sendingCommand: APPE EA201504.zip
--sendCommand
--sendUploadCommand
completeDataConnection:
acceptDataConnection:
controlChannelReply:
Reading intermediate response..
readCommandResponse:
replyLineQP: 451 EA201504.zip: Append/Restart not permitted, try again
--readCommandResponse
Final response indicates error.
--controlChannelReply
--acceptDataConnection
Failed to accept data connection.
--completeDataConnection
Failed to complete data connection.
--uploadFromDataSource
Failed.
--uploadFromLocalFile
TotalTime: Elapsed time: 47 millisec
Failed.
--PutFile
--ChilkatLog
The FTP error returned is 451. I found this online regarding that error code:
451 Failure writing to local file
This error is returned from an FTP server when it cannot store a file that is being sent to it (from SyncBackPro, SyncBackSE, or SyncBackFree). There are three possible reasons why the FTP server may return this error:
You may need to contact the administrator of the FTP server to resolve this issue.
I don't think this is the problem, because when i delete the file on the ftp server and do it again it works. Only when i try to Restart/Resume after the upload broke i get this error.
The server error message is:
451 EA201504.zip: Append/Restart not permitted, try againMy guess is that the server's FTP implementation does not support the APPE or the REST command, or is somehow configured to disallow it. I suspect you're trying in vain and there's no FTP client that can do a APPE/REST if the command is not supported by the FTP server..