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

Cardano Node 1.34.1 p2p enabled. #208

Closed
bakon11 opened this issue Apr 27, 2022 · 6 comments
Closed

Cardano Node 1.34.1 p2p enabled. #208

bakon11 opened this issue Apr 27, 2022 · 6 comments
Labels
bug Something isn't working won't fix / upstream issue An issue which is either not covered by Ogmios, or requires changes upstream first.

Comments

@bakon11
Copy link

bakon11 commented Apr 27, 2022

When running Cardano-node 1.34.1 with p2p enable ogmios won't connect or query.

Every time it just throws an Error especially when trying to query chain state:

1006: A connection was closed abnormally, when a status code is expected.

Not sure if this is to be expected since p2p is still in test phase but figure I'd report it.

@KtorZ
Copy link
Member

KtorZ commented Apr 28, 2022

Seems to relate to: IntersectMBO/cardano-node#3684

Do you have a reproduction path @bakon11 ? i.e. your node config + startup commands of both Ogmios and cardano-node?

@bakon11
Copy link
Author

bakon11 commented Apr 28, 2022

Yes sir exactly same problem here is the requested stuff.

Hopefully this helps.

Thanks

These are the two gihub tags/branches I've tested. Both when P2P is enabled Ogmios is having problems.

The minute I restart cardano node with p2p disabled, Ogmios works as expected.
cardano-node 1.34.1 - linux-aarch64 - ghc-8.10 git rev 73f9a746362695dc2cb63ba757fbcabb81733d23

cardano-node 1.34.1 - linux-aarch64 - ghc-8.10 git rev ef7661a156ad830a9d0ea96e35934ae1f7175f53

testnet-config.json
{
  "AlonzoGenesisFile": "testnet-alonzo-genesis.json",
  "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
  "ApplicationName": "cardano-sl",
  "ApplicationVersion": 0,
  "ByronGenesisFile": "testnet-byron-genesis.json",
  "ByronGenesisHash": "96fceff972c2c06bd3bb5243c39215333be6d56aaf4823073dca31afe5038471",
  "LastKnownBlockVersion-Alt": 0,
  "LastKnownBlockVersion-Major": 3,
  "LastKnownBlockVersion-Minor": 0,
  "MaxKnownMajorProtocolVersion": 2,
  "Protocol": "Cardano",
  "RequiresNetworkMagic": "RequiresMagic",
  "ShelleyGenesisFile": "testnet-shelley-genesis.json",
  "ShelleyGenesisHash": "849a1764f152e1b09c89c0dfdbcbdd38d711d1fec2db5dfa0f87cf2737a0eaf4",
  "EnableP2P": false,
  "TargetNumberOfRootPeers": 150,
  "TargetNumberOfKnownPeers": 150,
  "TargetNumberOfEstablishedPeers":75,
  "TargetNumberOfActivePeers": 50,
  "TestEnableDevelopmentNetworkProtocols": true,
  "TraceAcceptPolicy": true,
  "TraceBlockFetchClient": true,
  "TraceBlockFetchDecisions": true,
  "TraceBlockFetchProtocol": true,
  "TraceBlockFetchProtocolSerialised": true,
  "TraceBlockFetchServer": true,
  "TraceChainDb": true,
  "TraceChainSyncBlockServer": true,
  "TraceChainSyncClient": true,
  "TraceChainSyncHeaderServer": true,
  "TraceChainSyncProtocol": true,
  "TraceConnectionManager": true,
  "TraceDNSResolver": true,
  "TraceDNSSubscription": true,
  "TraceDiffusionInitialization": true,
  "TraceErrorPolicy": true,
  "TraceForge": true,
  "TraceHandshake": true,
  "TraceInboundGovernor": true,
  "TraceIpSubscription": true,
  "TraceLedgerPeers": true,
  "TraceLocalChainSyncProtocol": true,
  "TraceLocalErrorPolicy": true,
  "TraceLocalHandshake": true,
  "TraceLocalRootPeers": true,
  "TraceLocalTxSubmissionProtocol": true,
  "TraceLocalTxSubmissionServer": true,
  "TraceMempool": true,
  "TraceMux": true,
  "TracePeerSelection": true,
  "TracePeerSelectionActions": true,
  "TracePublicRootPeers": true,
  "TraceServer": true,
  "TraceTxInbound": true,
  "TraceTxOutbound": true,
  "TraceTxSubmissionProtocol": false,
  "TracingVerbosity": "NormalVerbosity",
  "TurnOnLogMetrics": true,
  "TurnOnLogging": true,
  "defaultBackends": [
    "KatipBK"
  ],
  "defaultScribes": [
    [
      "StdoutSK",
      "stdout"
    ]
  ],
  "hasEKG": 12788,
  "hasPrometheus": [
    "127.0.0.1",
    12798
  ],
  "minSeverity": "Info",
  "options": {
    "mapBackends": {
      "cardano.node.metrics": [
        "EKGViewBK"
      ],
      "cardano.node.resources": [
        "EKGViewBK"
      ]
    },
    "mapSubtrace": {
      "cardano.node.metrics": {
        "subtrace": "Neutral"
      }
    }
  },
  "rotation": {
    "rpKeepFilesNum": 10,
    "rpLogLimitBytes": 5000000,
    "rpMaxAgeHours": 24
  },
  "setupBackends": [
    "KatipBK"
  ],
  "setupScribes": [
    {
      "scFormat": "ScText",
      "scKind": "StdoutSK",
      "scName": "stdout",
      "scRotation": null
    }
  ]
 }
