Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: config: The system cannot find the path specified (after repo move) #2259

Closed
IngwiePhoenix opened this issue Sep 7, 2022 · 3 comments
Labels
area/windows Windows effort/hours Estimated to take one or several hours exp/beginner Can be confidently tackled by newcomers good first issue Good issue for new contributors help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked

Comments

@IngwiePhoenix
Copy link

I updated from a previous version and when it started, this happened. Not much I can add, really.

Looking at the log though, I can tell it's trying to open a non-existent config; and I have a hunch why. When I initially re-installed my OS a while back, I transfered the entire Appdata/Local folder. Chances are that this is part of the issue. After the re-install, I changed the username to be "Ingwie Phoenix" instead of the typo'd "ingwi". Yes - the space is included:

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6

PS C:\Users\Ingwie Phoenix>

Its minor, but I thought I'd submit it anyway :)

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.23.0
  • Electron Version: 19.0.9
  • Chrome Version: 102.0.5005.167

Error

SyntaxError: Unexpected end of JSON input: Error: open C:\Users\ingwi\.ipfs\config: Das System kann den angegebenen Pfad nicht finden.
    at JSON.parse (<anonymous>)
    at Daemon._getConfig (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\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 (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\ipfsd-ctl\src\ipfsd-daemon.js:158:9)
    at async getIpfsd (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:63:7)
    at async startDaemon (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:210:17)
    at async startIpfs (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:48:17)
    at async setupDaemon (C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:116:3)
    at async
@IngwiePhoenix IngwiePhoenix added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Sep 7, 2022
@SgtPooki SgtPooki moved this to To do in IPFS-GUI (PL EngRes) Sep 7, 2022
@IngwiePhoenix
Copy link
Author

IngwiePhoenix commented Sep 7, 2022

I changed the ipfsConfig.path location in the %AppData%/config.json (Where are my IPFS configuration and log files?) to the proper path and that fixed it.

Might want to prompt the user if the file doesn't exist, perhaps?

@SgtPooki
Copy link
Member

@IngwiePhoenix thanks so much for filing the issue and responding here with the fix. Prompting the user to provide the location of their ipfsConfig if it's not found is a great solution

To be clear, are these the steps you took to resolve the error:

  1. you found your config.json config file in one of the paths listed at https://github.com/ipfs/ipfs-desktop#where-are-my-ipfs-configuration-and-log-files
  2. updated the json value of ipfsConfig.path to point to the correct location
  3. restart IPFS Desktop

@SgtPooki SgtPooki removed the need/triage Needs initial labeling and prioritization label Jan 16, 2023
@SgtPooki SgtPooki moved this from Needs Grooming to Planned / Backlog in IPFS-GUI (PL EngRes) Jan 16, 2023
@IngwiePhoenix
Copy link
Author

Yes. :)

@SgtPooki SgtPooki added help wanted Seeking public contribution on this issue P2 Medium: Good to have, but can wait until someone steps up area/windows Windows good first issue Good issue for new contributors exp/beginner Can be confidently tackled by newcomers effort/hours Estimated to take one or several hours status/ready Ready to be worked labels May 14, 2023
@lidel lidel changed the title [gui error report] SyntaxError: Unexpected end of JSON input: Error: open C:\Users\ingwi\.i Error: .ipfs/config: The system cannot find the path specified Jun 12, 2024
@lidel lidel changed the title Error: .ipfs/config: The system cannot find the path specified Error: config: The system cannot find the path specified (after repo move) Jun 12, 2024
@lidel lidel closed this as completed in 3ac05a4 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows Windows effort/hours Estimated to take one or several hours exp/beginner Can be confidently tackled by newcomers good first issue Good issue for new contributors help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked
Projects
No open projects
Status: Planned / Backlog
Development

No branches or pull requests

2 participants