MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Bug] ECONNRESET

Open gariac opened this issue 6 months ago • 5 comments

What did I do

yarn run electron:build

What happened

yarn run v1.22.21 $ yarn run gen:version && vue-cli-service electron:build --win --linux --mac $ node ./scripts/gen-version.js INFO Bundling render process:

⠋ Building modern bundle for production...Starting type checking service... Using 1 worker with 2048MB memory limit ⠦ Building modern bundle for production...node:events:493 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -104, code: 'ECONNRESET', syscall: 'read'

Expected

What is the expected result.

Environment

  • OS: OS version, Opensuse leap 15.4 Linux linux-yxjo 5.14.21-150400.24.63-default #1 SMP PREEMPT_DYNAMIC Tue May 2 15:49:04 UTC 2023 (fd0cc4f) x86_64 x86_64 x86_64 GNU/Linux
  • MQTTX version, e.g. v1.5.0

More detail

More detail include log information or screenshot

gariac avatar Dec 17 '23 10:12 gariac

Hello @gariac,

Thank you for reporting the ECONNRESET error issue. This error typically indicates that a network socket connection was unexpectedly closed. To assist you better, could you please provide the following information:

  1. Are you using a proxy or firewall that might interfere with your network connections?
  2. Is this issue persistent, or does it occur intermittently?
  3. Please try running the build process again with a stable internet connection.
  4. What version of Node.js are you currently using?

Meanwhile, I suggest the following steps:

  • Ensure that all your dependencies are up to date.
  • Clear the yarn cache (yarn cache clean) and reinstall the node modules.
  • Configure npm/yarn to work with your proxy settings if you are using a proxy.

We will further investigate this issue and keep you updated. Your detailed report is very helpful for our diagnosis. Thank you for contributing to the MQTTX project!

ysfscream avatar Dec 18 '23 15:12 ysfscream

nodejs21 pulled from repo firewall turned off no proxy. full system update done. yarn cache clean done, then I reran everything. Same problem. No connectivity problem. I just did 4Gbytes of downloads for the system update.

Is there some domain or IP address I can ping to see if it is reachable.

I don't recall this message but I looks like the script fixes the issue: `

yarn install

yarn install v1.22.21 [1/6] Validating package.json... [2/6] Resolving packages... warning Resolution field "[email protected]" is incompatible with requested version "electron-builder@^22.2.0" success Already up-to-date. $ electron-builder install-app-deps • electron-builder version=23.0.2 • rebuilding native dependencies [email protected] platform=linux arch=x64 • rebuilding native dependency name=sqlite3 version=5.0.4 Done in 2.75s.

`

gariac avatar Dec 20 '23 09:12 gariac

I noticed that you might be using a newer version of Node.js. MQTTX's tech stack is more compatible with older versions of Node.js, so we recommend using Node.js v16. This could be a reason for the issues you're encountering.

See 👉 MQTTX Development.

ysfscream avatar Dec 20 '23 09:12 ysfscream

I forget the version I used initially. When I got the error I just pulled the latest rev. I can attempt to downgrade to 16 but I doubt this is the problem.

What is this IP or domain that you believe I can't reach that is causing the error. Basically I don't understand the error message. In the meantime I will attempt to downgrade.

gariac avatar Dec 20 '23 09:12 gariac

The downgrade isn't working. Basically it messed things up. I will need to go to the opensuse forum to fix the problem. I got all sorts of error messages from the package manager. It accepted nodejs17. However I think I have modules from more than on rev installed.

` yarn run electron:build yarn run v1.22.21 $ yarn run gen:version && vue-cli-service electron:build --win --linux --mac $ node ./scripts/gen-version.js INFO Bundling render process:

⠋ Building modern bundle for production...Starting type checking service... Using 1 worker with 2048MB memory limit ⠼ Building modern bundle for production...node:events:493 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -104, code: 'ECONNRESET', syscall: 'read' }

Node.js v21.1.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

` See how node.js v21.1.0 shows up.

gariac avatar Dec 20 '23 09:12 gariac