<p>I tested this version and it started syncing on mainnet. The error <code>Network.Socket.connect: &lt;socket: 29&gt;: invalid argument (Invalid argument)</code> states that there may be an issue with one or more of the arguments you are providing in the CLI command is invalid. Can you check the arguments you are providing most likely an issue with $HOME environment variables? This one works for me:
<code>./bin/cardano-node run --topology topology.json --database-path db --socket-path node.socket --port 6001 --config config.json</code></p>

CC BY-SA 4.0
2024-07-08T16:02:42.853Z
Thanks; yes, there was the issue with $HOME variables.
Zeeshan
CC BY-SA 4.0
2024-07-08T15:30:33.990Z
2024-09-11T06:56:26.277Z
2024-09-11T06:56:26.277Z
ntfreem
<p>I am using the following <a href="https://book.play.dev.cardano.org/adv-mainnet.html" rel="nofollow noreferrer">config files</a> after downloading cardano-node &amp; cardano-cli from <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/8.12.2" rel="nofollow noreferrer">GitHub</a></p>
<p>However, when I run the following command to run cardano-node:</p>
<pre><code> cardano-node run \
   --topology $HOME/config-files/topology.json \
   --database-path $HOME/config-files/db \
   --socket-path $HOME/config-files/db/node.socket \
   --host-addr 127.0.0.1 \
   --port 3001 \
   --config $HOME/config-files/config.json
</code></pre>
<p>It tries to find peers but I get a typical error:</p>
<pre><code>cardano.node.PeerSelection:Info:64] [2024-07-08 13:32:40.65 UTC] TracePromoteColdFailed 3 0 3.15.67.21:3001 158.938876633654s Network.Socket.connect: &lt;socket: 29&gt;: invalid argument (Invalid argument)
</code></pre>
<p>and</p>
<pre><code>[ed-:cardano.node.PeerSelection:Info:64] [2024-07-08 13:48:43.75 UTC] TracePromoteColdPeers 3 0 (fromList [3.78.8.215:3001])
[ed-:cardano.node.ConnectionManager:Info:710] [2024-07-08 13:48:43.75 UTC] TrConnectionManagerCounters (ConnectionManagerCounters {fullDuplexConns = 0, duplexConns = 0, unidirectionalConns = 0, inboundConns = 0, outboundConns = 0})
[ed-:cardano.node.ConnectionManager:Info:710] [2024-07-08 13:48:43.75 UTC] TrConnectError (Just 127.0.0.1:3001) 3.78.8.215:3001 Network.Socket.connect: &lt;socket: 29&gt;: invalid argument (Invalid argument)
</code></pre>
<p>Also when I do the query:</p>
<pre><code>   cardano-cli query tip --mainnet --socket-path $HOME/config-files/db/node.socket
</code></pre>
<p>I get:</p>
<pre><code>{
    &quot;block&quot;: 0,
    &quot;epoch&quot;: 0,
    &quot;era&quot;: &quot;Byron&quot;,
    &quot;hash&quot;: &quot;d2d90d10993b3eb309f5485a5413cb9c9fe4f088e79b7b4e815dbbe8fcb8e4b7&quot;,
    &quot;slot&quot;: 0,
    &quot;slotInEpoch&quot;: 0,
    &quot;slotsToEpochEnd&quot;: 21600,
    &quot;syncProgress&quot;: &quot;0.00&quot;
}
</code></pre>
<p>Please help us setting up a full node (not a validator though). What is missing in it?</p>
<p>Thanks.</p>

<cardano-cli><cardano-node>
Cardano fullnode not syncing
# Cardano fullnode not syncing

(Asked by: username_0 on 2024-07-08)

I am using the following config files after downloading cardano-node & cardano-cli from GitHub
However, when I run the following command to run cardano-node:
 cardano-node run \
   --topology $HOME/config-files/topology.json \
   --database-path $HOME/config-files/db \
   --socket-path $HOME/config-files/db/node.socket \
   --host-addr 127.0.0.1 \
   --port 3001 \
   --config $HOME/config-files/config.json

It tries to find peers but I get a typical error:
cardano.node.PeerSelection:Info:64] [2024-07-08 13:32:40.65 UTC] TracePromoteColdFailed 3 0 3.15.67.21:3001 158.938876633654s Network.Socket.connect: : invalid argument (Invalid argument)

and
[ed-:cardano.node.PeerSelection:Info:64] [2024-07-08 13:48:43.75 UTC] TracePromoteColdPeers 3 0 (fromList [3.78.8.215:3001])
[ed-:cardano.node.ConnectionManager:Info:710] [2024-07-08 13:48:43.75 UTC] TrConnectionManagerCounters (ConnectionManagerCounters {fullDuplexConns = 0, duplexConns = 0, unidirectionalConns = 0, inboundConns = 0, outboundConns = 0})
[ed-:cardano.node.ConnectionManager:Info:710] [2024-07-08 13:48:43.75 UTC] TrConnectError (Just 127.0.0.1:3001) 3.78.8.215:3001 Network.Socket.connect: : invalid argument (Invalid argument)

Also when I do the query:
   cardano-cli query tip --mainnet --socket-path $HOME/config-files/db/node.socket

I get:
{
    "block": 0,
    "epoch": 0,
    "era": "Byron",
    "hash": "d2d90d10993b3eb309f5485a5413cb9c9fe4f088e79b7b4e815dbbe8fcb8e4b7",
    "slot": 0,
    "slotInEpoch": 0,
    "slotsToEpochEnd": 21600,
    "syncProgress": "0.00"
}

Please help us setting up a full node (not a validator though). What is missing in it?
Thanks.

**Tags:** cardano-cli, cardano-node

---

## 1 answers

### Answer by username_1 on 2024-07-08. Score: 1 | Accepted answer

I tested this version and it started syncing on mainnet. The error `Network.Socket.connect: : invalid argument (Invalid argument)` states that there may be an issue with one or more of the arguments you are providing in the CLI command is invalid. Can you check the arguments you are providing most likely an issue with $HOME environment variables? This one works for me:
`./bin/cardano-node run --topology topology.json --database-path db --socket-path node.socket --port 6001 --config config.json`

> **Comments:**
> **username_0**: Thanks; yes, there was the issue with $HOME variables.  

---

