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

macOS 10.x fails to start with Error (no message) #2038

Closed
lfnpcsoft opened this issue Mar 16, 2022 · 25 comments
Closed

macOS 10.x fails to start with Error (no message) #2038

lfnpcsoft opened this issue Mar 16, 2022 · 25 comments
Labels
area/macos MacOS kind/bug A bug in existing code (including security flaws) need/analysis Needs further analysis before proceeding need/community-input Needs input from the wider community P1 High: Likely tackled by core team if no one steps up

Comments

@lfnpcsoft
Copy link

lfnpcsoft commented Mar 16, 2022

I opened IPFS Desktop when a windows jumps out reading "IPFS node has encountered an error and startup could not be completed:" and macOS also tells me the application has some problems.

How to solve?

Specifications

  • OS: darwin
  • IPFS Desktop Version: 0.20.2
  • Electron Version: 17.1.0
  • Chrome Version: 98.0.4758.102

Error

Error
    at errorTemplate (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/migration-prompt.js:78:49)
    at loadWindow (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/migration-prompt.js:115:26)
    at module.exports (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/migration-prompt.js:120:3)
    at startIpfsWithLogs (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/daemon.js:158:9)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async module.exports (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/daemon.js:174:17)
    at async startIpfs (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:46:17)
    at async restartIpfs (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:100:5)
    at async Object.restartIpfs (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:33:5)

Window Picture

@lfnpcsoft lfnpcsoft added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Mar 16, 2022
@ipfs ipfs deleted a comment from welcome bot Mar 21, 2022
@lidel lidel added need/analysis Needs further analysis before proceeding and removed need/triage Needs initial labeling and prioritization labels Mar 21, 2022
@lidel
Copy link
Member

lidel commented Mar 21, 2022

@lfnpcsoft you mentioned "macOS also tells me the application has some problems." – mind providing more details?
What version of macOS are you running? Is the issue resolved after restarting IPFS Desktop, or happens every time?
A screenshot or combined.log would be fantastic 🙏

@lidel lidel added the need/author-input Needs input from the original author label Mar 21, 2022
@lidel lidel changed the title [gui error report] Error [gui error report] Error (no message) Mar 22, 2022
@lidel
Copy link
Member

lidel commented Mar 22, 2022

#2056 (comment) mentions macOS v10.14.6 (Mojave)
Would be good to confirm that other people experiencing the problem are running the same version.

@lidel lidel added area/macos MacOS need/community-input Needs input from the wider community labels Mar 22, 2022
@lidel
Copy link
Member

lidel commented Mar 23, 2022

#2040 (comment) mentions problem occurring after reinstall:

this is an error I got after I updated ipfs desktop on mac. This is excatly what I did; I deleted ipfs and re downloaded and reinstalled. Upon attempting to launch the error appears

@LordWilliamsr mind providing more info on this?

  1. were you reinstalling the same version, or a different one? which?
  2. was it an upgrade or a downgrade?
  3. did you remove .ipfs (IPFS_PATH dir) or kept it? (if you dont know, means you kept it)

@LordWilliamsr
Copy link

LordWilliamsr commented Mar 23, 2022

I was reinstalling a newer version for mac 0.20.2
This was an upgrade
I did not remove .ipfs

@lidel
Copy link
Member

lidel commented Mar 23, 2022

#2060 (comment) provides more signal that the issue is related to old macOS 10.x:

I've spent the last several days upgrading/updating my ENTIRE Mac system. Main computer is Mid-2010 Mac Pro tower. I've been able to install macOS 10.15.7 (Catalina)…the fastest I can put on my machine.

@lidel
Copy link
Member

lidel commented Mar 23, 2022

@SgtPooki @hacdias do you have an older macOS box (10.x) at hand to test this?
I was not able to reproduce, all migrations run smooth on my mac mini with macOS 12.x – I have no other machine for tests.

@lidel lidel added P1 High: Likely tackled by core team if no one steps up and removed need/author-input Needs input from the original author labels Mar 23, 2022
@lidel lidel changed the title [gui error report] Error (no message) macOS 10.x fails to start with Error (no message) Mar 23, 2022
@lidel lidel pinned this issue Mar 23, 2022
@hacdias
Copy link
Member

hacdias commented Mar 23, 2022

@lidel I also don't have older macOS versions. It also works here.

@lidel
Copy link
Member

lidel commented Mar 24, 2022

