Cardano-cli throws ServerError("handleStreamStart:strean Failed to find lca"))

Hello,

this is the second time that cardano-cli suddenly stops working. In this state a cardano-cli blockchain pull mainnet command throws always the following error and it looks like the only remedy is to create a new blockchain and fetch all blocks again.

thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: ProtocolError(ServerError(“handleStreamStart:strean Failed to find lca”))’, libcore/result.rs:1009:5

This happens on Ubuntu and I was not able to reproduce it on MacOS.

1 Like

Like you, it doesn’t happen on my mac. I’m gonna try on Ubuntu.

Also does not happen on my Ubuntu. I “rustup update” to 1.31 and git clone the latest from repo.

What sequence of actions did you take to get the error?

The data is held in a local directory, so perhaps a sequence of events leads to a bad state.

There is no easy way to reproduce this. Basically what I’m doing is:

cardano-cli blockchain pull mainnet to get the tip, for example 565d9efac90cb2961bdf12507c818855fee0117a1bd770ae90d117fd6ae75047

Then cardano-cli blockchain cat mainnet 565d9efac90cb2961bdf12507c818855fee0117a1bd770ae90d117fd6ae75047

Repeat.

The error was thrown after many weeks.

After 5 months, yesterday the problem occured again, and then again today:
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: ProtocolError(ServerError(“handleStreamStart:strean Failed to find lca”))’, libcore/result.rs:1009:5

cardano-cli version: 1.0.1