user6415: I am executing the following query and then I am getting the following error.
The query I am executing.
cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063

And the error I am getting.
Command failed: query utxo  Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH  Error: "CARDANO_NODE_SOCKET_PATH"

How do i debug this?

user4302: 
Ensure that cardano-node is running.
open a new terminal window, and enter nano ~/.bashrc
Scroll to the bottom of the file and add the following line:

EXPORT CARDANO_NODE_SOCKET_PATH=/home/user/cardnao/db/socket (or whatever the path is to the socket in your db folder)

Save the file and exit, then in the same terminal window, type: source ~/.bashrc and hit enter.
Now things should work. To check if the socket path is recognized, run:

cardano-cli query tip --testnet-magic 1097911063, and you should receive a sync status update. Comment if you're still getting an error.

6415: <p>I am executing the following query and then I am getting the following error.</p>
<p>The query I am executing.</p>
<pre><code>cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063
</code></pre>
<p>And the error I am getting.</p>
<pre><code>Command failed: query utxo  Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH  Error: &quot;CARDANO_NODE_SOCKET_PATH&quot;
</code></pre>
<p>How do i debug this?</p>
 4302: <ol>
<li>Ensure that <code>cardano-node</code> is running.</li>
<li>open a new terminal window, and enter <code>nano ~/.bashrc</code></li>
<li>Scroll to the bottom of the file and add the following line:</li>
</ol>
<p><code>EXPORT CARDANO_NODE_SOCKET_PATH=/home/user/cardnao/db/socket</code> (or whatever the path is to the socket in your <code>db</code> folder)</p>
<ol start="4">
<li>Save the file and exit, then in the same terminal window, type: <code>source ~/.bashrc</code> and hit enter.</li>
<li>Now things should work. To check if the socket path is recognized, run:</li>
</ol>
<p><code>cardano-cli query tip --testnet-magic 1097911063</code>, and you should receive a sync status update. Comment if you're still getting an error.</p>