I've run our basic end-to-end tests on macos-10.15 (#2063) but it passed fine.

Empty terminal means the logs are never updated in variable here:

let logs = ''

The migration console window is opened with isErrored=true at some point, which suggests we should add some debugging around isSpawnedDaemonDead – either this check is broken on macOS 10.x OR it works fine, but our daemon fails to start without producing any error (or it does not get passed by js-ipfsd-ctl in time).

Ask for help: anyone with macOS 10.x and 5min of spare time?

Someone experiencing this error could install command line on macOS 10.x and see if ipfs daemon started manually in a terminal runs fine (or not).

The output of this test this will inform our next steps.

@sd70mac
Copy link

sd70mac commented Mar 24, 2022

I've run our basic end-to-end tests on macos-10.15 (#2063) but it passed fine.

Empty terminal means the logs are never updated in variable here:

let logs = ''

The migration console window is opened with isErrored=true at some point, which suggests we should add some debugging around isSpawnedDaemonDead – either this check is broken on macOS 10.x OR it works fine, but our daemon fails to start without producing any error (or it does not get passed by js-ipfsd-ctl in time).

Ask for help: anyone with macOS 10.x and 5min of spare time?

Someone experiencing this error could install command line on macOS 10.x and see if ipfs daemon started manually in a terminal runs fine (or not).

The output of this test this will inform our next steps.

I just tried ipfs daemon and after it reaches the line Daemon is ready it gives error messages of the type 2022-03-23T22:17:19.667-0500 ERROR tcp-tpt go-tcp-transport@v0.4.0/tcp.go:52 failed to enable TCP keepalive {"error": "set tcp4 192.168.2.216:4001->195.206.185.205:4001: setsockopt: invalid argument"} . The IP addresses change in the second field (i.e.195.206.185.205:4001) change, but the errors are otherwise identical to each other. I can provide more output if you really want.

Edit: I'm on Mojave 10.14.6 by the way.

@mlgx
Copy link

mlgx commented Mar 24, 2022

I'm on 10.15.7 and I have the same issue with versions 0.19.1 and 0.20.3.
Versions 0.18.1 and 0.17.0 work fine. Go-ipfs 0.12.0 also works.
Removing .ipfs and .ipfs-desktop folders doesn't help.

Here is a complete crash report: https://gist.github.com/mlgx/c4b984046a03b1597fd8609274f1eae7

IPFS-Desktop should not force updates. It makes reverting to an older version impossible.

@MattJohnsonMusic
Copy link

I'm not very helpful in trying to figure out this issue, but AM wanting IPFS Desktop app to work (please) on macOS 10.15.7.
Hoping support for older Mac owners/users isn't totally dropped.
REALLY appreciate you all for continuing to figure this out.
Peace, Matt

This was referenced Mar 25, 2022
@MattJohnsonMusic
Copy link

MattJohnsonMusic commented Mar 25, 2022

Attaching Combined.log and Error.log. Hoping that helps figure this out:

