Skip to content
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

Closed
lidel opened this issue May 21, 2019 · 26 comments
Closed

mdns error: could not determine host IP addresses #6359

lidel opened this issue May 21, 2019 · 26 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@lidel
Copy link
Member

lidel commented May 21, 2019

Version information:

go-ipfs version: 0.4.21-rc1-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.5

Description:

Starting 0.4.20-rc1 (empty profile) produces mdns error which is not present in 0.4.20:

$ docker run --rm -it --net=host ipfs/go-ipfs:v0.4.21-rc1
Changing user to ipfs
ipfs version 0.4.21-rc1
initializing IPFS node at /data/ipfs
generating 2048-bit RSA keypair...done
peer identity: QmYsQwTJ5iTcvfmT81ivoT1sCM2Ntmp3UiXyBMrwyxXaDc
to get started, enter:

	ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme

Initializing daemon...
go-ipfs version: 0.4.21-rc1-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.5
10:16:09.486 ERROR    p2pnode: mdns error:  could not determine host IP addresses for dybuk. discovery.go:46
(...)
Daemon is ready

cc @olizilla as he reported the same issue on irc

@Stebalien Stebalien added the kind/bug A bug in existing code (including security flaws) label May 21, 2019
@lidel
Copy link
Member Author

lidel commented May 24, 2019

Same with 0.4.21-rc3

@Stebalien
Copy link
Member

You have autorelay enabled, don't you...

@Stebalien
Copy link
Member

Hm. Nevermind, that shouldn't break anything.

What's the output of:

  • ipfs config show
  • ipfs id
  • ipfs addrs local
  • ipfs addrs listen

?

@lidel
Copy link
Member Author

lidel commented May 26, 2019

No autorelay, ipfs config show is the default config right after init:

{
  "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
  }
}

ipfs id

{
	"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"
}

ipfs swarm addrs local

/ip4/127.0.0.1/tcp/4001
/ip4/172.17.0.1/tcp/4001
/ip4/192.168.1.12/tcp/4001
/ip4/79.191.13.26/tcp/50283
/ip6/::1/tcp/4001

ipfs swarm addrs listen

/ip4/127.0.0.1/tcp/4001
/ip4/172.17.0.1/tcp/4001
/ip4/192.168.1.12/tcp/4001
/ip6/::1/tcp/4001
/p2p-circuit

@bytenaija
Copy link

I have this same issue with ipfs on docker

@monotone
Copy link

monotone commented Jun 4, 2019

me too. it seems we all have docker installed on this host.

@ligi
Copy link

ligi commented Jun 4, 2019

seeing the same thing without docker:

ligi@ethdev:~$  ipfs daemon
Initializing daemon...
go-ipfs version: 0.4.21-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.5
08:35:14.412 ERROR    p2pnode: mdns error:  could not determine host IP addresses for ethdev. discovery.go:46
Swarm listening on /ip4/10.10.42.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/172.17.0.1/tcp/4001
Swarm listening on /ip4/178.19.221.38/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.10.42.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/172.17.0.1/tcp/4001
Swarm announcing /ip4/178.19.221.38/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/0.0.0.0/tcp/5001
WebUI: http://0.0.0.0:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready

@Stebalien
Copy link
Member

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)

@Stebalien
Copy link
Member

From @jbshirk libp2p/go-libp2p#623 (comment)

I've been getting this too, since latest upgrade

go-ipfs version: 0.4.20-
Repo version: 7
System version: amd64/darwin
Golang version: go1.12.4

13:22:59.785 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
13:23:09.783 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:139

It typically happens about every hour or hour and a half. My gut feeling is that in my case it may be due to the terrible Arris cable modem (Comcast) which is notorious for crashing, restarting, or spontaneous DNS and/or WiFi failures. FYI.

@ligi
Copy link

ligi commented Jun 4, 2019

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!

@Stebalien
Copy link
Member

Ideally, you'd be able to use something like nss-myhostname (from systemd).

@monotone
Copy link

monotone commented Jun 5, 2019

@ligi

