login about faq

We have a PowerShell script that does the following:

  1. Calls an external application to generate a file.
  2. Encrypts the file.
  3. SFTP the file to external host. This step uses sftpg3.

On step 3, we keep getting the exit value of 11. From the documentation this is a "Some non-fatal errors occured during a directory operation.".

open user@host 
lopen -l 
lcd ../Outgoing 
cd SomeFolder 
put --overwrite=yes --unlink-source * 
close 
lclose 
quit

I see this error:

22/06/2011 08:34:56:957 SftpAppLibSft/secsh_sft.c:6082: Error: No data found for file ID: TestFile.csv.pgp, Sft error code: 301 error: No data found for file ID: TestFile.csv.pgp

Has anyone experienced this error? Is there a way to get more detail on what may be happening to cause this error? Any help is greatly appreciated.

asked Jun 22 '11 at 03:01

CindyK's gravatar image

CindyK
1111

edited Sep 21 '11 at 17:29

SSH%20KB's gravatar image

SSH KB ♦
509249246237


This might be caused by a failing file system operation on the server end, such as failing to move or copy a file on the server.

What does the sftpg3 batch script look like? Do you get any errors in the output of the command?

If not, try running it with the -v argument, this should print additional information.

Also, what version of Tectia Client are you using?

link

answered Jun 22 '11 at 11:49

Roman's gravatar image

Roman ♦♦
7735817

Thanks Roman for the quick response!

The batch script looks something like this: open user@host lopen -l lcd ../Outgoing cd SomeFolder put --overwrite=yes --unlink-source * close lclose quit

I see this error: 22/06/2011 08:34:56:957 SftpAppLibSft/secsh_sft.c:6082: Error: No data found for file ID: TestFile.csv.pgp, Sft error code: 301 error: No data found for file ID: TestFile.csv.pgp

I can see the file appear in the folder on creation and then encrypted and the file has size (some 500KB). Is there a reason sftpg3 sees the file as having no data?

We are using Tectia Client version 6.

(Jun 22 '11 at 18:31) CindyK CindyK's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×45
×1

Asked: Jun 22 '11 at 03:01

Seen: 4,184 times

Last updated: Sep 21 '11 at 17:29

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.