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

[gui error report] Error: no protocol with name: "'dnsaddr'". Must have a valid family name

Open aredridel opened this issue 1 year ago • 1 comments

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

Edited my config file incorrectly, using /dnsaddr addresses for API and Gateway.

Specifications

  • OS: darwin 23.3.0
  • IPFS Desktop Version: 0.33.0
  • Electron Version: 19.1.9
  • Chrome Version: 102.0.5005.167

Error

Error: no protocol with name: "'dnsaddr'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".
    at Multiaddr.nodeAddress (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/node_modules/multiaddr/src/index.js:452:13)
    at checkPorts (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/config.js:345:63)
    at getIpfsd (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/daemon.js:71:16)
    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:49:17)
    at async setupDaemon (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/daemon/index.js:116:3)
    at async Promise.all (index 1)
    at async run (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/index.js:68:5)

There's no way in the UI to recover this.

aredridel avatar Feb 25 '24 23:02 aredridel

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:

  • "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.io if you just need general support.

welcome[bot] avatar Feb 25 '24 23:02 welcome[bot]

You can fix this by finding .ipfs/config file and editing it directly, fixing the bug you introduced via GUI.

See https://github.com/ipfs/ipfs-desktop/#where-are-my-ipfs-configuration-and-log-files

If you need further support, ask https://discuss.ipfs.tech/

lidel avatar Jun 12 '24 15:06 lidel

Oh I'm well aware but uh, "I can break the UI with the UI" is maybe a bad baseline for software. I'm not asking for support here, I'm filing a bug report.

aredridel avatar Jun 12 '24 17:06 aredridel

Thank you for explaining. Apologies for mireading your original report (it was filled as a bug, and not filled as a feature request).

I agree with the feature request: inability to edit Kubo configuration file once bad edit is done via GUI was an oversight.

Good news is that it was implemented in the latest version (v0.36).

Now there is context menu option that allows you to find and edit the .ipfs/config yourself:

image

If you find any problems with this, please fill new issue as this bug is marked as closed.

lidel avatar Jun 12 '24 19:06 lidel

Awesome, thank you!

aredridel avatar Jun 12 '24 20:06 aredridel