-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mdns error: could not determine host IP addresses #6359
Comments
Same with |
You have autorelay enabled, don't you... |
Hm. Nevermind, that shouldn't break anything. What's the output of:
? |
No autorelay, {
"API": {
"HTTPHeaders": {}
},
"Addresses": {
"API": "/ip4/0.0.0.0/tcp/5001",
"Announce": [],
"Gateway": "/ip4/0.0.0.0/tcp/8080",
"NoAnnounce": [],
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001"
]
},
"Bootstrap": [
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"/ip6/2604:a880:1:20::203:d001/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip6/2400:6180:0:d0::151:6001/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip6/2604:a880:800:10::4a:5001/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"
],
"Datastore": {
"BloomFilterSize": 0,
"GCPeriod": "1h",
"HashOnRead": false,
"Spec": {
"mounts": [
{
"child": {
"path": "blocks",
"shardFunc": "/repo/flatfs/shard/v1/next-to-last/2",
"sync": true,
"type": "flatfs"
},
"mountpoint": "/blocks",
"prefix": "flatfs.datastore",
"type": "measure"
},
{
"child": {
"compression": "none",
"path": "datastore",
"type": "levelds"
},
"mountpoint": "/",
"prefix": "leveldb.datastore",
"type": "measure"
}
],
"type": "mount"
},
"StorageGCWatermark": 90,
"StorageMax": "10GB"
},
"Discovery": {
"MDNS": {
"Enabled": true,
"Interval": 10
}
},
"Experimental": {
"FilestoreEnabled": false,
"Libp2pStreamMounting": false,
"P2pHttpProxy": false,
"PreferTLS": false,
"QUIC": false,
"ShardingEnabled": 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": [
"*"
]
},
"NoFetch": false,
"PathPrefixes": [],
"RootRedirect": "",
"Writable": false
},
"Identity": {
"PeerID": "QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z"
},
"Ipns": {
"RecordLifetime": "",
"RepublishPeriod": "",
"ResolveCacheSize": 128
},
"Mounts": {
"FuseAllowOther": false,
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Pubsub": {
"DisableSigning": false,
"Router": "",
"StrictSignatureVerification": false
},
"Reprovider": {
"Interval": "12h",
"Strategy": "all"
},
"Routing": {
"Type": "dht"
},
"Swarm": {
"AddrFilters": null,
"ConnMgr": {
"GracePeriod": "20s",
"HighWater": 900,
"LowWater": 600,
"Type": "basic"
},
"DisableBandwidthMetrics": false,
"DisableNatPortMap": false,
"DisableRelay": false,
"EnableAutoNATService": false,
"EnableAutoRelay": false,
"EnableRelayHop": false
}
}
{
"ID": "QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z",
"PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDmDd8O634aSFkmiYTBSFujpQByHjQfIz4Fu1UY/FFbjk3shfuad6rig7fiaVGpJnsgCOBHj+N3lYYFBznXAHHoAIkRfeX/b8e6LJ4Z8RccXPtWouQQM5buPyeCVa05rFwlLQGnuk2a4PEUSSpi1zQfT8Qp4PIuNkPbT/LRerQTFEnnC4ci3GfXnRkIGWjBiRpU8Ub5mqYjSjEVVAXdVXk1xtRRNZD/pdBO1pwiHcHCV6s6FCwQpVoC4SACjskAx+FnkTuzSejOlT0KkiZE4yIuxhBO3bfLputkM73Lkw8WhaLLLFGCNvHxmV4MbjIpmsSH7MpZ28I+0iHRpX/11uA5AgMBAAE=",
"Addresses": [
"/ip4/127.0.0.1/tcp/4001/ipfs/QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z",
"/ip4/192.168.1.12/tcp/4001/ipfs/QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z",
"/ip4/172.17.0.1/tcp/4001/ipfs/QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z",
"/ip6/::1/tcp/4001/ipfs/QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z",
"/ip4/79.191.13.26/tcp/7380/ipfs/QmPPAwPbvaMyrySbNUxu7knc1t7JLwQLjtv2tnQvHdo65z"
],
"AgentVersion": "go-ipfs/0.4.21-rc3/",
"ProtocolVersion": "ipfs/0.1.0"
}
|
I have this same issue with ipfs on docker |
me too. it seems we all have docker installed on this host. |
seeing the same thing without docker:
|
I wonder if we were just ignoring this error previously. That error message means go-ipfs can't resolve your hostname (ethdev) to an IP address. This usually means a misconfigured system. I'm just not sure why this is showing up now. (relates to libp2p/go-libp2p#623) |
From @jbshirk libp2p/go-libp2p#623 (comment)
|
I could work around that name by changing /etc/hostname to a publicly resolvable hostname - things work much better now. But not sure if it is about this change or the switch to 0.4.21 - but looks good for now. Keep up the good work! |
Ideally, you'd be able to use something like nss-myhostname (from systemd). |
The hostname of machine B is |
both are not publicly resolvable - this was also the case I got this error - after using a publicly resolvable hostname it vanished |
I do not know what hostname should to changed to. But i checked my machine A,B,C. their host name is 'VM-0-26-ubuntu', 'ubuntucloud185', 'dannys-iMac.local'. A and C can be connected to each other |
My pc was disconnected from wifi overnight and I can report that this did not cause the error for me. |
Could y'all try the latest master? This may be have been fixed by #6415. |
I re-tested with $ docker run --rm -it --net=host ipfs/go-ipfs:v0.4.21
(mdns error)
$ docker pull ipfs/go-ipfs:master
$ docker run --rm -it --net=host ipfs/go-ipfs:master
(no error) Would be good if someone else confirmed. |
I re-tested with master in my host again. There is no |
ipfs id
config
cannot work. |
@izern which commit did you build? |
I found this issue googling the error message, which I had seen ever since upgrading from 0.4.20 to 0.4.21 (darwin platform) but only when connecting to one particular network (on a laptop). I tried current |
Switching to the master branch in docker fixed this error |
|
@Stebalien use last commit build. There is no mdns error now. Thank you for reminding me. |
i found this error too
id
docker config:
|
Closing as fixed in the latest go-ipfs master. |
Version information:
Description:
Starting 0.4.20-rc1 (empty profile) produces mdns error which is not present in 0.4.20:
cc @olizilla as he reported the same issue on irc
The text was updated successfully, but these errors were encountered: