RTView didn't bind to the port

Hello all,
I just installed cardano-rt-view on the CentOS 7.0 through binaries, but when I’m trying to run the cardano-rt-view which is already configured, I got:

[rtview@uranus cardano-rt-view]$ ./cardano-rt-view
RTView: real-time watching for Cardano nodes

Saved configuration file is found. Do you want to use it? <Y/N>: Y
Listening on http:[cardano-rt-view:Notice:4] [2021-03-02 19:52:15.24 UTC] Starting service; hit CTRL-C to terminate…
/cardano-rt-view: TraceAcceptorSocketError “Network.Socket.listen: resource busy (Address in use)”

Is anyone expirienced this error?

Here is the output of cardano-rt-view-params.json:
{
“rtvConfig”: “”,
“rtvStatic”: “static”,
“rtvActiveNodeLife”: 120,
“rtvNotifications”: “”,
“rtvPort”: 8024
}

Should I use Grafana or EKG or RTView ? Which is the best solution?

Everything is working now… thanks anyway!

Can someone tell me why the relay node is not seeing the Slot No of the Producer node, but the Producer node sees the relay node Slot No:

@gmihaylov Could you please share you node config file? my node does not want to send any info to rt-view…

Yes, sure, here is the config of the Relay Node:

{

“traceForwardTo”: {
“tag”: “RemoteSocket”,
“contents”: [
“192.168.220.220”,
“5000”
]
},
“ApplicationName”: “cardano-sl”,
“ApplicationVersion”: 1,
“ByronGenesisFile”: “mainnet-byron-genesis.json”,
“ByronGenesisHash”: “5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb”,
“LastKnownBlockVersion-Alt”: 0,
“LastKnownBlockVersion-Major”: 3,
“LastKnownBlockVersion-Minor”: 0,
“MaxKnownMajorProtocolVersion”: 2,
“Protocol”: “Cardano”,
“RequiresNetworkMagic”: “RequiresNoMagic”,
“ShelleyGenesisFile”: “mainnet-shelley-genesis.json”,
“ShelleyGenesisHash”: “1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81”,
“TraceBlockFetchClient”: false,
“TraceBlockFetchDecisions”: true,
“TraceBlockFetchProtocol”: false,
“TraceBlockFetchProtocolSerialised”: false,
“TraceBlockFetchServer”: false,
“TraceChainDb”: true,
“TraceChainSyncBlockServer”: false,
“TraceChainSyncClient”: false,
“TraceChainSyncHeaderServer”: false,
“TraceChainSyncProtocol”: false,
“TraceDNSResolver”: true,
“TraceDNSSubscription”: true,
“TraceErrorPolicy”: true,
“TraceForge”: true,
“TraceHandshake”: false,
“TraceIpSubscription”: true,
“TraceLocalChainSyncProtocol”: false,
“TraceLocalErrorPolicy”: true,
“TraceLocalHandshake”: false,
“TraceLocalTxSubmissionProtocol”: false,
“TraceLocalTxSubmissionServer”: false,
“TraceMempool”: true,
“TraceMux”: false,
“TraceTxInbound”: false,
“TraceTxOutbound”: false,
“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”,
“TraceForwarderBK”
],
“cardano.node.resources”: [
“EKGViewBK”
],
“cardano.node.Forge.metrics”: [
“TraceForwarderBK”
]
},
“mapSubtrace”: {
“cardano.node.metrics”: {
“subtrace”: “Neutral”
}
}
},
“rotation”: {
“rpKeepFilesNum”: 10,
“rpLogLimitBytes”: 5000000,
“rpMaxAgeHours”: 24
},
“setupBackends”: [
“KatipBK”,
“TraceForwarderBK”
],
“setupScribes”: [
{
“scFormat”: “ScText”,
“scKind”: “StdoutSK”,
“scName”: “stdout”,
“scRotation”: null
}
]
}

Here is the RTView config:

{
"rotation": null,
"defaultBackends": [
    "KatipBK"
],
"setupBackends": [
    "KatipBK",
    "LogBufferBK",
    "TraceAcceptorBK"
],
"hasPrometheus": null,
"hasGraylog": null,
"hasGUI": null,
"traceForwardTo": null,
"traceAcceptAt": [
    {
        "remoteAddr": {
            "tag": "RemoteSocket",
            "contents": [
                "192.168.220.220",
                "5000"
            ]
        },
        "nodeName": "relay-node"
    },
    {
        "remoteAddr": {
            "tag": "RemoteSocket",
            "contents": [
                "192.168.220.220",
                "5001"
            ]
        },
        "nodeName": "block-producer-node"
    }
],
"defaultScribes": [
    [
        "StdoutSK",
        "stdout"
    ],
    [
        "FileSK",
        "/home/rtview/.local/share/cardano-rt-view-logs/cardano-rt-view.log"
    ]
],
"options": {
    "mapBackends": {
        "cardano-rt-view.acceptor": [
            "LogBufferBK",
            {
                "kind": "UserDefinedBK",
                "name": "ErrorBufferBK"
            }
        ]
    }
},
"setupScribes": [
    {
        "scMaxSev": "Emergency",
        "scName": "/home/rtview/.local/share/cardano-rt-view-logs/cardano-rt-view.log",
        "scRotation": {
            "rpLogLimitBytes": 50000,
            "rpKeepFilesNum": 10,
            "rpMaxAgeHours": 24
        },
        "scMinSev": "Debug",
        "scKind": "FileSK",
        "scFormat": "ScText",
        "scPrivacy": "ScPublic"
    },
    {
        "scMaxSev": "Emergency",
        "scName": "stdout",
        "scRotation": null,
        "scMinSev": "Notice",
        "scKind": "StdoutSK",
        "scFormat": "ScText",
        "scPrivacy": "ScPublic"
    }
],
"hasEKG": null,
"forwardDelay": null,
"minSeverity": "Info"

}

Yes - what was missing for me is that TraceForwarderBK

And also guide does not mention that real IP address is needed for RemoteSocket

“traceForwardTo”: {
“tag”: “RemoteSocket”,
“contents”: [
"0.0.0.0.0" -> “192.168.220.220”,
“5000”
]

thanks!

1 Like

If you’re still not getting data and your parameters seem to make sense, ensure you don’t have more than one traceForwardTo in your Relay Node config (configure with only one as shown above.) Sounds obvious now, right? My experience is you won’t get data if you do. I missed that nuance in the tutorial. Thanks laplasz for replying to my request for help.