<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Buffer error when using FTP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138019#M58558</link>
    <description>Thanks for your replies guys, lots of really useful information and suggestions.&lt;BR /&gt;&lt;BR /&gt;    In the case of this file, I resolved the issue by remembering that I had an old, unused Share out there that was created when testing Advanced Server, about 6 months ago.&lt;BR /&gt;&lt;BR /&gt;    Also, if the problem crops up again before I have pinned down a resolution, I also have Hoff's "zip it up" suggestion, which I hadn't thought of.&lt;BR /&gt;&lt;BR /&gt;    I will be investigating all of the suggestions you made, and I will return with any solution I come across.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Oct 2008 10:08:01 GMT</pubDate>
    <dc:creator>The Brit</dc:creator>
    <dc:date>2008-10-29T10:08:01Z</dc:date>
    <item>
      <title>Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138014#M58553</link>
      <description>When trying to FTP an XML file from Windows up to a VMS node, (running 8.3 Alpha, TCPIP services V5.6), I get the following error;&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; put IQI_INV_20081021_092000000.XML&lt;BR /&gt;&lt;BR /&gt;200 PORT command successful.&lt;BR /&gt;&lt;BR /&gt;150 Opening data connection for DSA17:[MISCXML_FTP.IQMETRIX.IN]IQI_INV_20081021_092000000.XML; (xx.xx.xx.xx,4113)&lt;BR /&gt;&lt;BR /&gt;550-RMS WRITE RTB record too large.&lt;BR /&gt;&lt;BR /&gt;550 !UL byte record too large for user's buffer&lt;BR /&gt;&lt;BR /&gt;ftp: 117200 bytes sent in 0.03Seconds 3780.65Kbytes/sec.&lt;BR /&gt;&lt;BR /&gt;If I send the file to another VMS machine (Alpha 7.3-2, TCPWare 5.7), I dont have a problem.&lt;BR /&gt;&lt;BR /&gt;The receiving User Accounts are identical on both VMS nodes.    Is there any system parameter of user quota, of TCPIP logical/quota I can set to allow a normal transfer to the node which is currently giving the error.&lt;BR /&gt;&lt;BR /&gt;   I tried transfering the file in binary, however it wrecked the formating.&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Tue, 28 Oct 2008 18:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138014#M58553</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-10-28T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138015#M58554</link>
      <description>In the typical case, this is just how the TCP/IP Server ftp server works with files with long records.   (IIRC, there was a discussion of the longest record length allowable under ftp one of the times this matter cropped up.)  &lt;BR /&gt;&lt;BR /&gt;As an alternative here, zip the input file, then toss it over via ftp binary, then (obviously) unzip it.&lt;BR /&gt;&lt;BR /&gt;The one thing here that gives me pause around the "standard" explanation is the number of bytes that did get transferred over.  Is it possible that the file isn't correctly terminated, or has some sort of a corruption or there is an unusually long record buried in there somewhere?</description>
      <pubDate>Tue, 28 Oct 2008 19:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138015#M58554</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-28T19:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138016#M58555</link>
      <description>Well, for starters, if it was all one records, then 117200 is too big. Anything over 32K is.&lt;BR /&gt;&lt;BR /&gt;8.3 + TCPIP 5.6 is radically different from 7.3 + TCPware 5.7. Different defaults may well be in place.&lt;BR /&gt;&lt;BR /&gt;As you hint yourself, You may want to check out some TCPIP$FTP.... logicals to influence those defaults as needed. See: &lt;A href="http://h71000.www7.hp.com/doc/83final/6526/6526pro_041.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/83final/6526/6526pro_041.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I tend to DUMP/BLOC=COUNT=1 the resulting file too 'see' whether it makes sense andf what the line terminator might be (LF, CR-LF). If you need further help, and the data allows that, then maybe you can attach a text file with a dump. Don't bother with a dump/record. That assumes a structure which might not be there.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I tried transfering the file in binary, however it wrecked the formating.&lt;BR /&gt;&lt;BR /&gt;Typically an XML file should be tranferred in ASCII mode as it sound like you tried. Make sur eyou explicitly specify that as a trial.&lt;BR /&gt;&lt;BR /&gt;Failing that, use BINARY mode, and dump as per above. The proceed to use $SET FILE/ATTRIBUTE=(RFM=xxx) to make it match what you see. xxx would be STMLF or just STM basd on what you see. You may want to set MRS and/or  LRL or just set those to 0&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2008 19:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138016#M58555</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-10-28T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138017#M58556</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;  Check the attributes of the file(s). My guess is your original file (the one getting errors) has an invalid "Longest Record Length" - LRL. It could 0, or at least less than the actual LRL. The FTP client is therefore working with false information, which breaks assumptions.&lt;BR /&gt;&lt;BR /&gt;  When you send the file to another node, RMS is creating the remote file. Since it sees all the records, it knows the real LRL and sets it correctly in the new copy. Now that FTP has correct information, the transfer is successful.&lt;BR /&gt;  &lt;BR /&gt;  If you know the correct LRL, you can set it with: &lt;BR /&gt;&lt;BR /&gt;$ SET FILE/ATTRIBUTE=(LRL:value) file&lt;BR /&gt;&lt;BR /&gt;or create a new file with:&lt;BR /&gt;&lt;BR /&gt;CONVERT old-file new-file&lt;BR /&gt;&lt;BR /&gt;This should ensure the LRL is correct.&lt;BR /&gt;&lt;BR /&gt;One other possibility (unlikely since I'm guessing the file is effectively human readable text), it's a stream_lf file, and there's a section that has more than 32767 bytes (the RMS maximum record length) between LF characters. Since this is an architectural issue, there's no simple fix. You'd need to find the extra long "record" and somehow break it into smaller pieces. &lt;BR /&gt;&lt;BR /&gt;There may be alternatives involving setting the file attributes to (say) fixed length, then sending the file in binary. This may then need the other end to fiddle with the attributues to "fix" the file (but then it's not clear what the other end is, or what it's expecting). &lt;BR /&gt;&lt;BR /&gt;As ever when transferring data between different systems, you sometimes need a deeper understanding of the exact format of your data in order to reconcile differences in expectations and assumptions.&lt;BR /&gt;&lt;BR /&gt;[FWIW - opinion follows:]  LRL is arguably an obsolete concept - it's original purpose was to give code a hint as to what size buffer is needed to process a file. This meant that the application would minimize resource consumption by not having to allocate buffers "big enough for all possibilities".&lt;BR /&gt;&lt;BR /&gt;  The idea has a flaw in that a file open for shared write may have longer records written to it after it was first opened by a reader, thus the LRL which was adequate when the file was first opened may be too small to hold newer records. Furthermore, on modern systems where memory is orders of magnitude cheaper than it was when RMS was architected, allocating a 32K buffer is nowhere near as extravagant as it once would have been considered.&lt;BR /&gt;&lt;BR /&gt;  From this, it could be considered that we should set the LRL of all files to 32768 and be done with it (as did the DECC RTL circa V6)? Well, on the other hand this is not necessarily a good idea. The classic example where this can hurt is SORT, which uses the LRL to allocate a sort table - one LRL sized entry for each record in the file. When LRL is set higher than the real LRL, SORT performance can be significantly degraded (though it may not be as significant these days with faster CPUs and more available memory).&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2008 19:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138017#M58556</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-10-28T19:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138018#M58557</link>
      <description>TCPIP$FTP_STREAMLF  If defined, the FTP server and client create files as RMS STREAM_LF files. The default is variable-length files.&lt;BR /&gt;&lt;BR /&gt;May be try this logical. What is the longest record on you Windows file ? What is used a line separator ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 29 Oct 2008 07:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138018#M58557</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-10-29T07:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138019#M58558</link>
      <description>Thanks for your replies guys, lots of really useful information and suggestions.&lt;BR /&gt;&lt;BR /&gt;    In the case of this file, I resolved the issue by remembering that I had an old, unused Share out there that was created when testing Advanced Server, about 6 months ago.&lt;BR /&gt;&lt;BR /&gt;    Also, if the problem crops up again before I have pinned down a resolution, I also have Hoff's "zip it up" suggestion, which I hadn't thought of.&lt;BR /&gt;&lt;BR /&gt;    I will be investigating all of the suggestions you made, and I will return with any solution I come across.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2008 10:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138019#M58558</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-10-29T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138020#M58559</link>
      <description>Confirm this isn't a case of GIGO, too.  &lt;BR /&gt;&lt;BR /&gt;XML usually doesn't have gigantic text records.  (I don't know off-hand if there's an architected or recommended longest record, though.)&lt;BR /&gt;&lt;BR /&gt;I have encountered some environments that seemingly go out of their way to generate ill-formed XML.&lt;BR /&gt;&lt;BR /&gt;Fire up one of the various xml verification tools that are around the 'net, or an xml pretty printer, and see if that helps identify the problem.  This would be on the source platform; prior to the transfer.&lt;BR /&gt;&lt;BR /&gt;With Mac OS X, Linux or various Unix distros, there are tools baked into the distributions; for this case, tools akin to xmlwf and xmllint are part of most any distribution, and would be obvious choices. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2008 13:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138020#M58559</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-29T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138021#M58560</link>
      <description>&amp;gt; [...] Hoff's "zip it up" suggestion [...]&lt;BR /&gt;&lt;BR /&gt;Zip and UnZip also have options which can be&lt;BR /&gt;used to get inappropriate CR and/or LF line&lt;BR /&gt;endings translated, too.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; When trying to FTP an XML file [...]&lt;BR /&gt;&lt;BR /&gt;ASCII or binary?  _You_ may know that it's&lt;BR /&gt;text, but binary may avoid the record-length&lt;BR /&gt;trouble.  You'd probably need to do some SET&lt;BR /&gt;FILE /ATTRIBUTES stuff to make it look like&lt;BR /&gt;text again on the VMS side, however.</description>
      <pubDate>Wed, 29 Oct 2008 20:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138021#M58560</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-29T20:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138022#M58561</link>
      <description>Thanks for the help guys,&lt;BR /&gt;&lt;BR /&gt;I guess my final question is;&lt;BR /&gt;&lt;BR /&gt;Why would the transfer work when transfering from &lt;BR /&gt;&lt;BR /&gt;Windows --&amp;gt; VMS(7.3-2) host running TCPWARE V5.7&lt;BR /&gt;&lt;BR /&gt;but fail when transfering from &lt;BR /&gt;&lt;BR /&gt;Windows --&amp;gt; VMS (8.3) host running TCPIP Services V5.6&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Thu, 06 Nov 2008 15:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138022#M58561</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-11-06T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138023#M58562</link>
      <description>&amp;gt; Why would the transfer [...]&lt;BR /&gt;&lt;BR /&gt;Well, duh.  Maybe because the software's&lt;BR /&gt;different?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ASCII or binary?&lt;BR /&gt;&lt;BR /&gt;Still wondering...</description>
      <pubDate>Thu, 06 Nov 2008 16:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138023#M58562</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-11-06T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138024#M58563</link>
      <description>Welcome to the world of Internet standards and protocols and of RFCs and of de facto standards, and particularly where multiple incompatible and fully standards- or RFC-compliant methods can freely co-exist and (mostly) interoperate.  &lt;BR /&gt;&lt;BR /&gt;At its core, these inconsistencies and the "slop" in the various documents are why various vendors have or participate in "connect-a-thons" and such.  And this is why an early or a dominant implementation might be incompatible with the standard or with the RFC, and then the other vendors can then choose to comply with the standard or comply with earlier (and buggy) implementations.  (There are cases here with Microsoft browsers and ftp and OpenVMS servers won't play well together, if you want a specific citation.)&lt;BR /&gt;&lt;BR /&gt;Welcome to the second-level world of ftp on OpenVMS, where different file transfer sequences can appear; where different record transfer modes can be negotiated depending on the capabilities of the client and the server.  Various OpenVMS IP stacks have had longstanding implementation differences with STRU O VMS and VMS PLUS, for instance.&lt;BR /&gt;&lt;BR /&gt;Further, the ftp design itself is from a different era of IP and of Internet networking; it has a number of inherent weaknesses including issues with performance and with firewalls.   Not to mention its use of cleartext authentication.  (ssh and sftp are better choices here.)&lt;BR /&gt;&lt;BR /&gt;Per a longstanding industry maxim: if some particular product were truly "identical", then it would not be marketed as being "compatible".  By accepted industry definition, "compatible" means "different".  And ftp is compatible.</description>
      <pubDate>Thu, 06 Nov 2008 18:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138024#M58563</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-11-06T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer error when using FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138025#M58564</link>
      <description>Thanks Guys.</description>
      <pubDate>Thu, 20 Aug 2009 12:40:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/buffer-error-when-using-ftp/m-p/5138025#M58564</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2009-08-20T12:40:23Z</dc:date>
    </item>
  </channel>
</rss>