Click to expand
2022-03-23T13:53:20.112Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T13:53:22.029Z info: [web ui] window ready
2022-03-23T13:53:22.030Z info: [web ui] navigate to /
2022-03-23T13:53:22.040Z info: [tray] starting
2022-03-23T13:53:22.081Z info: [tray] started
2022-03-23T13:53:22.081Z info: [ipfsd] start daemon STARTED
2022-03-23T13:53:22.146Z error: Unexpected end of JSON input: 
2022-03-23T13:53:27.991Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T13:53:29.367Z info: [web ui] window ready
2022-03-23T13:53:29.368Z info: [web ui] navigate to /
2022-03-23T13:53:29.377Z info: [tray] starting
2022-03-23T13:53:29.413Z info: [tray] started
2022-03-23T13:53:29.414Z info: [ipfsd] start daemon STARTED
2022-03-23T13:53:33.108Z info: [daemon] IPFS_PATH: /Users/mattjohnsonmusic/.ipfs
2022-03-23T13:53:33.109Z info: [daemon] PeerID:    12D3KooWJZKCji9Ff35GXaZtzRof93AaW1fHLAHENnjLQ112Ge7L
2022-03-23T13:53:33.184Z info: [ipfsd] start daemon FINISHED 3.7701138110002503s
2022-03-23T13:53:33.207Z info: [automatic gc] enabled
2022-03-23T13:53:33.208Z info: [pubsub] disabled
2022-03-23T13:53:33.208Z info: [ipns over pubsub] disabled
2022-03-23T13:53:33.218Z info: [launch on startup] disabled
2022-03-23T13:53:34.340Z info: [updater] update not available
2022-03-23T13:55:15.317Z info: [ipfsd] stop daemon STARTED
2022-03-23T13:55:19.699Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T13:55:21.031Z info: [web ui] window ready
2022-03-23T13:55:21.032Z info: [web ui] navigate to /
2022-03-23T13:55:21.040Z info: [tray] starting
2022-03-23T13:55:21.078Z info: [tray] started
2022-03-23T13:55:21.079Z info: [ipfsd] start daemon STARTED
2022-03-23T13:55:21.303Z error: 
2022-03-23T13:55:21.327Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T13:55:21.349Z info: [automatic gc] enabled
2022-03-23T13:55:21.350Z info: [pubsub] disabled
2022-03-23T13:55:21.351Z info: [ipns over pubsub] disabled
2022-03-23T13:55:21.360Z info: [launch on startup] disabled
2022-03-23T13:55:26.706Z info: [updater] update not available
2022-03-23T13:56:43.554Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T13:56:44.885Z info: [web ui] window ready
2022-03-23T13:56:44.886Z info: [web ui] navigate to /
2022-03-23T13:56:44.894Z info: [tray] starting
2022-03-23T13:56:44.932Z info: [tray] started
2022-03-23T13:56:44.933Z info: [ipfsd] start daemon STARTED
2022-03-23T13:56:45.009Z error: 
2022-03-23T13:56:45.028Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T13:56:45.048Z info: [automatic gc] enabled
2022-03-23T13:56:45.049Z info: [pubsub] disabled
2022-03-23T13:56:45.050Z info: [ipns over pubsub] disabled
2022-03-23T13:56:45.058Z info: [launch on startup] disabled
2022-03-23T13:56:49.062Z info: [updater] update not available
2022-03-23T14:04:14.138Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T14:04:15.491Z info: [web ui] window ready
2022-03-23T14:04:15.492Z info: [web ui] navigate to /
2022-03-23T14:04:15.500Z info: [tray] starting
2022-03-23T14:04:15.537Z info: [tray] started
2022-03-23T14:04:15.538Z info: [ipfsd] start daemon STARTED
2022-03-23T14:04:15.624Z error: 
2022-03-23T14:04:15.643Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T14:04:15.663Z info: [automatic gc] enabled
2022-03-23T14:04:15.664Z info: [pubsub] disabled
2022-03-23T14:04:15.665Z info: [ipns over pubsub] disabled
2022-03-23T14:04:15.673Z info: [launch on startup] disabled
2022-03-23T14:04:19.978Z info: [updater] update not available
2022-03-23T14:11:12.295Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T14:11:20.497Z info: [web ui] window ready
2022-03-23T14:11:20.498Z info: [web ui] navigate to /
2022-03-23T14:11:20.507Z info: [tray] starting
2022-03-23T14:11:20.546Z info: [tray] started
2022-03-23T14:11:20.547Z info: [ipfsd] start daemon STARTED
2022-03-23T14:11:20.647Z error: 
2022-03-23T14:11:20.665Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T14:11:20.685Z info: [automatic gc] enabled
2022-03-23T14:11:20.686Z info: [pubsub] disabled
2022-03-23T14:11:20.687Z info: [ipns over pubsub] disabled
2022-03-23T14:11:20.698Z info: [launch on startup] disabled
2022-03-23T14:11:24.893Z info: [updater] update not available
2022-03-23T16:45:22.925Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T16:45:24.739Z info: [web ui] window ready
2022-03-23T16:45:24.740Z info: [web ui] navigate to /
2022-03-23T16:45:24.748Z info: [tray] starting
2022-03-23T16:45:24.791Z info: [tray] started
2022-03-23T16:45:24.791Z info: [ipfsd] start daemon STARTED
2022-03-23T16:45:24.887Z error: 
2022-03-23T16:45:24.904Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T16:45:24.930Z info: [automatic gc] enabled
2022-03-23T16:45:24.931Z info: [pubsub] disabled
2022-03-23T16:45:24.932Z info: [ipns over pubsub] disabled
2022-03-23T16:45:24.944Z info: [launch on startup] disabled
2022-03-23T20:40:39.551Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-23T20:40:41.520Z info: [web ui] window ready
2022-03-23T20:40:41.520Z info: [web ui] navigate to /
2022-03-23T20:40:41.529Z info: [tray] starting
2022-03-23T20:40:41.572Z info: [tray] started
2022-03-23T20:40:41.572Z info: [ipfsd] start daemon STARTED
2022-03-23T20:40:41.666Z error: 
2022-03-23T20:40:41.684Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T20:40:41.705Z info: [automatic gc] enabled
2022-03-23T20:40:41.706Z info: [pubsub] disabled
2022-03-23T20:40:41.707Z info: [ipns over pubsub] disabled
2022-03-23T20:40:41.717Z info: [launch on startup] disabled
2022-03-23T20:40:46.135Z info: [updater] update not available
2022-03-24T14:14:31.656Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-24T14:14:33.455Z info: [web ui] window ready
2022-03-24T14:14:33.456Z info: [web ui] navigate to /
2022-03-24T14:14:33.464Z info: [tray] starting
2022-03-24T14:14:33.504Z info: [tray] started
2022-03-24T14:14:33.505Z info: [ipfsd] start daemon STARTED
2022-03-24T14:14:33.599Z error: 
2022-03-24T14:14:33.620Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-24T14:14:33.640Z info: [automatic gc] enabled
2022-03-24T14:14:33.641Z info: [pubsub] disabled
2022-03-24T14:14:33.642Z info: [ipns over pubsub] disabled
2022-03-24T14:14:33.651Z info: [launch on startup] disabled
2022-03-24T14:14:37.893Z info: [updater] update not available
2022-03-24T16:13:24.265Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-24T16:13:25.575Z info: [web ui] window ready
2022-03-24T16:13:25.575Z info: [web ui] navigate to /
2022-03-24T16:13:25.584Z info: [tray] starting
2022-03-24T16:13:25.620Z info: [tray] started
2022-03-24T16:13:25.621Z info: [ipfsd] start daemon STARTED
2022-03-24T16:13:25.709Z error: 
2022-03-24T16:13:25.726Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-24T16:13:25.748Z info: [automatic gc] enabled
2022-03-24T16:13:25.748Z info: [pubsub] disabled
2022-03-24T16:13:25.749Z info: [ipns over pubsub] disabled
2022-03-24T16:13:25.757Z info: [launch on startup] disabled
2022-03-24T16:13:30.319Z info: [updater] update not available
2022-03-25T14:37:51.919Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-25T14:37:53.553Z info: [web ui] window ready
2022-03-25T14:37:53.554Z info: [web ui] navigate to /
2022-03-25T14:37:53.563Z info: [tray] starting
2022-03-25T14:37:53.603Z info: [tray] started
2022-03-25T14:37:53.604Z info: [ipfsd] start daemon STARTED
2022-03-25T14:37:53.696Z error: 
2022-03-25T14:37:53.713Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-25T14:37:53.735Z info: [automatic gc] enabled
2022-03-25T14:37:53.736Z info: [pubsub] disabled
2022-03-25T14:37:53.737Z info: [ipns over pubsub] disabled
2022-03-25T14:37:53.745Z info: [launch on startup] disabled
2022-03-25T14:37:56.386Z info: [updater] update not available
2022-03-25T14:40:07.960Z info: [meta] logs can be found on /Users/mattjohnsonmusic/Library/Application Support/IPFS Desktop
2022-03-25T14:40:09.248Z info: [web ui] window ready
2022-03-25T14:40:09.249Z info: [web ui] navigate to /
2022-03-25T14:40:09.257Z info: [tray] starting
2022-03-25T14:40:09.294Z info: [tray] started
2022-03-25T14:40:09.294Z info: [ipfsd] start daemon STARTED
2022-03-25T14:40:09.379Z error: 
2022-03-25T14:40:09.397Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-25T14:40:09.418Z info: [automatic gc] enabled
2022-03-25T14:40:09.418Z info: [pubsub] disabled
2022-03-25T14:40:09.419Z info: [ipns over pubsub] disabled
2022-03-25T14:40:09.429Z info: [launch on startup] disabled
2022-03-25T14:40:12.444Z info: [updater] update not available

