user1053: I have a testnet running and now want to attach ogmios server to the cardano node socket, so as to probe the blocks. The ogmios agent is compiled separately and now when i want to attach it to the socket using:
ogmios 
--host 0.0.0.0
--node-config $BASE_CONFIG 
--node-socket $SOCKET
I am getting the following output:
config is ./../../src/tconfig/testnet-config.json
socket is ./../state-node-shelly-testnet/node.socket
{"severity":"Warning","timestamp":"2021-10-29T20:47:04.921466233Z","thread":"4","message":{"tag":"OgmiosMetrics","metrics":{"recommendation":"run with '+RTS -T'"}},"version":"v4.0.0-59-gc02eeb5c"}
{"severity":"Info","timestamp":"2021-10-29T20:47:04.922465452Z","thread":"4","message":{"tag":"OgmiosNetwork","networkParameters":{"networkMagic":1097911063,"systemStart":"2019-07-24T20:20:16Z","slotsPerEpoch":432000}},"version":"v4.0.0-59-gc02eeb5c"}
{"severity":"Notice","timestamp":"2021-10-29T20:47:04.926252351Z","thread":"6","message":{"tag":"OgmiosHealth","healthCheck":{"tag":"HealthShutdown","reason":"AsyncCancelled"}},"version":"v4.0.0-59-gc02eeb5c"}
ogmios: Network.Socket.bind: resource busy (Address already in use)

I understand that cardano-node is using the socket and hence that error comes. But how then should ogmios work ?

user1053: ok. Later found that even if one runs the ogmios within a docker it actually attaches to the parent cardano-node process socket ! Strange. So only when i killed the docker process, then the host socket was free !

1053: <p>I have a testnet running and now want to attach ogmios server to the cardano node socket, so as to probe the blocks. The ogmios agent is compiled separately and now when i want to attach it to the socket using:</p>
<p>ogmios <br />
--host 0.0.0.0<br />
--node-config $BASE_CONFIG <br />
--node-socket $SOCKET</p>
<p>I am getting the following output:</p>
<pre><code>config is ./../../src/tconfig/testnet-config.json
socket is ./../state-node-shelly-testnet/node.socket
{&quot;severity&quot;:&quot;Warning&quot;,&quot;timestamp&quot;:&quot;2021-10-29T20:47:04.921466233Z&quot;,&quot;thread&quot;:&quot;4&quot;,&quot;message&quot;:{&quot;tag&quot;:&quot;OgmiosMetrics&quot;,&quot;metrics&quot;:{&quot;recommendation&quot;:&quot;run with '+RTS -T'&quot;}},&quot;version&quot;:&quot;v4.0.0-59-gc02eeb5c&quot;}
{&quot;severity&quot;:&quot;Info&quot;,&quot;timestamp&quot;:&quot;2021-10-29T20:47:04.922465452Z&quot;,&quot;thread&quot;:&quot;4&quot;,&quot;message&quot;:{&quot;tag&quot;:&quot;OgmiosNetwork&quot;,&quot;networkParameters&quot;:{&quot;networkMagic&quot;:1097911063,&quot;systemStart&quot;:&quot;2019-07-24T20:20:16Z&quot;,&quot;slotsPerEpoch&quot;:432000}},&quot;version&quot;:&quot;v4.0.0-59-gc02eeb5c&quot;}
{&quot;severity&quot;:&quot;Notice&quot;,&quot;timestamp&quot;:&quot;2021-10-29T20:47:04.926252351Z&quot;,&quot;thread&quot;:&quot;6&quot;,&quot;message&quot;:{&quot;tag&quot;:&quot;OgmiosHealth&quot;,&quot;healthCheck&quot;:{&quot;tag&quot;:&quot;HealthShutdown&quot;,&quot;reason&quot;:&quot;AsyncCancelled&quot;}},&quot;version&quot;:&quot;v4.0.0-59-gc02eeb5c&quot;}
ogmios: Network.Socket.bind: resource busy (Address already in use)
</code></pre>
<p>I understand that cardano-node is using the socket and hence that error comes. But how then should ogmios work ?</p>
 1053: <p>ok. Later found that even if one runs the ogmios within a docker it actually attaches to the parent cardano-node process socket ! Strange. So only when i killed the docker process, then the host socket was free !</p>