I could work around that name by changing /etc/hostname to a publicly resolvable hostname

The hostname of machine B is ubuntucloud185, and hostname of machine A is VM-0-26-ubuntu, They don't seem to make much difference。

@ligi
Copy link

ligi commented Jun 5, 2019

both are not publicly resolvable - this was also the case I got this error - after using a publicly resolvable hostname it vanished

@monotone
Copy link

monotone commented Jun 5, 2019

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
, but could not connect to B.

@jbshirk
Copy link

jbshirk commented Jun 5, 2019

My pc was disconnected from wifi overnight and I can report that this did not cause the error for me.

@Stebalien
Copy link
Member

Could y'all try the latest master? This may be have been fixed by #6415.

@lidel
Copy link
Member Author

lidel commented Jun 6, 2019

I re-tested with master in docker and the mdns error is gone:

$ 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.

@monotone
Copy link

I re-tested with master in my host again. There is no mdns error now.

@izern
Copy link

izern commented Jun 11, 2019

Initializing daemon...
go-ipfs version: 0.4.22-dev-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.5
17:30:52.552 ERROR    p2pnode: mdns error:  could not determine host IP addresses for kali. discovery.go:46
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.20.23/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.20.23/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
root@kali:~# uname -a
Linux kali 4.19.0-kali5-amd64 #1 SMP Debian 4.19.37-2kali1 (2019-05-15) x86_64 GNU/Linux
root@kali:~# ping kali
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.036 ms

ipfs id

root@kali:~# ipfs id
{
	"ID": "QmNkQGWfXtSZTnR7ioxVaNzmrAG7gBzy1LGkcNgiTTNLyZ",
	"PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzAOs+ZtDomSv9X8S0a6qM3Nux27BDmKUGr4IAzKNF6N1G7rczYHParxkygyXUSrStF6+ZNlZipsJrMWEaz6lJfwQLy12WAf9DdbGapSXhCeYHXm74x6Ntie4uUDGH7YH6jiKu6VSpof/nopTE+5OQfhNw/WuAxa8hGm1EYa/lTyZcSKOMWjkoct42OEkQrcY/jGTkln//n9G1VIB+wSb/DqjtzHrh4TT3uHAFcgpD0yONrc9MnKiasADGI7yC1bdAVo/xZTPTCWz1IdY/k/Q+d6XdODxdneRtwysqdzbK9D0hSL2Vduk8szHLv52wZY139DQfTmKhfAaUT5yUqb4ZAgMBAAE=",
	"Addresses": [
		"/ip6/::1/tcp/4001/ipfs/QmNkQGWfXtSZTnR7ioxVaNzmrAG7gBzy1LGkcNgiTTNLyZ",
		"/ip4/127.0.0.1/tcp/4001/ipfs/QmNkQGWfXtSZTnR7ioxVaNzmrAG7gBzy1LGkcNgiTTNLyZ",
		"/ip4/192.168.20.23/tcp/4001/ipfs/QmNkQGWfXtSZTnR7ioxVaNzmrAG7gBzy1LGkcNgiTTNLyZ"
	],
	"AgentVersion": "go-ipfs/0.4.22-dev/",
	"ProtocolVersion": "ipfs/0.1.0"
}

config

root@kali:~# ipfs config show
{
  "API": {
    "HTTPHeaders": {}
  },
  "Addresses": {
    "API": "/ip4/127.0.0.1/tcp/5001",
    "Announce": [],
    "Gateway": "/ip4/127.0.0.1/tcp/8080",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001"
    ]
  },
  "Bootstrap": [
    "/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
    "/ip6/2604:a880:800:10::4a:5001/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
    "/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
    "/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
    "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
    "/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
    "/ip6/2604:a880:1:20::203:d001/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
    "/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
    "/ip6/2400:6180:0:d0::151:6001/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt"
  ],
  "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,
    "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": [
        "*"
      ]
    },
    "NoFetch": false,
    "PathPrefixes": [],
    "RootRedirect": "",
    "Writable": false
  },
  "Identity": {
    "PeerID": "QmNkQGWfXtSZTnR7ioxVaNzmrAG7gBzy1LGkcNgiTTNLyZ"
  },
  "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
  }
}

