Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: solve autoUpdater network errors #2405

Open
SgtPooki opened this issue Feb 4, 2023 · 2 comments
Open

bug: solve autoUpdater network errors #2405

SgtPooki opened this issue Feb 4, 2023 · 2 comments
Labels
area/network Networking issues such as timeouts, etc. area/updates Issues related to manual and automatic updates area/windows Windows effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up topic/windows Windows specific

Comments

@SgtPooki
Copy link
Member

SgtPooki commented Feb 4, 2023

I was browsing through countly for errors with ipfs-desktop, I searched for errors that have impacted at least 100 users occurring since the beginning of the year (from 2023-01-01 to 2023-02-04 (today)) and got the following output:

_id error is_new is_resolved lastTs latest_version name nonfatal not_os_specific os reports users session_count session_max session_min session_total javascript
bd50650212b263b83192daab491abbdc7142e342 [updater] Error: net::ERR_NETWORK_IO_SUSPENDED TRUE FALSE 1675530408 0.0 [updater] Error: net::ERR_NETWORK_IO_SUSPENDED TRUE TRUE Windows_NT 2610 473 1305 755 1 10087 TRUE
d69cd40909b2b631885757f09603c26194aef916 [updater] Error: net::ERR_NETWORK_CHANGED TRUE FALSE 1675523500 0.0 [updater] Error: net::ERR_NETWORK_CHANGED TRUE TRUE Windows_NT 1936 482 821 456 1 12483 TRUE
f0f8891b3e2aa1a1ab5f8924a1922b710418af07 FetchError: request to http://127.0.0.1:5001/api/v0/id failed, reason: net::ERR_NETWORK_CHANGED at ClientRequest. (C:\Program Files\IPFS Desktop\resources\app.asar\node_modules\electron-fetch\lib\index.js:1391:14) at ClientRequest.emit (node:events:390:28) at ClientRequest._die (node:electron/js2c/browser_init:101:8391) at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7128) at SimpleURLLoaderWrapper.emit (node:events:390:28) TRUE FALSE 1675522397 0.0 FetchError: request to http://127.0.0.1:5001/api/v0/id failed, reason: net::ERR_NETWORK_CHANGED TRUE TRUE Windows_NT 1735 180 1257 160 1 8816 TRUE
ef9754948e3c28f0051618bf3af4494b62daf1ad go-ipfs version: 0.7.0 Repo version: 10 System version: amd64/windows Golang version: go1.14.4 TRUE FALSE 1675509530 0.0 Error: Initializing daemon... TRUE TRUE Windows_NT 1391 386 307 553 1 3923 TRUE
1da0920d591f40abe98a3d4bdb7121700ddb2a4b [updater] Error: net::ERR_NAME_NOT_RESOLVED TRUE FALSE 1675490995 0.0 [updater] Error: net::ERR_NAME_NOT_RESOLVED TRUE TRUE Windows_NT 2378 877 885 637 1 14969 TRUE
72c08ab879452fd9064c433f47e06530a813264d [updater] Error: net::ERR_INTERNET_DISCONNECTED TRUE FALSE 1675457974 0.0 [updater] Error: net::ERR_INTERNET_DISCONNECTED TRUE TRUE Darwin 1822 501 735 397 1 12089 TRUE
7d6abf56bb7fdff6d162afcd6088d3869900deb0 [updater] Error: net::ERR_CONNECTION_RESET TRUE FALSE 1675197270 0.0 [updater] Error: net::ERR_CONNECTION_RESET TRUE TRUE Darwin 539 140 142 730 1 3476 TRUE
019554576dd54512cadc328567acd9f20698d9e9 SyntaxError: Unexpected end of JSON input at JSON.parse () at Daemon._getConfig (/snap/ipfs-desktop/23/resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:303:19) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async Daemon.init (/snap/ipfs-desktop/23/resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:129:9) at async spawn (/snap/ipfs-desktop/23/resources/app.asar/src/daemon/daemon.js:66:3) at async module.exports (/snap/ipfs-desktop/23/resources/app.asar/src/daemon/daemon.js:73:31) at async startIpfs (/snap/ipfs-desktop/23/resources/app.asar/src/daemon/index.js:54:15) at async module.exports (/snap/ipfs-desktop/23/resources/app.asar/src/daemon/index.js:116:3) at async run (/snap/ipfs-desktop/23/resources/app.asar/src/index.js:71:5) TRUE FALSE 1673327800 0.0 SyntaxError: Unexpected end of JSON input TRUE TRUE Windows_NT 194 129 7 25 1 43 TRUE

We can "ignore" two of those:

  • snap installs (no longer supported)
  • Extremely out-of-date go-ipfs version (0.7.0)

And I believe all of the rest (except for one) are errors with the internet/network during the auto-updater process.

We should implement something similar to electron-userland/electron-builder#2398 (comment) to handle the electron-updater failures.

@SgtPooki SgtPooki added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Feb 4, 2023
@github-project-automation github-project-automation bot moved this to Needs Grooming in IPFS-GUI (PL EngRes) Feb 4, 2023
@SgtPooki SgtPooki added exp/intermediate Prior experience is likely helpful P2 Medium: Good to have, but can wait until someone steps up area/windows Windows effort/days Estimated to take multiple days, but less than a week area/updates Issues related to manual and automatic updates topic/windows Windows specific area/network Networking issues such as timeouts, etc. and removed need/triage Needs initial labeling and prioritization labels Feb 4, 2023
@SgtPooki SgtPooki moved this from Needs Grooming to Planned / Backlog in IPFS-GUI (PL EngRes) Feb 4, 2023
@Leojack11
Copy link

Don't know how to do these things

@SgtPooki
Copy link
Member Author

I think the main action item here is to stop emitting errors that are normal IPFS network errors, or are normal laptop user networking errors, to our metrics server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/network Networking issues such as timeouts, etc. area/updates Issues related to manual and automatic updates area/windows Windows effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up topic/windows Windows specific
Projects
No open projects
Status: Planned / Backlog
Development

No branches or pull requests

2 participants