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.92k stars 854 forks source link

[gui error report] SyntaxError: Unexpected end of JSON input: Error: open /path/to/ipfsrepo #2836

Open rtxs34 opened 1 month ago

rtxs34 commented 1 month ago
SyntaxError: Unexpected end of JSON input: Error: open /path/to/ipfsrepo/config: no such file or directory
    at JSON.parse (<anonymous>)
    at Daemon._getConfig (/opt/IPFS Desktop/resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:368:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Daemon.init (/opt/IPFS Desktop/resources/app.asar/node_modules/ipfsd-ctl/src/ipfsd-daemon.js:158:9)
    at async getIpfsd (/opt/IPFS Desktop/resources/app.asar/src/daemon/daemon.js:63:7)
    at async startDaemon (/opt/IPFS Desktop/resources/app.asar/src/daemon/daemon.js:210:17)
    at async startIpfs (/opt/IPFS Desktop/resources/app.asar/src/daemon/index.js:49:17)
    at async setupDaemon (/opt/IPFS Desktop/resources/app.asar/src/daemon/index.js:116:3)
    at async Promise.all (index 1)
    at async run (/opt/IPFS Desktop/resources/app.asar/src/index.js:68:5)
jc-frosty commented 1 month ago

Closed my issue, as the only difference is the OS. Following this one.

jc-frosty commented 1 month ago

This error occurs in 0.36.0 as well. See above issue (2839).

jc-frosty commented 1 month ago

@rtxs34 did you install ipfs desktop via macports? I ask because some of your files are in /opt which is where macports installs(and mine are not installed there).