cardano node service
[Unit]
Description     = Cardano Wallet Testnet
Wants           = network-online.target
After           = network-online.target

[Service]
User            = box
Type            = simple
WorkingDirectory=/home/box/.cardanobox/app/cnode/bin/
ExecStart=/home/box/.cardanobox/app/cnode/bin/cardano-wallet serve \
    --testnet /home/box/.cardanobox/app/cnode/testnet/files/testnet-byron-genesis.json \
    --node-socket /home/box/.cardanobox/app/cnode/testnet/socket/tnode.socket \
    --database /home/box/.cardanobox/app/cnode/testnet/walletdb
KillSignal=SIGINT
RestartKillSignal=SIGINT
TimeoutStopSec=10
LimitNOFILE=32768
Restart=always
RestartSec=10
Environment=LD_LIBRARY_PATH=/usr/local/lib
Environment=PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

[Install]
WantedBy= multi-user.target
Ogmios service
[Unit]
Description     = Ogmios Testnet service
Wants           = network-online.target
After           = network-online.target

[Service]
User            = box
Type            = simple
WorkingDirectory=/home/box/.cardanobox/app/cnode/bin/
ExecStart=/home/box/.cardanobox/app/cnode/bin/ogmios \
    --node-socket /home/box/.cardanobox/app/cnode/testnet/socket/tnode.socket \
    --node-config /home/box/.cardanobox/app/cnode/testnet/files/testnet-config.json --host 0.0.0.0 --port 4200
KillSignal=SIGINT
RestartKillSignal=SIGINT
TimeoutStopSec=10
LimitNOFILE=32768
Restart=always
RestartSec=10
Environment=LD_LIBRARY_PATH=/usr/local/lib
Environment=PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

[Install]
WantedBy= multi-user.target

@KtorZ KtorZ added bug Something isn't working won't fix / upstream issue An issue which is either not covered by Ogmios, or requires changes upstream first. labels May 7, 2022
@KtorZ
Copy link
Member

KtorZ commented Jun 27, 2022

@bakon11 are you by any chance also observing this on the vasil-dev network? (see #230)

@bakon11
Copy link
Author

bakon11 commented Jun 27, 2022

@bakon11 are you by any chance also observing this on the vasil-dev network? (see #230)

I don't have or don't know to access to the vasil-dev network, but I am seeing the same behaviour on testnet using latest 1.35.0 P2P enabled and Ogmios 5.5.0-rc3.

If there is a config that will allow me to sync up to the vasil-dev I can sync a node up and try it out on there as well.

Thanks.

@KtorZ
Copy link
Member

KtorZ commented Jun 27, 2022

I am going to mark this one as duplicate, since we've now identified the problem in #230. Sorry for not looking into this earlier @bakon11, I was hoping that the issue would "fix itself" upstream as they'd finalize p2p but looks like it slipped through.

@KtorZ KtorZ closed this as completed Jun 27, 2022
@bakon11
Copy link
Author

bakon11 commented Jun 27, 2022

I am going to mark this one as duplicate, since we've now identified the problem in #230. Sorry for not looking into this earlier @bakon11, I was hoping that the issue would "fix itself" upstream as they'd finalize p2p but looks like it slipped through.

All good, Vasil is not a small upgrade and I kinda figured as well that 1.35 would have just resolved it hehe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working won't fix / upstream issue An issue which is either not covered by Ogmios, or requires changes upstream first.
Projects
None yet
Development

No branches or pull requests

2 participants