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

cannot deserialize packet / failed to establish connection with the node #199

Open
liv-io opened this issue Nov 25, 2024 · 1 comment
Open

Comments

@liv-io
Copy link

liv-io commented Nov 25, 2024

Hello,

I am unable to synchronize carp from scratch in the preprod network. The logs show the following error message:

2024-11-25T07:38:04.507880Z  INFO carp: Starting Carp
2024-11-25T07:38:04.507891Z  INFO carp: Execution plan /indexer/execution_plans/default.toml
2024-11-25T07:38:04.508025Z  INFO carp: Config file PathBuf { inner: "/var/local/carp/config/default.yml" }
2024-11-25T07:38:04.515319Z  INFO carp::genesis: Parsing genesis file...
2024-11-25T07:38:04.518102Z  INFO carp::genesis: Finished parsing genesis file after 2.774732ms
2024-11-25T07:38:04.518111Z  INFO carp::genesis: Inserting genesis data into database...
2024-11-25T07:38:04.518310Z  INFO carp::genesis: Starting sync based on genesis hash d4b8de7a11d929a323373cbab6c1a9bdc931beffff11db111cf9d57356ee1937
2024-11-25T07:38:04.521923Z  INFO carp::genesis: Finished inserting genesis data after 3.81098ms
2024-11-25T07:38:04.528942Z  INFO cardano_net: connected to 127.0.0.1:30000 (127.0.0.1)
2024-11-25T07:38:04.529187Z  INFO cardano_net::stream: [82, 2, 82, 0, 82, D, E]
2024-11-25T07:38:04.529237Z ERROR cardano_net::stream: cannot deserialize packet cardano_sdk::protocol::handshake::HandshakeNode->Refuse->field0->cardano_sdk::protocol::handshake::RefuseReason->VersionMismatch->field0->cardano_sdk::protocol::basic::Versions->cardano_sdk::protocol::basic::Version: Custom("unknown version : 13")
Error: Failed to establish connection with the node

Caused by:
    0: protocol error Handshake reply but got an error decoding cardano_sdk::protocol::handshake::HandshakeNode->Refuse->field0->cardano_sdk::protocol::handshake::RefuseReason->VersionMismatch->field0->cardano_sdk::protocol::basic::Versions->cardano_sdk::protocol::basic::Version: Custom("unknown version : 13")1: Handshake reply but got an error decoding cardano_sdk::protocol::handshake::HandshakeNode->Refuse->field0->cardano_sdk::protocol::handshake::RefuseReason->VersionMismatch->field0->cardano_sdk::protocol::basic::Versions->cardano_sdk::protocol::basic::Version: Custom("unknown version : 13")
* Connection to 'cardano-node' on address '127.0.0.1:30000' was successful.
* Connection to 'postgresql' on address '127.0.0.1:5432' was successful.
Applying all pending migrations
No pending migrations

Resynchronizing Carp from scratch, including completely dropping the PostgreSQL database, did not resolve the issue for me.

Setup

Network

PreProd

Specifications

The hardware specifications are:

  • 4 cores
  • 10 GB
  • 4 NVMe drives in RAID-5

Versions

The software versions are:

  • Debian 12
  • cardano-node 10.1.2
  • postgresql 15.x
  • carp 3.3.0

Configuration

  • default.yml

    source:
      type: cardano_net
      relay:
        - 127.0.0.1
        - 30000
    sink:
      type: cardano
      db:
        type: postgres
        database_url: postgresql://carp:[email protected]:5432/carp
      network: preprod # preview / preprod / testnet
    start_block:
    

Please let me know if I need to provide further details about the setup.

Thank you for your help.

@ecioppettini
Copy link
Contributor

This should be fixed when we merge #187

Although if we are not going to merge that soon maybe we could port only the source-related changes from there to the main branch (which require updating dcspark core to the branch were we use pallas_network instead of cardano_net and updating some interfaces).

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