cannot work.
ERROR p2pnode: mdns error: could not determine host IP addresses for kali. discovery.go:46

@Stebalien
Copy link
Member

@izern which commit did you build?

@khinsen
Copy link

khinsen commented Jun 12, 2019

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 master and the error is gone.

@bytenaija
Copy link

Switching to the master branch in docker fixed this error

@izern
Copy link

izern commented Jun 13, 2019

@Stebalien

commit 07bf2bda49295718a4c57b40633ae0af535ff38f
Merge: ff3efe840 7be8475c9
Author: Steven Allen <steven@stebalien.com>
Date:   Mon Jun 3 20:42:44 2019 -0700

    Merge pull request #6331 from ipfs/feat/block-put-many
    
    block cmd: allow adding multiple blocks at once

@izern
Copy link

izern commented Jun 13, 2019

@Stebalien use last commit build. There is no mdns error now. Thank you for reminding me.

@godcong
Copy link
Contributor

godcong commented Jun 14, 2019

i found this error too
config

{
  "API": {
    "HTTPHeaders": {
      "Access-Control-Allow-Credentials": [
        "true"
      ],
      "Access-Control-Allow-Origin": [
        "*"
      ]
    }
  },
  "Addresses": {
    "API": "/ip4/0.0.0.0/tcp/15001",
    "Announce": [],
    "Gateway": "/ip4/0.0.0.0/tcp/18080",
    "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/47.101.169.94/tcp/4001/ipfs/QmbM6BNAMYWAaA5hiMLjEsoeK8vtcEzNv8UbBJwS1zJfUn",
    "/ip4/13.125.238.243/tcp/4001/ipfs/QmTqJ6u5jPuK1JYdNRiMW5uWkd7riJBFWhdeJhhkz6cwca",
    "/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": "1000GB"
  },
  "Discovery": {
    "MDNS": {
      "Enabled": true,
      "Interval": 10
    }
  },
  "Experimental": {
    "FilestoreEnabled": false,
    "Libp2pStreamMounting": false,
    "P2pHttpProxy": false,
    "QUIC": false,
    "ShardingEnabled": false,
    "UrlstoreEnabled": false
  },
  "Gateway": {
    "APICommands": [],
    "HTTPHeaders": {
      "Access-Control-Allow-Headers": [
        "X-Requested-With",
        "Range"
      ],
      "Access-Control-Allow-Methods": [
        "GET"
      ],
      "Access-Control-Allow-Origin": [
        "*"
      ]
    },
    "PathPrefixes": [],
    "RootRedirect": "",
    "Writable": false
  },
  "Identity": {
    "PeerID": "QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq"
  },
  "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,
    "EnableRelayHop": false
  }
}

id

{
        "ID": "QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq",
        "PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCezMMTLRuntSMu3HoWe4vjXf1VBZTyUdV2f6TGV+HgUU5ndESLUWo+Vt9qaSQGsZnNASq2Srjs5O3JoCGU1NEoFD348c4+HgmYDtQgQMk8YWMhIVXI0I/3T6UDvL0vf42j6uSf5QlaYsIbKcZ+lXkQoZO06yFK9E7axwBtw+qKEs+N9O/0XPRBgo2EgGLzQFXwpSsvalBOm3PfUO0/MatS6hHAu8vKtqmo4L9tpS1Gy0DBlA00ash+raYD2sbA4bIdjCuOeVCDDz99bUt/0COM/GSjMsGPaQCTV8fXN5XR9eMs71ua+RkuU5nOUETwNM9R4eaI/J13VK0hpS2tFX/AgMBAAE=",
        "Addresses": [
                "/ip4/127.0.0.1/tcp/4001/ipfs/QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq",
                "/ip4/172.17.0.3/tcp/4001/ipfs/QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq",
                "/ip4/183.192.82.150/tcp/24637/ipfs/QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq",
                "/ip4/183.192.82.150/tcp/25475/ipfs/QmeF1HVnBYTzFFLGm4VmAsHM4M7zZS3WUYx62PiKC2sqRq"
        ],
        "AgentVersion": "go-ipfs/0.4.21/",
        "ProtocolVersion": "ipfs/0.1.0"
}

