Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

ipfs daemon is success ,but ipfs swarm peers had a error #3711

Closed
@herexu

Description

@herexu

$ yarn add ipfs $ jsipfs daemon
Initializing IPFS daemon...
js-ipfs version: 0.6.1
System version: x64/win32
Node.js version: 14.17.0
Swarm listening on /ip4/192.168.3.116/tcp/4002/p2p/QmNVpPtEBo6cWM2woVjZBcfPUhitq7PHEoUCzyEcbKJ8kj
Swarm listening on /ip4/127.0.0.1/tcp/4002/p2p/QmNVpPtEBo6cWM2woVjZBcfPUhitq7PHEoUCzyEcbKJ8kj
Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/p2p/QmNVpPtEBo6cWM2woVjZBcfPUhitq7PHEoUCzyEcbKJ8kj
HTTP API listening on /ip4/127.0.0.1/tcp/5002/http
gRPC listening on /ip4/127.0.0.1/tcp/5003/ws
Gateway (read only) listening on /ip4/127.0.0.1/tcp/9090/http
Web UI available at http://127.0.0.1:5002/webui
Daemon is ready

then open http://127.0.0.1:5002/webui in browser ,IPFS API can not connet
i have add the cross-origin (CORS) requests ,the IPFS API cannot connet also

jsipfs add is success, BUT i can't open in browser https://ipfs.io/ipfs/QmWXatpvz7MpQ1WQBd9nGnMewFCkCwV6eww7XhkC5RxPMV

$ jsipfs add ./hello.txt
added QmWXatpvz7MpQ1WQBd9nGnMewFCkCwV6eww7XhkC5RxPMV hello.txt
Done in 0.92s.

and then i checke the status
$ ipfs swarm peers
Error: this action must be run in online mode, try running 'ipfs daemon' first

so , It's a dead cycle

i don't know what the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions