zowe / zlux

The top-level superproject for zLUX. zLUX includes the Zowe Desktop framework in addition to several built-in apps and an example server implementation.
Eclipse Public License 2.0
39 stars 42 forks source link

Zowe Desktop Node 18 issues #973

Open skurnevich opened 1 year ago

skurnevich commented 1 year ago

Tried to run Zowe Desktop with node v18.12.1, and the Editor, IP explorer, and VT terminal stopped working, in the logs, i see multiple handshake failure alerts

2023-05-19 12:40:59.877 <ZWED:67503643> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/user-info/ failed.  Error: write EPROTO 3EF3900000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:00.546 <ZWED:67503643> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/unixfile/contents/?responseType=raw failed.  Error: write EPROTO 3EF3900000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:09.121 <ZWED:396041> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/ZLUX/plugins/org.zowe.explorer-ip/services/ipExplorer/gettcpipname failed.  Error: write EPROTO 3E39280000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:09.645 <ZWED:396041> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/ZLUX/plugins/org.zowe.explorer-ip/services/ipExplorer/*/info failed.  Error: write EPROTO 3E39280000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:09.647 <ZWED:396041> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/ZLUX/plugins/org.zowe.explorer-ip/services/ipExplorer/*/connections failed.  Error: write EPROTO 3E39280000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:13.409 <ZWED:67503643> ZWESVUSR INFO (org.zowe.terminal.proxy:tn3270data,terminalProxy.js:762) ZWED0106I - Saw Websocket request, method=GET
2023-05-19 12:41:13.761 <ZWED:67503643> ZWESVUSR INFO (org.zowe.terminal.proxy:tn3270data,terminalProxy.js:494) ZWED0101I - [Host=hostname, Port=23, ClientIP=10.175.11.21] Connected. Total terminals connected: 1
2023-05-19 12:41:13.761 <ZWED:67503643> ZWESVUSR INFO (org.zowe.terminal.proxy:tn3270data,terminalProxy.js:497) ZWED0102I - Total TN3270 terminals connected: 1
2023-05-19 12:41:14.845 <ZWED:396041> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/ZLUX/plugins/org.zowe.terminal.tn3270/services/statediscovery/zosDiscovery/system/tn3270?luname=A32XX029 failed.  Error: write EPROTO 3E39280000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
2023-05-19 12:41:15.455 <ZWED:396041> ZWESVUSR WARN (_zsf.proxy,proxy.js:129) ZWED0040W - Callservice: Service call to hostname:7557/ZLUX/plugins/org.zowe.terminal.tn3270/services/statediscovery/zosDiscovery/system/tn3270?luname=A32XX029 failed.  Error: write EPROTO 3E39280000000001:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1600:SSL alert number 40
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:96:16) {
  errno: -1148,
  code: 'EPROTO',
  syscall: 'write'
}
1000TurquoisePogs commented 1 year ago

I'm not sure if this is the reason, but don't use v18.12.1. It has a known issue in which it'll crash at a very predictable amount of time after doing enough network requests.

v18.14.2 seems to work, although zowe has no official support for v18 yet, I think we should work towards that.

AdarshdeepCheema commented 1 year ago

Just an FYI. I cannot run tests in Explorer-JES, MVS, USS when using node 18 To reproduce: clone the explorer code and try npm run test