ipfs / ipfs-desktop

An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
https://docs.ipfs.tech/install/ipfs-desktop/
MIT License
5.88k stars 851 forks source link

[gui error report] SyntaxError: Unexpected end of JSON input: Error: open /Volumes/aeoncat' #2567

Closed aeoncat closed 11 months ago

aeoncat commented 11 months ago

👉️ Please describe what you were doing when this error happened.

Specifications

Error

SyntaxError: Unexpected end of JSON input: Error: open /Volumes/aeoncat's drive/ipfs/.ipfs/config: no such file or directory
    at JSON.parse (<anonymous>)
    at Daemon._getConfig (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:368:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Daemon.init (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:158:9)
    at async getIpfsd (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/daemon.js:63:7)
    at async startDaemon (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/daemon.js:210:17)
    at async startIpfs (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:48:17)
    at async setupDaemon (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:116:3)
    at async run (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/index.js:85:5)
welcome[bot] commented 11 months ago

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 currently aim to give initial feedback within two 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:

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

whizzzkid commented 11 months ago

Thank you for submitting this issue @aeoncat, looks like your ipfs config file /Volumes/aeoncat's drive/ipfs/.ipfs/config is missing. Can you validate if it's present and is a valid JSON file?

If you do not have any data that you're afraid of loosing, you can try reinstalling and that should fix the issue. If you need to retain the data, you move /Volumes/aeoncat's drive/ipfs/.ipfs to /Volumes/aeoncat's drive/ipfs/.ipfs-backup and then restart ipfs-desktop, it should reinitialize the config, you can then move it back to backup and rename backup to .ipfs

I hope this helps!

github-actions[bot] commented 11 months ago

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

github-actions[bot] commented 11 months ago

This issue was closed because it is missing author input.