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.86k stars 850 forks source link

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

Closed aredridel closed 2 weeks ago

aredridel commented 4 months ago

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

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

Specifications

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.

welcome[bot] commented 4 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.

lidel commented 2 weeks ago

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/

aredridel commented 2 weeks ago

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.

lidel commented 2 weeks ago

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.

aredridel commented 2 weeks ago

Awesome, thank you!