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

[node_info] peers_count not contains bootnode_addrs #235

Open
gpBlockchain opened this issue Oct 16, 2024 · 2 comments
Open

[node_info] peers_count not contains bootnode_addrs #235

gpBlockchain opened this issue Oct 16, 2024 · 2 comments

Comments

@gpBlockchain
Copy link

  1. Start the testnet fiber node
  2. query node_info
curl --location 'http://127.0.0.1:8228' --header 'Content-Type: application/json' --data '{ 
    "id": 42,
    "jsonrpc": "2.0",
    "method": "node_info","params": [{}]
}'
{"jsonrpc":"2.0","result":{"version":"0.1.0","commit_hash":"e44594f","public_key":"03d637cb223fe36b153d0b0d363e66f58846f3ad239f2813c1be6a844cfe9267ed","node_name":null,"peer_id":"QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q","addresses":["/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"],"chain_hash":"0x0000000000000000000000000000000000000000000000000000000000000000","open_channel_auto_accept_min_ckb_funding_amount":"0x3c5986200","auto_accept_channel_ckb_funding_amount":"0x1718c7e00","tlc_locktime_expiry_delta":"0x15180","tlc_min_value":"0x0","tlc_max_value":"0x0","tlc_fee_proportional_millionths":"0x3e8","channel_count":"0x0","pending_channel_count":"0x0","peers_count":"0x0","network_sync_status":"Running","udt_cfg_infos":[{"name":"RUSD","script":{"code_hash":"0x1142755a044bf2ee358cba9f2da187ce928c91cd4dc8692ded0337efa677d21a","hash_type":"type","args":"0x878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b"},"auto_accept_amount":"0x3b9aca00","cell_deps":[{"dep_type":"code","tx_hash":"0xed7d65b9ad3d99657e37c4285d585fea8a5fcaf58165d54dacf90243f911548b","index":"0x0"}]}]},"id":42}

4.return peers_count is 0.

expected

peers_count !=0

