Topic "Doesnt append in remote server"

Author Message
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
I trying to append a small file in the remote server (NonStop Tandem Guardian server), but it doesn't.
It just overwrite it.

I tried many commands, but none of them worked:
put -append -nopermissions -nopreservetime -transfer="ascii" -resumesupport="off" -- "local_file" "remote_file",101
put -append -nopermissions -nopreservetime -transfer="ascii" -resumesupport="off" -- "local_file" "remote_file"
put -append -nopermissions -nopreservetime -transfer="ascii" -- "local_file" "remote_file"
put -append -nopermissions -preservetime -transfer="ascii" -- "local_file" "remote_file"
put -append -transfer="ascii" -- "local_file" "remote_file"

Please help me.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
What protocol? The put -append works with SFTP protocol only.
See https://winscp.net/eng/docs/scriptcommand_put
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
Yes, its SFTP.


TransferOptions transferOptions = new TransferOptions
{
TransferMode = TransferMode.Ascii,
FilePermissions = new FilePermissions { Octal = "0777" },
SpeedLimit = 8192,
OverwriteMode = OverwriteMode.Append,
PreserveTimestamp = false,
ResumeSupport = new TransferResumeSupport { State= TransferResumeSupportState.Off} ,
};

TransferOperationResult res3 = session.PutFiles(@"local_file", "remote_file", false, transferOptions).Check();
if (res3.IsSuccess)
{
Console.WriteLine("SUCCESS - TIME: {0}", end3.Subtract(start3));
}
else
{
SessionRemoteExceptionCollection erCol = res3.Failures;
foreach (SessionException er in erCol)
Console.WriteLine(er.Message);
}


martin wrote:
What protocol? The put -append works with SFTP protocol only.
See https://winscp.net/eng/docs/scriptcommand_put
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. 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.
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
I trying it two times and the same results. I am attaching the SessionLog.


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

To generate the session log file, set Session.SessionLogPath. 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.
SessionLog.txt (22.6 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
It looks like a bug in your SFTP server.

In WinSCP GUI, do you get overwrite confirmations, when overwriting an existing file?
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
Nope. It overwrite just fine in the WinSCP Tool.
How can i append in the WinSCP Tool to check if the SFTP server is the problem?




martin wrote:
It looks like a bug in your SFTP server.

In WinSCP GUI, do you get overwrite confirmations, when overwriting an existing file?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
dh wrote:
Nope. It overwrite just fine in the WinSCP Tool.

I was asking if you get an overwrite confirmation prompt in WinSCP GUI:
https://winscp.net/eng/docs/ui_overwrite
dh
[View user's profile]

Joined: 2016-07-22
Posts: 8
No confirmation message.

martin wrote:
dh wrote:
Nope. It overwrite just fine in the WinSCP Tool.

I was asking if you get an overwrite confirmation prompt in WinSCP GUI:
https://winscp.net/eng/docs/ui_overwrite
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
dh wrote:
No confirmation message.

That's an indication of a server bug that prevents the -append from working.
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