Error transferring file Copying files to remote side failed

Advertisement

DomBurf
Joined:
Posts:
4
Location:
UK

Error transferring file Copying files to remote side failed

I'm automating an upload of our web site from our local build server to our Azure remote hosting. I'm using the following commands to do this.
option batch abort
option confirm off 
option transfer binary
open ftp://myusername:mypassword@domain/site/wwwroot
cd /site/wwwroot
ls
synchronize remote -delete "E:\buildfolder" /site/wwwroot
close 
exit
However I'm getting the following errors:
Error transferring file web.config.
Copying files to remote side failed.
Access is denied.
I have tried running my script from the build server command line and from the build itself and it fails for both. I can upload the files manually via FileZilla though. I would prefer to make this a build task rather than a manual one. Any ideas?

2020-01-31 08_15_10-TFS Server (as admin) (192.168.0.18) - Remote Desktop Connection Manager v2.7.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Error transferring file Copying files to remote side failed

Please attach a full session log file showing the problem (using the latest version of WinSCP).

A log file from FileZilla for a comparison would be helpful too.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

lord_steph
Guest

having the same problem, what exactly was the fix, please

i get the same exact error - winscp copying to remote side failed

Reply with quote

Advertisement

DomBurf

Re: having the same problem, what exactly was the fix, please

The file was open and WinSCP couldn't copy the file. I had to close the file before the copy.

Reply with quote

Advertisement

You can post new topics in this forum