Why I downgraded back to version 1.33.0

Version 1.34.0 provides some extra functionality which seems to be mostly “nice to have” features. Eg: You can check the mempool, you can run a leaderlog without needing cncli, calculate costs of plutus scripts etc.

On the other hand, version 1.34.0, if run in P2P mode, breaks cardano-cli so that it is unusable. Eg:

CARDANO_NODE_SOCKET_PATH='/run/cardano/mainnet-node.socket' cardano-cli query tip --mainnet

MuxError (MuxIOException writev: resource vanished (Broken pipe)) “(sendAll errored)”
cardano-cli: MuxIOException writev: resource vanished (Broken pipe) “(sendAll errored)”

See this link: [BUG] - cardano-cli fails with `MuxError` when p2p is enabled · Issue #3568 · input-output-hk/cardano-node · GitHub

Also, version 1.34.0 floods your logs with information about all these transactions being added to your mempool and there seems to be no way to switch this off.

Does anyone know if there is any “must have” essential features in 1.34.0?

There was a bug with 1.34.0 where Trace configuration categories were messed up. This has been fixed and pushed to the branch named “release/1.34”. It contains 1.34.0 + the fixed trace logging.

If you’re just running a node without too much frills there are no “must have” features in 1.34.0 currently.

2 Likes

Thanks @weebl2000
So this should fix the logging config being ignored:

git clone https://github.com/input-output-hk/cardano-node.git
cd cardano-node
git fetch --all --recurse-submodules --tags
git checkout release/1.34

I am recompiling…

Now about the P2P conflict:

I don’t understand git enough. Is there a way that I can pull in the code changes to do with the P2P conflict? These are outlined at: [BUG] - cardano-cli fails with `MuxError` when p2p is enabled · Issue #3568 · input-output-hk/cardano-node · GitHub

What git commands do I need to pull in those changes?

You can try using the specific commit from ouroboros-network with the fix:

48ff9f3a9876713e87dc302e567f5747f21ad720

And use this in building cardano-node. Like so: Cherry-pick fix for p2p · weebl2000/cardano-node@9c77b3f · GitHub

image

And then rebuilding. No guarantees that everything will work, since there might be other changes that are incompatible but it’s worth a try. I tried it and it at least compiles, that’s saying a lot when dealing with Haskell programs. :smiley:

1 Like

I can confirm that not only does it compile with these changes but it appears to run properly.

I now have one of my relays running in P2P mode, with mempool logging off, and cardano-cli does work. I have tested running “cardano-cli query tip” as well as using cardano-cli for the leadership schedule. Both give correct results.

To compile with the logging config fix as well as the P2P fix:

git clone https://github.com/input-output-hk/cardano-node.git
cd cardano-node
git fetch --all --recurse-submodules --tags
git checkout release/1.34
sed -i 's/tag: 4fac197b6f0d2ff60dc3486c593b68dc00969fbf/tag: 48ff9f3a9876713e87dc302e567f5747f21ad720/g' cabal.project

Then compile.

2 Likes

Good to hear. :slight_smile:

Does this still work with 1.34.1?

See my other post about P2P with 1.34.1: