ipfs-desktop icon indicating copy to clipboard operation
ipfs-desktop copied to clipboard

[gui error report] Error: Initializing daemon...

Open doubledong94 opened this issue 1 year ago • 1 comments

  • Desktop: 0.39.0
  • OS: win32 10.0.22631 x64
  • Electron: 32.2.0
  • Chrome: 128.0.6613.178
Error: Initializing daemon...
Kubo version: 0.31.0
Repo version: 16
System version: amd64/windows
Golang version: go1.23.2
PeerID: 12D3KooWKjWXyCXwWL1XRJrWH1qhkkfocENkVb1pEHKyPtQpm6RH
2024-10-19T11:38:15.890 0800	ERROR	core	core/builder.go:158	constructing the node: could not build arguments for function "reflect".makeFuncStub (reflect/asm_amd64.s:28): failed to build *mfs.Root: received non-nil error from function "github.com/ipfs/kubo/core/node".Files (github.com/ipfs/[email protected]/core/node/core.go:149): error loading filesroot from dagservice: block was not found locally (offline): ipld: could not find QmegtvYwvUYRTF7e4WgE1GepFRqqj5Z7SAs42RpKnJQEWg

Error: constructing the node (see log for full detail): error loading filesroot from dagservice: block was not found locally (offline): ipld: could not find QmegtvYwvUYRTF7e4WgE1GepFRqqj5Z7SAs42RpKnJQEWg

    at errorTemplate (C:\Users\ydd\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:78:49)
    at Object.loadWindow (C:\Users\ydd\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:129:26)
    at startIpfsWithLogs (C:\Users\ydd\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:191:

doubledong94 avatar Oct 19 '24 03:10 doubledong94

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We are triaging issues on weekly basis and aim to give initial feedback within a few business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.tech if you just need general support.

welcome[bot] avatar Oct 19 '24 03:10 welcome[bot]

This error means MFS root CID is no longer in your local datastore:

ipld: could not find QmegtvYwvUYRTF7e4WgE1GepFRqqj5Z7SAs42RpKnJQEWg

It means you experienced a storage corruption for one of two reasons:

  • could be hardware failure (disk issues)
  • or you manually removed something from IPFS_PATH / .ipfs.

Until better UX is implemented upstream (tracked in https://github.com/ipfs/kubo/issues/7183#issuecomment-2658029979), there are two way of solving this:

  • If you have this CID on some other node, try ipfs dag export there and then ipfs dag import on the one that fails.
  • If you don't have access to missing CID, try shutting down IPFS Desktop, renaming .ipfs to .ipfs.old and then starting it again. A fresh repository will be created for you. If you want to recover CIDs from .ipfs.old, you can set it as IPFS_PATH for command line troubleshooting.

Let us know if any of the above helped.

lidel avatar Feb 14 '25 01:02 lidel

Thank you! The second solution works, I finally can use IPFS again!

doubledong94 avatar Feb 19 '25 13:02 doubledong94