log

  2024-10-16T09:59:23.789671Z  INFO fnn: Starting node with git version e44594f
    at src/main.rs:51

  2024-10-16T09:59:23.802327Z DEBUG fnn: Parsed config: Config { fiber: Some(FiberConfig { base_dir: Some("/Users/guopenglin/PycharmProjects/ckb-py-integration-test/tmp/fiber/node1/fiber"), listening_addr: Some("/ip4/127.0.0.1/tcp/8227"), announce_listening_addr: Some(true), announced_addrs: [], bootnode_addrs: ["/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy", "/ip4/54.179.226.154/tcp/18228/p2p/QmdyQWjPtbK4NWWsvy8s69NGJaQULwgeQDT5ZpNDrTNaeV"], announced_node_name: None, network: Some(Testnet), open_channel_auto_accept_min_ckb_funding_amount: None, auto_accept_channel_ckb_funding_amount: None, tlc_locktime_expiry_delta: None, tlc_min_value: None, tlc_max_value: None, tlc_fee_proportional_millionths: None, auto_announce_node: None, announce_node_interval_seconds: None, sync_network_graph: None }), cch: None, rpc: Some(RpcConfig { listening_addr: Some("127.0.0.1:8228") }), ckb: Some(CkbConfig { base_dir: Some("/Users/guopenglin/PycharmProjects/ckb-py-integration-test/tmp/fiber/node1/ckb"), rpc_url: "https://testnet.ckbapp.dev/", udt_whitelist: Some(UdtCfgInfos([UdtArgInfo { name: "RUSD", script: UdtScript { code_hash: H256 ( [ 0x11, 0x42, 0x75, 0x5a, 0x04, 0x4b, 0xf2, 0xee, 0x35, 0x8c, 0xba, 0x9f, 0x2d, 0xa1, 0x87, 0xce, 0x92, 0x8c, 0x91, 0xcd, 0x4d, 0xc8, 0x69, 0x2d, 0xed, 0x03, 0x37, 0xef, 0xa6, 0x77, 0xd2, 0x1a ] ), hash_type: Type, args: "0x878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b" }, auto_accept_amount: Some(1000000000), cell_deps: [UdtCellDep { dep_type: Code, tx_hash: H256 ( [ 0xed, 0x7d, 0x65, 0xb9, 0xad, 0x3d, 0x99, 0x65, 0x7e, 0x37, 0xc4, 0x28, 0x5d, 0x58, 0x5f, 0xea, 0x8a, 0x5f, 0xca, 0xf5, 0x81, 0x65, 0xd5, 0x4d, 0xac, 0xf9, 0x02, 0x43, 0xf9, 0x11, 0x54, 0x8b ] ), index: 0 }] }])) }) }
    at src/main.rs:56
    in fnn::node with node: ""

  2024-10-16T09:59:23.869279Z  WARN fnn::ckb::config: Your secret file's permission is not less than 0o600, path: "/Users/guopenglin/PycharmProjects/ckb-py-integration-test/tmp/fiber/node1/ckb/key". Please fix it as soon as possible
    at src/ckb/config.rs:75
    in ractor::actor::Actor with id: "0.1", name: "ckb"
    in fnn::node with node: ""

  2024-10-16T09:59:23.870183Z  INFO fnn::ckb::actor: [ckb] funding lock args: Bytes(0xc8328aabcd9b9e8e64fbc566c4385c3bdeb219d7)
    at src/ckb/actor.rs:73
    in ractor::actor::Actor with id: "0.1", name: "ckb"
    in fnn::node with node: ""

  2024-10-16T09:59:23.875798Z  WARN fnn::ckb::config: Your secret file's permission is not less than 0o600, path: "/Users/guopenglin/PycharmProjects/ckb-py-integration-test/tmp/fiber/node1/ckb/key". Please fix it as soon as possible
    at src/ckb/config.rs:75
    in fnn::node with node: ""

  2024-10-16T09:59:23.876135Z  INFO fnn: Starting fiber
    at src/main.rs:101
    in fnn::node with node: ""

  2024-10-16T09:59:23.880408Z  INFO fnn::fiber::network: Started listening tentacle on "/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q", peer id PeerId(QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q), announced addresses ["/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"]
    at src/fiber/network.rs:3332
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"
    in fnn::node with node: ""

  2024-10-16T09:59:23.880724Z DEBUG fnn::fiber::network: Trying to sync network graph with peers [(PeerId(QmXrBt7SqNnbzsSQxx3xNqE2QDcVuf5V8oXh6dMCA1dbjp), "/ip4/127.0.0.1/tcp/8230/p2p/QmXrBt7SqNnbzsSQxx3xNqE2QDcVuf5V8oXh6dMCA1dbjp")] with height 0 and last update 1729072357504
    at src/fiber/network.rs:3363
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"
    in fnn::node with node: ""

  2024-10-16T09:59:24.951199Z DEBUG fnn::fiber::network: Created new node announcement message: NodeAnnouncement { signature: Some(EcdsaSignature(304402204aadf416b2c5296b376cca68d785bdf7b009ac01673bdab1e2709cf7fbbb07ce02204a3a1cbf26c5cd06f39716a4f63b692fa1e8b0f89a8cec27dd185ec9f435aa86)), features: 0, version: 1729072764946, node_id: Pubkey(PublicKey(ed6792fe4c846abec113289f23adf34688f5663e360d0b3d156be33f22cb37d6bd1dae04f33c75008d3e97e0f776e6d8945e2156bd7119f2aa2256c2ecdc51c9)), alias: AnnouncedNodeName(), addresses: ["/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"], chain_hash: Hash256(0x0000000000000000000000000000000000000000000000000000000000000000), auto_accept_min_ckb_funding_amount: 16200000000, udt_cfg_infos: UdtCfgInfos([UdtArgInfo { name: "RUSD", script: UdtScript { code_hash: H256 ( [ 0x11, 0x42, 0x75, 0x5a, 0x04, 0x4b, 0xf2, 0xee, 0x35, 0x8c, 0xba, 0x9f, 0x2d, 0xa1, 0x87, 0xce, 0x92, 0x8c, 0x91, 0xcd, 0x4d, 0xc8, 0x69, 0x2d, 0xed, 0x03, 0x37, 0xef, 0xa6, 0x77, 0xd2, 0x1a ] ), hash_type: Type, args: "0x878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b" }, auto_accept_amount: Some(1000000000), cell_deps: [UdtCellDep { dep_type: Code, tx_hash: H256 ( [ 0xed, 0x7d, 0x65, 0xb9, 0xad, 0x3d, 0x99, 0x65, 0x7e, 0x37, 0xc4, 0x28, 0x5d, 0x58, 0x5f, 0xea, 0x8a, 0x5f, 0xca, 0xf5, 0x81, 0x65, 0xd5, 0x4d, 0xac, 0xf9, 0x02, 0x43, 0xf9, 0x11, 0x54, 0x8b ] ), index: 0 }] }]) }, previous None
    at src/fiber/network.rs:2293
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"
    in fnn::node with node: ""

  2024-10-16T09:59:24.951810Z DEBUG fnn::fiber::graph: Adding node to network graph: NodeInfo { node_id: Pubkey(PublicKey(ed6792fe4c846abec113289f23adf34688f5663e360d0b3d156be33f22cb37d6bd1dae04f33c75008d3e97e0f776e6d8945e2156bd7119f2aa2256c2ecdc51c9)), timestamp: 1729072764951, anouncement_msg: NodeAnnouncement { signature: Some(EcdsaSignature(304402204aadf416b2c5296b376cca68d785bdf7b009ac01673bdab1e2709cf7fbbb07ce02204a3a1cbf26c5cd06f39716a4f63b692fa1e8b0f89a8cec27dd185ec9f435aa86)), features: 0, version: 1729072764946, node_id: Pubkey(PublicKey(ed6792fe4c846abec113289f23adf34688f5663e360d0b3d156be33f22cb37d6bd1dae04f33c75008d3e97e0f776e6d8945e2156bd7119f2aa2256c2ecdc51c9)), alias: AnnouncedNodeName(), addresses: ["/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"], chain_hash: Hash256(0x0000000000000000000000000000000000000000000000000000000000000000), auto_accept_min_ckb_funding_amount: 16200000000, udt_cfg_infos: UdtCfgInfos([UdtArgInfo { name: "RUSD", script: UdtScript { code_hash: H256 ( [ 0x11, 0x42, 0x75, 0x5a, 0x04, 0x4b, 0xf2, 0xee, 0x35, 0x8c, 0xba, 0x9f, 0x2d, 0xa1, 0x87, 0xce, 0x92, 0x8c, 0x91, 0xcd, 0x4d, 0xc8, 0x69, 0x2d, 0xed, 0x03, 0x37, 0xef, 0xa6, 0x77, 0xd2, 0x1a ] ), hash_type: Type, args: "0x878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b" }, auto_accept_amount: Some(1000000000), cell_deps: [UdtCellDep { dep_type: Code, tx_hash: H256 ( [ 0xed, 0x7d, 0x65, 0xb9, 0xad, 0x3d, 0x99, 0x65, 0x7e, 0x37, 0xc4, 0x28, 0x5d, 0x58, 0x5f, 0xea, 0x8a, 0x5f, 0xca, 0xf5, 0x81, 0x65, 0xd5, 0x4d, 0xac, 0xf9, 0x02, 0x43, 0xf9, 0x11, 0x54, 0x8b ] ), index: 0 }] }]) } }
    at src/fiber/graph.rs:239
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"
    in fnn::node with node: ""

  2024-10-16T09:59:24.953932Z  WARN fnn::ckb::config: Your secret file's permission is not less than 0o600, path: "/Users/guopenglin/PycharmProjects/ckb-py-integration-test/tmp/fiber/node1/ckb/key". Please fix it as soon as possible
    at src/ckb/config.rs:75
    in ractor::actor::Actor with id: "0.3", name: "watchtower"
    in fnn::node with node: ""

  2024-10-16T09:59:24.954149Z  INFO fnn: Starting rpc
    at src/main.rs:222
    in fnn::node with node: ""

  2024-10-16T09:59:24.954636Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(NetworkStarted(PeerId(QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q), "/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q", ["/ip4/127.0.0.1/tcp/8227/p2p/QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"]))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.955103Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(ListenStarted { address: "/ip4/127.0.0.1/tcp/8227" }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.955547Z DEBUG fnn::fiber::network: Handling command: ConnectPeer("/ip4/127.0.0.1/tcp/8230/p2p/QmXrBt7SqNnbzsSQxx3xNqE2QDcVuf5V8oXh6dMCA1dbjp")
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.955876Z DEBUG fnn::fiber::network: Handling command: ConnectPeer("/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy")
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.955947Z DEBUG fnn::fiber::network: Handling command: ConnectPeer("/ip4/54.179.226.154/tcp/18228/p2p/QmdyQWjPtbK4NWWsvy8s69NGJaQULwgeQDT5ZpNDrTNaeV")
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.957305Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceError(DialerError { address: "/ip4/127.0.0.1/tcp/8230/p2p/QmXrBt7SqNnbzsSQxx3xNqE2QDcVuf5V8oXh6dMCA1dbjp", error: TransportError(Io(Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:24.957388Z ERROR fnn::fiber::network: Dialer error: "/ip4/127.0.0.1/tcp/8230/p2p/QmXrBt7SqNnbzsSQxx3xNqE2QDcVuf5V8oXh6dMCA1dbjp" -> TransportError(Io(Os { code: 61, kind: ConnectionRefused, message: "Connection refused" }))
    at src/fiber/network.rs:1000
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:25.264281Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(SessionOpen { session_context: SessionContext { id: SessionId(1), address: "/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy", ty: Outbound, remote_pubkey: Some(0x024714ca19abea4ddc0f3863ffdfb2e2cee76af87c477de4bc67c74a83f8140042), closed: false, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:25.264899Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(SessionOpen { session_context: SessionContext { id: SessionId(2), address: "/ip4/54.179.226.154/tcp/18228/p2p/QmdyQWjPtbK4NWWsvy8s69NGJaQULwgeQDT5ZpNDrTNaeV", ty: Outbound, remote_pubkey: Some(0x0313dcf9cf18711b1b473a78ea56222dc44dcbfdf559d24dd937a0657d3bcb108f), closed: false, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:35.121283Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceError(ProtocolSelectError { proto_name: None, session_context: SessionContext { id: SessionId(1), address: "/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy", ty: Outbound, remote_pubkey: Some(0x024714ca19abea4ddc0f3863ffdfb2e2cee76af87c477de4bc67c74a83f8140042), closed: true, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:35.121566Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceError(ProtocolSelectError { proto_name: None, session_context: SessionContext { id: SessionId(2), address: "/ip4/54.179.226.154/tcp/18228/p2p/QmdyQWjPtbK4NWWsvy8s69NGJaQULwgeQDT5ZpNDrTNaeV", ty: Outbound, remote_pubkey: Some(0x0313dcf9cf18711b1b473a78ea56222dc44dcbfdf559d24dd937a0657d3bcb108f), closed: true, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:35.121673Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(SessionClose { session_context: SessionContext { id: SessionId(2), address: "/ip4/54.179.226.154/tcp/18228/p2p/QmdyQWjPtbK4NWWsvy8s69NGJaQULwgeQDT5ZpNDrTNaeV", ty: Outbound, remote_pubkey: Some(0x0313dcf9cf18711b1b473a78ea56222dc44dcbfdf559d24dd937a0657d3bcb108f), closed: true, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T09:59:35.121764Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(SessionClose { session_context: SessionContext { id: SessionId(1), address: "/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy", ty: Outbound, remote_pubkey: Some(0x024714ca19abea4ddc0f3863ffdfb2e2cee76af87c477de4bc67c74a83f8140042), closed: true, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T10:00:01.307043Z DEBUG fnn::rpc::info: Error parsing "params" as "NodeInfoParams": ErrorObject { code: InvalidParams, message: "Invalid params", data: Some(RawValue("No more params")) }
    at src/rpc/info.rs:68

  2024-10-16T10:00:07.895021Z DEBUG fnn::fiber::network: Handling command: NodeInfo((), RpcReplyPort { port: Sender { inner: Some(Inner { state: State { is_complete: false, is_closed: false, is_rx_task_set: true, is_tx_task_set: false } }) }, timeout: None })
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T10:00:15.492532Z DEBUG fnn::fiber::network: Handling command: NodeInfo((), RpcReplyPort { port: Sender { inner: Some(Inner { state: State { is_complete: false, is_closed: false, is_rx_task_set: true, is_tx_task_set: false } }) }, timeout: None })
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

  2024-10-16T10:04:36.681174Z DEBUG fnn::fiber::network: Handling command: NodeInfo((), RpcReplyPort { port: Sender { inner: Some(Inner { state: State { is_complete: false, is_closed: false, is_rx_task_set: true, is_tx_task_set: false } }) }, timeout: None })
    at src/fiber/network.rs:1197
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"


@contrun
Copy link
Collaborator

contrun commented Oct 16, 2024

Before processing NodeInfo rpc, there is a session closed log

2024-10-16T09:59:35.121764Z DEBUG fnn::fiber::network: Handling event: NetworkServiceEvent(ServiceEvent(SessionClose { session_context: SessionContext { id: SessionId(1), address: "/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy", ty: Outbound, remote_pubkey: Some(0x024714ca19abea4ddc0f3863ffdfb2e2cee76af87c477de4bc67c74a83f8140042), closed: true, pending_data_size: 0 } }))
    at src/fiber/network.rs:992
    in ractor::actor::Actor with id: "0.2", name: "Network QmSui565mCFEPAmgTWyz6GY4x8ERUj1J2MXGpjUr7zcy6q"

The error here seems to be ServiceError(ProtocolSelectError. Can you try another test with both nodes running the same fiber node program? I don't know what happened. Maybe there are some incompatible changes unknowingly slipped into the code base.

@contrun
Copy link
Collaborator

contrun commented Oct 29, 2024

While developing #263, I found exactly the same error ServiceError(ProtocolSelectError. The root cause of the error ServiceError(ProtocolSelectError in that case is that tentacle does not provide any guarantee in the dispatching of events from different sessions, which means the disconnection event of previous session may come after the connection event of current session, which caused the other node to think we're establishing a new connection to it. And it will report RepeatedConnection and refuse our connection. We will then report ServiceError(ProtocolSelectError. It is plausible that this is the same case. We may have tried to reconnect to the boot node too soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants