Topic "Sychronize remote fails after one file transfer."

Author Message
Guest




I am using a synch.txt file (WinSCP v4.3.5) to and Windows Task Scheduler to automate an SFTP transfer. After the Task Scheduler runs there is one file copied even though there are more files to be copied.
My Synch.txt file looks like:
------------------------------------------------------------------------------------
open (SFTP Host info)
option transfer binary

#copies missing local files to the remote host
synchronize remote "i:\mydirectory\" "/"

exit

------------------------------------------------------------------------------------

My synch.log shows:
* 2014-10-02 13:48:36.519 (EScpSkipFile) Upload of file 'FILE.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2014-10-02 13:48:36.519 The server does not support the operation.
* 2014-10-02 13:48:36.519 Error code: 8
* 2014-10-02 13:48:36.519 Error message from server: SSHServerAPI.SFTP.fxp_attrs
* 2014-10-02 13:48:36.519 Request code: 9
. 2014-10-02 13:48:36.519 Script: Failed
. 2014-10-02 13:48:36.519 Closing connection.
. 2014-10-02 13:48:36.520 Sending special code: 12
. 2014-10-02 13:48:36.520 Sent EOF message

Is the script dying because of the error message? I have tried different syntax but I can't seem to get it right. I have also set the WinSCP client to ignor the permission errors.

How can I resolve this?

Thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Did you read this?
http://winscp.net/eng/docs/message_preserve_time_perm
_________________
Martin Prikryl
Guest




Still having the same issue. I added the -criteria=none. I also Checked Ignore Permission errors. I also unchecked Set Permissions, Preserve timestamp, and unchecked Calculate total size.

What am I doing wrong?

Script and log is shown below:

_______________________________________________________________________________________________________________________________________

option transfer binary

#copies missing local files to the remote host
synchronize remote -criteria=none "i:\HomeDirectory\" "/"

exit

_______________________________________________________________________________________________________________________________________

Log:
. 2014-10-03 09:38:46.902 Synchronizing local directory 'i:\localdirectory' with remote directory '/', params = 514
. 2014-10-03 09:38:46.902 Copying 1 files/directories to remote directory "/"
. 2014-10-03 09:38:46.903 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (Yes); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask: *.*
. 2014-10-03 09:38:46.903 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2014-10-03 09:38:46.903 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2014-10-03 09:38:46.903 File: "i:\localdirectory\test.txt"
< 2014-10-03 09:38:46.903 Script: Local 'i:\localdirectory' => Remote '/'
. 2014-10-03 09:38:46.903 Copying "i:\localdirectory.txt" to remote directory started.
. 2014-10-03 09:38:46.903 Binary transfer mode selected.
. 2014-10-03 09:38:46.903 Checking existence of file.
> 2014-10-03 09:38:46.903 Type: SSH_FXP_LSTAT, Size: 54, Number: 1287
< 2014-10-03 09:38:46.903 Type: SSH_FXP_STATUS, Size: 17, Number: 1028
. 2014-10-03 09:38:46.904 Discarding reserved response
< 2014-10-03 09:38:46.912 Type: SSH_FXP_STATUS, Size: 92, Number: 1287
< 2014-10-03 09:38:46.912 Status code: 2
. 2014-10-03 09:38:46.912 Checking existence of partially transfered file.
> 2014-10-03 09:38:46.912 Type: SSH_FXP_LSTAT, Size: 63, Number: 1543
< 2014-10-03 09:38:46.921 Type: SSH_FXP_STATUS, Size: 101, Number: 1543
< 2014-10-03 09:38:46.921 Status code: 2
. 2014-10-03 09:38:46.921 Opening remote file.
> 2014-10-03 09:38:46.921 Type: SSH_FXP_OPEN, Size: 76, Number: 1795
< 2014-10-03 09:38:46.922 Type: SSH_FXP_HANDLE, Size: 12, Number: 1795
> 2014-10-03 09:38:46.923 Type: SSH_FXP_WRITE, Size: 4120, Number: 2310
. 2014-10-03 09:38:47.018 48 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2014-10-03 09:38:47.018 Type: SSH_FXP_CLOSE, Size: 12, Number: 8964
< 2014-10-03 09:38:47.020 Type: SSH_FXP_STATUS, Size: 17, Number: 8198
< 2014-10-03 09:38:47.024 Type: SSH_FXP_STATUS, Size: 17, Number: 8454
< 2014-10-03 09:38:47.215 Type: SSH_FXP_STATUS, Size: 17, Number: 8710
< 2014-10-03 09:38:47.216 Type: SSH_FXP_STATUS, Size: 17, Number: 8964
< 2014-10-03 09:38:47.216 Status code: 0
> 2014-10-03 09:38:47.216 Type: SSH_FXP_RENAME, Size: 104, Number: 9234
< 2014-10-03 09:38:47.256 Type: SSH_FXP_STATUS, Size: 17, Number: 9234
< 2014-10-03 09:38:47.256 Status code: 0
> 2014-10-03 09:38:47.257 Type: SSH_FXP_SETSTAT, Size: 71, Number: 2057
< 2014-10-03 09:38:47.258 Type: SSH_FXP_STATUS, Size: 44, Number: 2057
< 2014-10-03 09:38:47.258 Status code: 8, Message: 2057, Server: Server.SFTP.fxp_attrs, Language:
* 2014-10-03 09:38:47.258 (ETerminal) The server does not support the operation.
* 2014-10-03 09:38:47.258 Error code: 8
* 2014-10-03 09:38:47.258 Error message from server: Server.SFTP.fxp_attrs
* 2014-10-03 09:38:47.258 Request code: 9
. 2014-10-03 09:38:47.258 Asking user:
. 2014-10-03 09:38:47.258 Upload of file 'Test.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option. ("The server does not support the operation.
. 2014-10-03 09:38:47.258 Error code: 8
. 2014-10-03 09:38:47.258 Error message from server: Server.SFTP.fxp_attrs
. 2014-10-03 09:38:47.258 Request code: 9")
* 2014-10-03 09:38:47.259 (EScpSkipFile) Upload of file 'Test.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2014-10-03 09:38:47.259 The server does not support the operation.
* 2014-10-03 09:38:47.259 Error code: 8
* 2014-10-03 09:38:47.259 Error message from server: Server.SFTP.fxp_attrs
* 2014-10-03 09:38:47.259 Request code: 9
. 2014-10-03 09:38:47.259 Script: Failed
. 2014-10-03 09:38:47.259 Closing connection.
. 2014-10-03 09:38:47.259 Sending special code: 12
. 2014-10-03 09:38:47.259 Sent EOF message
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
And did you try this?

synchronize remote -criteria=none -nopreservetime -nopermissions "i:\HomeDirectory\" "/"
_________________
Martin Prikryl
Guest




Thanks for the help. This worked. You are the man prikryl.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License