Troubleshooting Common IPFS Desktop Issues (and Fixes)
1. IPFS Desktop won’t start
- Likely causes: corrupted config, previous daemon process running, missing dependencies.
- Fixes:
- Quit all IPFS processes (use Task Manager or
ps/kill), then restart the app. - Move or rename the config folder (
/.ipfsor%APPDATA%\ipfs) to back it up and start to recreate a fresh config. - Reinstall IPFS Desktop.
- Quit all IPFS processes (use Task Manager or
2. Daemon fails to connect or “Daemon not running” error
- Likely causes: port conflict, firewall, or bad repo permissions.
- Fixes:
- Check for port conflicts on 4001/5001/8080 and change ports in config or stop the conflicting service.
- Ensure firewall allows IPFS Desktop and ipfs daemon network traffic.
- Verify repo permissions: run the app as the same user that owns the repo; if needed, reset ownership (
chown) or move the repo.
3. Slow file add / high CPU or disk usage
- Likely causes: large files being chunked, low bandwidth, garbage collection, or antivirus scanning.
- Fixes:
- Add large files via the command-line ipfs with chunking options (
ipfs add –raw-leaves –nocopyas appropriate) to control behavior. - Temporarily disable or whitelist the IPFS repo in antivirus software.
- Limit bandwidth or connections in Settings; schedule heavy operations for off-hours.
- Run
ipfs repo gcperiodically to free space.
- Add large files via the command-line ipfs with chunking options (
4. Content not reachable by others (not pinning or offline)
- Likely causes: content not pinned, node behind NAT without peers, or IPFS gateway issues.
- Fixes:
- Pin important content (
ipfs pin add). - Enable/discover peers: check Bootstrap list and add reliable bootstrap nodes; ensure NAT traversal (UPnP) is enabled or set up port forwarding.
- Use a public IPFS gateway or a pinning service to keep content available.
- Pin important content (
5. Web UI won’t load or “unable to fetch” from localhost
- Likely causes: Web UI port blocked, CORS or API address misconfiguration, or daemon not exposing API.
- Fixes:
- Confirm API address in
/.ipfs/configunder API and Gateway sections; ensure it’s listening on the expected interface (127.0.0.1:5001). - Check browser extensions or CORS settings that may block localhost requests.
- Restart daemon to ensure API socket is created.
- Confirm API address in
6. Repo corrupted or “badger: failed to open” errors
- Likely causes: unclean shutdown, disk errors, or incompatible repo versions.
- Fixes:
- Backup the repo directory.
- Try
ipfs repo fsckto diagnose. - If unrecoverable, reinitialize the repo (
ipfs init) and restore pinned content from backups or a pinning service.
7. Gateway returns ⁄404 for valid CID
- Likely causes: blocked content, incorrect CID version, or private network mode.
- Fixes:
- Verify CID correctness and ensure you’re requesting the right path (CID vs. IPNS).
- Check IPFS Desktop settings for private network or restricted gateway modes.
- Try a different public gateway to confirm.
8. Peer discovery is poor / few peers
- Likely causes: NAT/firewall, restricted bootstraps, low DHT connectivity.
- Fixes:
- Ensure ports 4001 (libp2p) and others are open or forwarded.
- Add known bootstrap nodes or use public relay nodes.
- Enable relays and ensure DHT is enabled in config.
Diagnostic checklist (quick)
- Restart app and computer.
- Check logs (
View Logsin app or~/.ipfs/logs). - Verify repo path, ownership, and disk space.
- Confirm network ports and firewall settings.
- Try command-line
ipfsto separate CLI vs. Desktop issues.
If you want, I can generate exact commands for your OS (Windows/macOS/Linux) to run the fixes—tell me which OS.
Leave a Reply