*************
2022-03-23T13:53:22.146Z error: Unexpected end of JSON input: 
2022-03-23T13:55:21.303Z error: 
2022-03-23T13:55:21.327Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T13:56:45.009Z error: 
2022-03-23T13:56:45.028Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T14:04:15.624Z error: 
2022-03-23T14:04:15.643Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T14:11:20.647Z error: 
2022-03-23T14:11:20.665Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T16:45:24.887Z error: 
2022-03-23T16:45:24.904Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-23T20:40:41.666Z error: 
2022-03-23T20:40:41.684Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-24T14:14:33.599Z error: 
2022-03-24T14:14:33.620Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-24T16:13:25.709Z error: 
2022-03-24T16:13:25.726Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-25T14:37:53.696Z error: 
2022-03-25T14:37:53.713Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-25T14:40:09.379Z error: 
2022-03-25T14:40:09.397Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@lidel
Copy link
Member

lidel commented Mar 25, 2022

Thank you all, this is really useful. Seems that there is a problem where Electron (ipfs-desktop) spawns go-ipfs:

2022-03-23T13:56:45.028Z error: [ipfsd] start daemon Error:  

  

 Command was killed with SIGSEGV (Segmentation fault): /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs daemon --agent-version-suffix=desktop --migrate --enable-gc --routing=dhtclient 


    at makeError (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
crashed on child side of fork pre-exec

My gut feeling would be Electron bug, or that the binary at /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs is corrupted, but we would have to confirm that.

@MattJohnsonMusic @mlgx Would it be possible for you to upload that file somewhere, so we can compare sha512 checksums, just to confirm/refute this hypothesis?

@MattJohnsonMusic
Copy link

I think this is what you asked for. Let me know if not.
ipfs.zip

@lidel
Copy link
Member

lidel commented Mar 25, 2022

Hm.. checksum is different:

$ sha512sum ipfs  # from MattJohnsonMusic
94fb7e85a893a28083ebdeca974394b134ddf43ca43babe6be490c1f1f59f32c64424b330f9ed128bc9d64a7b72cf42a8104e4f62c73e0367dd406f5b28458f1


$ sha512sum go-ipfs/ipfs # from go-ipfs_v0.12.0_darwin-amd64.tar.gz
6b9aae97dc9c54476092ebb84644980e9c353a97187ee0e22e3b7c9c30cdd5676993cc4dc9786ac732ff1f91bc6475abffdefce1a58cfdd1336125d7787e4c94

@MattJohnsonMusic are you able to download https://dist.ipfs.io/go-ipfs/v0.12.0/go-ipfs_v0.12.0_darwin-amd64.tar.gz, unpack it and replace your broken ipfs with one from go-ipfs/ipfs in that .tar.gz ?

@MattJohnsonMusic
Copy link

Will give it a try…

@MattJohnsonMusic
Copy link

Forgive my ignorance, but have downloaded/expanded, now exactly WHAT line of code should I run in Terminal??

@MattJohnsonMusic
Copy link

(not dumb, just not Terminal savvy. If we wanna talk music, I'm good to go. Just don't speak computer coding as well…at all)

@lidel
Copy link
Member

lidel commented Mar 25, 2022

@MattJohnsonMusic the idea is to replace (override) corrupted /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs with valid one which ins inside https://dist.ipfs.io/go-ipfs/v0.12.0/go-ipfs_v0.12.0_darwin-amd64.tar.gz archive and see if that fixes the problem.

I think you should be able to do that with Finder, but you can also do it in Terminal.
Sadly I dont use macOS so dont know exact commands for it, but it would be along these lines:

  1. Rename broken binary:
    mv /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs.broken

  2. Go to the directory where you downloaded https://dist.ipfs.io/go-ipfs/v0.12.0/go-ipfs_v0.12.0_darwin-amd64.tar.gz and unpack it:
    tar xvf go-ipfs_v0.12.0_darwin-amd64.tar.gz

  3. Copy new binary in correct place:
    cp go-ipfs/ipfs /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs/ipfs

lidel added a commit that referenced this issue Mar 25, 2022
This improves UX and error reporting in cases like
#2038
lidel added a commit that referenced this issue Mar 25, 2022
This improves UX and error reporting in cases like
#2038
@MattJohnsonMusic
Copy link

Hello, SO…tried lidel's suggestion (above) to replace/copy over files. Either didn't work, or I didn't do things correctly. Finally, just GAVE UP!

• Dragged out another (older) iMac with no IPFS app history. Installed IPFS Desktop app and CRASHED. So, it's definitely something the new app software doesn't like with macOS High Sierra.
• Finally, used wife's newer Mac Airbook, running Big Sur. Upgraded macOS to Monterey v12.3. Installed IPFS Desktop app. Had to install "Rosetta" to make work (whatever). Restarted computer, opened IPFS Desktop and…CRASHED. (Jeez, really?)
• IPFS Desktop auto restarted and then seemed to work fine. FINALLY. Uploaded some files...whew, crisis averted. Just a major hassle and work-around to get the simple concept/idea of making IPFS easier to access through a desktop app.
••HOWEVER, each time I open IPFS Desktop app, it initially crashes, then resets itself. Can't imaging that's normal, but I'm holding my breath and just trying to upload my files before it doesn't work at all.

Problem still exists, but I've figured out a work-around for my IPFS needs…until I buy a nice, new, shiny computer later in the year.
Thanks to ALL for your help along the way,
M

@lidel
Copy link
Member

lidel commented Mar 31, 2022

Is the crash the same Command was killed with SIGSEGV (Segmentation fault): error as before, or something new?

  • If it is something new, mind sending combined.log?
  • If it is the same, it is really odd that you have the same problem on a different 12.x box. Are you running some apps on both of them (other than IPFS Desktop)?

@mlgx
Copy link

mlgx commented Apr 4, 2022

I ran some tests using IPFS Desktop 0.19.1 since I've established that it's the version that introduced the breaking change. Replacing `go-ipfs/ipfs` with the one from 0.18.1 or with go-ipfs 0.12.0 does not fix the issue. The error is the same (segfault). I also tested IPFS Desktop 0.18.1 with `go-ipfs/ipfs` taken from 0.19.1 and it works fine. So it's safe to assume that the issue does not come from `go-ipfs/ipfs`. I also ran from source and narrowed it down to a commit between 80ee282 and a942d4d. I would need more time to find the exact commit that introduced the breaking change.

Version 0.20.4 fixes it!
I should have started there 🤦

@KEINOS
Copy link

KEINOS commented Apr 4, 2022

I confirm that IPFS Desktop v0.20.4 fixed the problem even for High Sierra! 👍 Amazing job!!!

Verification Env Info
  • IPFS Desktop:
    • Downloaded from latest releases page.
    • IPFS Desktop Version: 0.20.4
    • Agent: go-ipfs v0.12.1 desktop
    • UI: v2.15.0
  • OS:
    • macOS HighSierra (OSX 10.13.6, 17G14042)
  • Hardware:
    • Mac mini (Late 2012)
    • CPU: 2.6 GHz Intel Core i7
    • Mem: 16 GB 1600 MHz DDR3
    • GPU: Intel HD Graphics 4000 1536 MB
  • Additional info:
    • SHA-512 checksum of go-ipfs

      $ pwd
      /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs/go-ipfs
      $ ls -l
      total 107744
      -rwxr-xr-x@ 1 admin  admin       852  3 18 06:10 install.sh
      -rwxr-xr-x@ 1 admin  admin  55160032  3 28 20:25 ipfs
      $ shasum -a 512 ./ipfs
      347d654304ca0e1e6bbc1e059e93a398c5ff7e6dfd6d058013f52438cd3c734977ea8a271c28f741944a3cf367d8f5b01c1cd5d4e9a8d280b4847443f68f70a1  ./ipfs
    • Checked points before install.

      • No ipfs daemon process is running.
        • $ ps aux | grep ipfs
      • Is ENV variable "IPFS_PATH" set?
        • yes. IPFS_PATH="/Volumes/EXT_SSD/IPFS_DATA"
      • Is files under IPFS_PATH empty?
        • yes. All backed up and removed.
      • No ipfs command(go-ipfs) installed.
        • $ type ipfs --> -bash: type: ipfs: not found

@lidel
Copy link
Member

lidel commented Apr 4, 2022

@MattJohnsonMusic try overwriting your old IPFS Desktop app with latest version from https://github.com/ipfs/ipfs-desktop/releases/download/v0.20.4/IPFS-Desktop-0.20.4.dmg

It seems to solve the problem for others.

@lidel lidel closed this as completed Apr 4, 2022
@MattJohnsonMusic
Copy link

Thank you. I downloaded/installed 20.4 and it does seem to work...whew!
Peace, Matt

@hacdias hacdias unpinned this issue May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/macos MacOS kind/bug A bug in existing code (including security flaws) need/analysis Needs further analysis before proceeding need/community-input Needs input from the wider community P1 High: Likely tackled by core team if no one steps up
Projects
None yet
Development

No branches or pull requests

8 participants