Hello.
I am struggling with bootstrap on private network. The swarm.key is also the same, and there is only 1 masternode in bootstrap.
But bootstrap error: failed to bootstrap. I get the error failed to find peers: failed to find any peer in table
, and swarm peers is empty.
The swarm connect command also doesn’t work
# ipfs swarm connect /ip4/10.0.0.2/tcp/4001/p2p/12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB
config path is /data/ipfs
Error: connect 12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB failure: failed to find peers: failed to find any peer in table
Node-1
ipfs id
{
"ID": "12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB",
"PublicKey": "CAESILCmuB+9KFsNwJ3hdqmiB0MKTphuh0gk3v1l1J9qksUU",
"Addresses": [
"/ip4/10.0.0.2/tcp/4001/p2p/12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB",
"/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB",
"/ip6/::1/tcp/4001/p2p/12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB"
],
"AgentVersion": "kubo/0.19.2/afb27ca17-dirty/docker",
"ProtocolVersion": "ipfs/0.1.0",
"Protocols": [
"/ipfs/bitswap",
"/ipfs/bitswap/1.0.0",
"/ipfs/bitswap/1.1.0",
"/ipfs/bitswap/1.2.0",
"/ipfs/id/1.0.0",
"/ipfs/id/push/1.0.0",
"/ipfs/lan/kad/1.0.0",
"/ipfs/ping/1.0.0",
"/libp2p/autonat/1.0.0",
"/libp2p/circuit/relay/0.2.0/stop",
"/x/"
]
}
ipfs config
{
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Methods": [
"PUT",
"POST"
],
"Access-Control-Allow-Origin": [
"*"
]
}
},
"Addresses": {
"API": "/ip4/0.0.0.0/tcp/5001",
"Announce": [],
"AppendAnnounce": [
"/ip4/10.0.0.2/tcp/4001",
"/ip4/172.30.42.186/tcp/4001"
],
"Gateway": "/ip4/0.0.0.0/tcp/8080",
"NoAnnounce": [
"/ip4/100.64.0.0/ipcidr/10",
"/ip4/169.254.0.0/ipcidr/16",
"/ip4/172.16.0.0/ipcidr/12",
"/ip4/192.0.0.0/ipcidr/24",
"/ip4/192.0.2.0/ipcidr/24",
"/ip4/192.168.0.0/ipcidr/16",
"/ip4/198.18.0.0/ipcidr/15",
"/ip4/198.51.100.0/ipcidr/24",
"/ip4/203.0.113.0/ipcidr/24",
"/ip4/240.0.0.0/ipcidr/4",
"/ip6/100::/ipcidr/64",
"/ip6/2001:2::/ipcidr/48",
"/ip6/2001:db8::/ipcidr/32",
"/ip6/fc00::/ipcidr/7",
"/ip6/fe80::/ipcidr/10"
],
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001",
"/ip4/0.0.0.0/udp/4001/quic",
"/ip4/0.0.0.0/udp/4001/quic-v1",
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
"/ip6/::/udp/4001/quic",
"/ip6/::/udp/4001/quic-v1",
"/ip6/::/udp/4001/quic-v1/webtransport"
]
},
"AutoNAT": {},
"Bootstrap": null,
"DNS": {
"Resolvers": {}
},
"Datastore": {
"BloomFilterSize": 1048576,
"GCPeriod": "1h",
"HashOnRead": false,
"Spec": {
...
},
"StorageGCWatermark": 90,
"StorageMax": "10GB"
},
"Discovery": {
"MDNS": {
"Enabled": false
}
},
"Experimental": {
"AcceleratedDHTClient": false,
"FilestoreEnabled": false,
"GraphsyncEnabled": false,
"Libp2pStreamMounting": false,
"P2pHttpProxy": false,
"StrategicProviding": false,
"UrlstoreEnabled": false
},
"Gateway": {
"APICommands": [],
"HTTPHeaders": {
"Access-Control-Allow-Headers": [
"X-Requested-With",
"Range",
"User-Agent"
],
"Access-Control-Allow-Methods": [
"GET"
],
"Access-Control-Allow-Origin": [
"*"
]
},
"NoDNSLink": false,
"NoFetch": false,
"PathPrefixes": [],
"PublicGateways": null,
"RootRedirect": "",
"Writable": false
},
"Identity": {
"PeerID": "12D3KooWMhwNU8uLau5hzGvECoqWXLFtQfKgB3y7URS2VUujT8UB"
},
"Internal": {},
"Ipns": {
"RecordLifetime": "",
"RepublishPeriod": "",
"ResolveCacheSize": 128
},
"Migration": {
"DownloadSources": [],
"Keep": ""
},
"Mounts": {
"FuseAllowOther": false,
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Peering": {
"Peers": null
},
"Pinning": {
"RemoteServices": {}
},
"Plugins": {
"Plugins": null
},
"Provider": {
"Strategy": ""
},
"Pubsub": {
"DisableSigning": false,
"Router": ""
},
"Reprovider": {},
"Routing": {
"Methods": null,
"Routers": null,
"Type": "dht"
},
"Swarm": {
"AddrFilters": [
"/ip4/10.0.0.0/ipcidr/8",
"/ip4/100.64.0.0/ipcidr/10",
"/ip4/169.254.0.0/ipcidr/16",
"/ip4/172.16.0.0/ipcidr/12",
"/ip4/192.0.0.0/ipcidr/24",
"/ip4/192.0.2.0/ipcidr/24",
"/ip4/192.168.0.0/ipcidr/16",
"/ip4/198.18.0.0/ipcidr/15",
"/ip4/198.51.100.0/ipcidr/24",
"/ip4/203.0.113.0/ipcidr/24",
"/ip4/240.0.0.0/ipcidr/4",
"/ip6/100::/ipcidr/64",
"/ip6/2001:2::/ipcidr/48",
"/ip6/2001:db8::/ipcidr/32",
"/ip6/fc00::/ipcidr/7",
"/ip6/fe80::/ipcidr/10"
],
"ConnMgr": {
"HighWater": 2000
},
"DisableBandwidthMetrics": false,
"DisableNatPortMap": true,
"RelayClient": {},
"RelayService": {},
"ResourceMgr": {},
"Transports": {
"Multiplexers": {},
"Network": {},
"Security": {}
}
}
}
Node-2
ipfs id
{
"ID": "12D3KooWHDFAUYjPw6aQ8iXpNcLmrhtTqgUiJWeiKdbyJpNyD6Fe",
"PublicKey": "CAESIG3ePzbOHjOiA8c/9uFjS5smaSXQLaHMjd8xpwzGXVTF",
"Addresses": [
"/ip4/10.0.0.11/tcp/4001/p2p/12D3KooWHDFAUYjPw6aQ8iXpNcLmrhtTqgUiJWeiKdbyJpNyD6Fe",
"/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWHDFAUYjPw6aQ8iXpNcLmrhtTqgUiJWeiKdbyJpNyD6Fe",
"/ip6/::1/tcp/4001/p2p/12D3KooWHDFAUYjPw6aQ8iXpNcLmrhtTqgUiJWeiKdbyJpNyD6Fe"
],
"AgentVersion": "kubo/0.19.2/afb27ca17-dirty/docker",
"ProtocolVersion": "ipfs/0.1.0",
"Protocols": [
"/ipfs/bitswap",
"/ipfs/bitswap/1.0.0",
"/ipfs/bitswap/1.1.0",
"/ipfs/bitswap/1.2.0",
"/ipfs/id/1.0.0",
"/ipfs/id/push/1.0.0",
"/ipfs/lan/kad/1.0.0",
"/ipfs/ping/1.0.0",
"/libp2p/autonat/1.0.0",
"/libp2p/circuit/relay/0.2.0/stop",
"/x/"
]
}