docker config:

[
    {
        "Id": "257c0c28cd7f2631c1623bcc6fcff2718b13ada40a1a4024ba5ac6e78179a544",
        "Created": "2019-06-14T08:08:19.182109398Z",
        "Path": "/sbin/tini",
        "Args": [
            "--",
            "/usr/local/bin/start_ipfs",
            "daemon",
            "--migrate=true"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 5691,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2019-06-14T08:08:43.798525198Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "StartedTs": 1560499723,
            "FinishedTs": -62135596800
        },
        "Image": "sha256:815e8c34f8cb208dd1fd947dc9d256fff848405677142fcc35be2c607d903785",
        "ResolvConfPath": "/volume1/@docker/containers/257c0c28cd7f2631c1623bcc6fcff2718b13ada40a1a4024ba5ac6e78179a544/resolv.conf",
        "HostnamePath": "/volume1/@docker/containers/257c0c28cd7f2631c1623bcc6fcff2718b13ada40a1a4024ba5ac6e78179a544/hostname",
        "HostsPath": "/volume1/@docker/containers/257c0c28cd7f2631c1623bcc6fcff2718b13ada40a1a4024ba5ac6e78179a544/hosts",
        "LogPath": "/volume1/@docker/containers/257c0c28cd7f2631c1623bcc6fcff2718b13ada40a1a4024ba5ac6e78179a544/log.db",
        "Name": "/ipfs",
        "RestartCount": 0,
        "Driver": "btrfs",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/volume2/ipfs/export:/export:rw",
                "/volume2/ipfs/data:/data/ipfs:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "db",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "15001/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "15001"
                    }
                ],
                "18080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "18080"
                    }
                ],
                "4001/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4001"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "SRC_DIR=/go-ipfs",
                "IPFS_PATH=/data/ipfs",
                "IPFS_LOGGING="
            ],
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": -1,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0
        },
        "GraphDriver": {
            "Data": null,
            "Name": "btrfs"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/volume2/ipfs/export",
                "Destination": "/export",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "bind",
                "Source": "/volume2/ipfs/data",
                "Destination": "/data/ipfs",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "257c0c28cd7f",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "15001/tcp": {},
                "18080/tcp": {},
                "4001/tcp": {},
                "5001/tcp": {},
                "8080/tcp": {},
                "8081/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "SRC_DIR=/go-ipfs",
                "IPFS_PATH=/data/ipfs",
                "IPFS_LOGGING="
            ],
            "Cmd": [
                "daemon",
                "--migrate=true"
            ],
            "ArgsEscaped": true,
            "Image": "ipfs/go-ipfs:latest",
            "Volumes": {
                "/data/ipfs": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/sbin/tini",
                "--",
                "/usr/local/bin/start_ipfs"
            ],
            "OnBuild": null,
            "Labels": {},
            "DDSM": false
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "29cfe8a98bed4794d4c237014fc921265e9c97a13d789fa0ea8e6a9d505c3e5c",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "15001/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "15001"
                    }
                ],
                "18080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "18080"
                    }
                ],
                "4001/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4001"
                    }
                ],
                "5001/tcp": null,
                "8080/tcp": null,
                "8081/tcp": null
            },
            "SandboxKey": "/var/run/docker/netns/29cfe8a98bed",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "ad78aebfa3a05f2d6641a46c27b61a7495d7846bfedbd34759ed4b2fc9bfb1df",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.3",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:03",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "b92d1a154939c6f82f92f67cff768810bccc8d6ebca23a64b88a1609e4131290",
                    "EndpointID": "ad78aebfa3a05f2d6641a46c27b61a7495d7846bfedbd34759ed4b2fc9bfb1df",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.3",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:03"
                }
            }
        }
    }
]

@Stebalien
Copy link
Member

Closing as fixed in the latest go-ipfs master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

9 participants