zowe-cli: zowe files download fails with Error 500 but reports succesfull download.

Client version:

 zowe --version
2.31.0

I’ve observed this with relatively big files. Console output:

Data set downloaded successfully.
Destination: ./data/cmnt22.unl

But the last register (line) in the file contains:

ACD 100806      Error 500: java.io.IOException: Error response could not be sent to client.  See log for details.

(The ACD 100806 is part of the record being transmitted when the problem happened)

This is the content of the SYSPRINT file in the z/OS job:

[15:24:36.163443] ServletDispatcher[I]: Received request: GET /ds/T8864.U0G.CMNT22
 [15:24:36.166498] ServletDispatcher[I]: z/OSMF transaction: tx000000000000DB8C
 [15:24:36.168191] ServletDispatcher[I]: Invoking Servlet: SELECT  PGM(IZUGGTDS) PARM(-LI,t -q 393231 -r 0x3e44a298 )
 [15:26:27.306967] servletMain[E]: Unable to send exception
 [15:26:27.307028] TsoServletException[E]: TsoServletException - CATEGORY/RC/REAS=0x2/0x4/0x5 ServletMsgQ::sendOutputChunk(Message
 &, bool) illegal state
 [15:26:27.307044] TsoServletException[E]: TsoServletException - Details:
 [15:26:27.307051] TsoServletException[E]: Output_Sent
 [15:26:27.307056] TsoServletException[E]:   1 3E6007A8+00000628 ServletMsgQ::sendOutputChunk(Message&,bool)
   2 3E5D77C8+0000013E ServletOutputStream::sendMessage(bool)
   3 3E60E0C0+000004DC TsoServlet::sendException(TsoServletException&)
   4 3E60D1A0+0000033A TsoServlet::run()
   5 3E60CB78+00000386 main
   6 0BACC928+0000127E CEEVROND
   7 3DD6AB90+000000B4 EDCZHINV
   8 0B964410+000001C6 CEEBBEXT

I understand a long download can fail because of network problems (it shoud not, anyway!), my main compaint is the client part believes the download has succeed and appends the error message to the downloaded file!

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

To confirm that the issue still exists, please upgrade to the newest version of the lts-incremental distribution of Zowe CLI (version 2.36.1).

If the issue still persists there, please try the active development version of Zowe CLI (version 6.6.3). This version should have improved support for downloading large files.

Hi,

I’ve opened a z/OSMF restfile issue at IBM., i will tell you the conclusions.

Regards

Hi,

Of course,

  • I’m trying to download a dataset (txt) with this caracteristics:

Data Set Name . . . . : SYST.TEMP.WLMXGB
Allocated tracks . : 4,345
Allocated extents . : 3
Device type . . . . : 3390
Organization . . . : PS Current Utilization
Record format . . . : FB Used tracks . . . . : 4,345
Record length . . . : 100 Used extents . . . : 3
Block size . . . . : 27900
1st extent tracks . : 22
Secondary tracks . : 15000 Data set name type : LARGE SMS Compressible . : NO

  • And the command responds satisfactorily however in the destination the file is cut and ends with: Error 500: java.io.IOException: Error response could not be sent to client. See log for details.

D:\APPSYS\ZOWE\npm>zowe zos-files --zosmf-profile CTA1POCZOWE dl ds “SYST.TEMP.WLMXGB” Data set downloaded successfully. Destination: syst/temp/wlmxgb.txt

  • As you see, the origin is Data set and the file size is about 250MB.

       Regards
    

Thank you.