[gui error report] SyntaxError: C:\Users\Asus\.ipfs\config: Expected property name or '}' i
- Desktop: 0.37.0
- OS: win32 10.0.22631 x64
- Electron: 31.0.1
- Chrome: 126.0.6478.36
SyntaxError: C:\Users\Asus\.ipfs\config: Expected property name or '}' in JSON at position 4 (line 2 column 3)
at JSON.parse (<anonymous>)
at Object.readFileSync (C:\Users\Asus\IPFS Desktop\resources\app.asar\node_modules\jsonfile\index.js:52:17)
at readConfigFile (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\config.js:68:13)
at checkPorts (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\config.js:332:18)
at getIpfsd (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:71:16)
at async startDaemon (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:210:17)
at async startIpfs (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\index.js:49:17)
at async setupDaemon (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\daemon\index.js:116:3)
at async Promise.all (index 1)
at async run (C:\Users\Asus\IPFS Desktop\resources\app.asar\src\index.js:68:5)
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.
@Aritra15 seems that you manually edited C:\Users\Asus\.ipfs\config file and introduced an error.
If you did not, then your hard drive/filesystem has an error.
If you want to manually fix this provlem, you can
- stop IPFS Desktop and move
C:\Users\Asus\.ipfstoC:\Users\Asus\.ipfs.bak - start IPFS Desktop and confirm a fresh
C:\Users\Asus\.ipfswas created with validconfig - stop IPFS Desktop and move
C:\Users\Asus\.ipfstoC:\Users\Asus\.ipfs.fresh-and-valid - compare
C:\Users\Asus\.ipfs.bakwithC:\Users\Asus\.ipfs.fresh-and-validand identify the difference, if you can't identify it, you can useconfigfrom.ipfs.fresh-and-valid - move
C:\Users\Asus\.ipfs.baktoC:\Users\Asus\.ipfsand updateconfigto a working version