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

failed to listen on any addresses: [no transport for protocol] #9531

Closed
3 tasks done
MaxKingPor opened this issue Jan 9, 2023 · 4 comments
Closed
3 tasks done

failed to listen on any addresses: [no transport for protocol] #9531

MaxKingPor opened this issue Jan 9, 2023 · 4 comments
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization

Comments

@MaxKingPor
Copy link

Checklist

Installation method

third-party binary

Version

Kubo version: 0.17.0
Repo version: 12
System version: amd64/linux
Golang version: go1.19.1

Config

{
  "API": {
    "HTTPHeaders": {}
  },
  "Addresses": {
    "API": "/ip4/127.0.0.1/tcp/5001",
    "Announce": [],
    "AppendAnnounce": [],
    "Gateway": "/ip4/0.0.0.0/tcp/8080",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/0.0.0.0/udp/4001/quic"
    ]
  },
  "AutoNAT": {},
  "Bootstrap": null,
  "DNS": {
    "Resolvers": {}
  },
  "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
    }
  },
  "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": "12D3KooWB79RuMj37JfzuknH1cqGSW3DxkjaoaZAYboyKFfmFeqP"
  },
  "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": {
    "Interval": "12h",
    "Strategy": "all"
  },
  "Routing": {
    "Methods": null,
    "Routers": null,
    "Type": "dht"
  },
  "Swarm": {
    "AddrFilters": null,
    "ConnMgr": {},
    "DisableBandwidthMetrics": false,
    "DisableNatPortMap": false,
    "RelayClient": {},
    "RelayService": {},
    "ResourceMgr": {
      "Limits": {
        "AllowlistedSystem": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "AllowlistedTransient": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "Conn": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "PeerDefault": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "ProtocolDefault": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "ProtocolPeerDefault": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "ServiceDefault": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "ServicePeerDefault": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "Stream": {
          "Conns": 0,
          "ConnsInbound": 0,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 0,
          "StreamsOutbound": 0
        },
        "System": {
          "Conns": 0,
          "ConnsInbound": 1000,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 1000,
          "StreamsOutbound": 0
        },
        "Transient": {
          "Conns": 0,
          "ConnsInbound": 1000,
          "ConnsOutbound": 0,
          "FD": 0,
          "Memory": 0,
          "Streams": 0,
          "StreamsInbound": 1000,
          "StreamsOutbound": 0
        }
      }
    },
    "Transports": {
      "Multiplexers": {},
      "Network": {},
      "Security": {}
    }
  }
}

Description

Private network, using udp/quic protocol cannot be started

root@VM-0-8-debian:~/.ipfs# ipfs daemon
Initializing daemon...
Kubo version: 0.17.0
Repo version: 12
System version: amd64/linux
Golang version: go1.19.1
2023-01-09T16:12:47.829+0800	ERROR	core	core/builder.go:157	constructing the node: failed to listen on any addresses: [no transport for protocol]

Error: constructing the node (see log for full detail): failed to listen on any addresses: [no transport for protocol]
@MaxKingPor MaxKingPor added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Jan 9, 2023
@Jorropo
Copy link
Contributor

Jorropo commented Jan 9, 2023

@MaxKingPor you are using PNET right ?

@MaxKingPor
Copy link
Author

MaxKingPor commented Jan 9, 2023

no. I can listen to udp/quic without using private network

@ldhios
Copy link

ldhios commented Sep 6, 2023

have same issue

@aschmahmann
Copy link
Contributor

If you are using the PNET feature (i.e. an extra symmetric key encrypting your communications and segment them from other nodes) then QUIC is not supported (libp2p/go-libp2p#1432) which is why you will end up no supported transports if your config says to only use QUIC and PNET. If you enable TCP things should be fine.

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) need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

4 participants