user4677: When following the instruction here
https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/building-running.md
I get an error at the last line
PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
    --config /home/user/relay/mainnet-config.yaml \
    --socket-path /home/user/relay/node.socket \
    --state-dir /home/user/relay/db \
    --schema-dir schema/

the error is
FatalError {fatalErrorMessage = "readSyncNodeConfig: Error parsing config: AesonException \"Error in $: key \\\"NetworkName\\\" not found\""}

Any any help or direction is appreaciated. Thank you

user5298: Make sure you are using the right config file. The error is indicating that the config file you are using does not have the NetworkName parameter.

4677: <p>When following the instruction here
<a href="https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/building-running.md" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/building-running.md</a>
I get an error at the last line</p>
<pre><code>PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
    --config /home/user/relay/mainnet-config.yaml \
    --socket-path /home/user/relay/node.socket \
    --state-dir /home/user/relay/db \
    --schema-dir schema/
</code></pre>
<p>the error is</p>
<pre><code>FatalError {fatalErrorMessage = &quot;readSyncNodeConfig: Error parsing config: AesonException \&quot;Error in $: key \\\&quot;NetworkName\\\&quot; not found\&quot;&quot;}
</code></pre>
<p>Any any help or direction is appreaciated. Thank you</p>
 5298: <p>Make sure you are using the right <a href="https://github.com/input-output-hk/cardano-db-sync/blob/master/config/mainnet-config.yaml" rel="nofollow noreferrer">config file</a>. The error is indicating that the config file you are using does not have the NetworkName parameter.</p>
