Input Buffer will not hold 32768 bytes of new data

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
moorelw
Posts: 2
Joined: Fri Jul 09, 2010 4:18 pm

Input Buffer will not hold 32768 bytes of new data

Post by moorelw »

I am attempting to sftp a large file (119M) to a z/OS dataset defined as follows:

ls /+unit=approved
ls /+space=cyl.150.10
ls /+overflow=wrap
ls /+recfm=vb,lrecl=255,blksize=0,dsorg=ps

I receive the following error message:

Couldn't write to remote file '//user1.mvs.dataset' : Failure
ID (mismatch (19 != 12)

The following messages were posted to the server log:

ZosDataset Opening dataset '//user1.mvs.dataset' for write with options blksize(0) dsorg(ps) recfm(v,b) cylspace(150,10) unit(approved)

ZosDataset[E]: InputBuffer will not hold 32768 bytes of new data

zosUtil[E]: Unexpected exception caught in zos_write

[00348] process_write failed

ZosDataset[E]: dataset write error: seek not allowed
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

What version of Co:Z SFTP server are you using?

What other options do you have set?
(display them with:)

ls /+

How much data is transferred before you get this failure? If it is not too much, them please turn on a trace:

ls /+loglevel=RecordExtractor=F

Also, please indicate what sftp client and version you are using (psftp, etc...)

And email the log (trace) to us at info@dovetail.com and we'll take a look.
zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

Re: Input Buffer will not hold 32768 bytes of new data

Post by zStefan »

Hi, was there a solution to this? I've just hit the same problem.
Thanks,
Stefan
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Input Buffer will not hold 32768 bytes of new data

Post by dovetail »

Stefan,

Please try to collect the information requested on the previous post and we will try to diagnose.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Input Buffer will not hold 32768 bytes of new data

Post by dovetail »

I'm not sure what your parameters and data look like, but we are able to reproduce this error with:

- mode=text with linerule=flexible (the default) or linerule=LF/NL/CRLF
- overflow=wrap (the default)
- a remote PUT or a local GET that writes to a z/OS dataset
- an input file that has a line > 128K bytes

What should happen is that these huge lines should be wrapped onto multiple records, but they are not if > 128K.
We have identified the problem and will likely fix it in an upcoming release.

But, check to see if you are really using the correct mode and encoding for your data.
zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

Re: Input Buffer will not hold 32768 bytes of new data

Post by zStefan »

Thanks very much for the quick response. We are using mode=text and defaulting the others. This is a z/OS batch job doing a get from a Linux server into a z/OS dataset. This was just one, repeatable failure from a large number of cycles of this job. So I will check whether the users expect this kind of fluctuation in the data.
sven
Posts: 6
Joined: Mon Feb 28, 2011 1:44 pm

Re: Input Buffer will not hold 32768 bytes of new data

Post by sven »

dovetail wrote:I'm not sure what your parameters and data look like, but we are able to reproduce this error with:

- mode=text with linerule=flexible (the default) or linerule=LF/NL/CRLF
- overflow=wrap (the default)
- a remote PUT or a local GET that writes to a z/OS dataset
- an input file that has a line > 128K bytes

What should happen is that these huge lines should be wrapped onto multiple records, but they are not if > 128K.
We have identified the problem and will likely fix it in an upcoming release.

But, check to see if you are really using the correct mode and encoding for your data.
It seams that we have the same problem. Did you fix this in some release? We are still on 1.7 version.
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Re: Input Buffer will not hold 32768 bytes of new data

Post by coz »

Yes, this was fixed in the 2.0.1 release.
sven
Posts: 6
Joined: Mon Feb 28, 2011 1:44 pm

Re: Input Buffer will not hold 32768 bytes of new data

Post by sven »

SteveGoetze wrote:Yes, this was fixed in the 2.0.1 release.
thanks for info. That's one more reason to start with migration ;)
Post Reply