Skip to content

Maybe suggest a command to kill the daemon? #835

@jbenet

Description

@jbenet
  • Please describe what you were doing when this error happened.
  • i tried shutting down ipfs-desktop, and then this message appeared. i closed it, reopend, and it kept appearing.
  • looks like the shutting-down failed.
  • i killed ipfs (killall ipfs), and then it resumed working fine.
  • I think this case is detectable (process is already running), and can suggest a way to kill it (either give a button option, or tell them to do it via commandline).
  • The wording might be:

    IPFS Desktop failed to start the ipfs node, because one seems to be running already. Maybe a shutdown failed previously, or maybe you intend to run multiple nodes and there is a pathing issue.

             [ Cancel ] [ Tell me more about paths ] [[ Force shutdown node  and restart ]]
    
  • "tell me more about paths" could link to some doc talking about "running multiple nodes in the same machine" which teaches people about ports, IPFS_PATH, and whatnot.

Specifications

  • OS: darwin
  • IPFS Desktop Version: 0.6.1
  • Electron Version: 4.0.0
  • Chrome Version: 69.0.3497.106

Error

Error: Command failed: /Applications/IPFS Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs-dep/go-ipfs/ipfs repo fsck
Error: ipfs daemon is running. please stop it to run this command

    at checkExecSyncError (child_process.js:621:11)
    at execFileSync (child_process.js:639:13)
    at module.(anonymous function) (ELECTRON_ASAR.js:169:18)
    at _callee$ (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/out/utils/daemon.js:63:45)
    at tryCatch (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/regenerator-runtime/runtime.js:288:22)
    at Generator.prototype.(anonymous function) [as next] (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/regenerator-runtime/runtime.js:114:21)
    at asyncGeneratorStep (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions