<p>Yes, i got the solution. When downloading the files directly using curl or wget command, i go the parsing error.</p>
<p>So i created the files manually using the touch command and inserted the content of the configuration with copy paste using vim linux command. It looks strange but it works like this.</p>
<p>Also i have done the same thing on my mac machine.</p>

CC BY-SA 4.0
2021-11-17T13:25:10.803Z
2021-11-17T13:25:10.803Z
Oussama Benmahmoud
<p>i have troubles running the cardano node on aws.
After downloading the node config files and running the node, i get this failure:</p>
<p><em><strong>AesonException &quot;Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String&quot;
cardano-node: Aeson exception:
Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String</strong></em></p>
<p>Could someone help me how to solve that?</p>
<p>Thanks!</p>

CC BY-SA 4.0
2021-11-16T16:31:42.443Z
Few questions: Are you following a tutorial? Is this for testnet or mainnet? Did you change the config files any after you downloaded them? I believe there is an issue in one of your config files's syntax.
Jacob - SNOWY Pool
CC BY-SA 4.0
2021-11-16T17:56:41.177Z
Additional to Anton questions, what is the command you're using to run the node?
georgeos
CC BY-SA 4.0
2021-11-17T12:48:04.360Z
I am following the official tutorial. I am running the mainnet. Here are the files:
curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-topology.json
curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-shelley-genesis.json
curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-config.json
curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-byron-genesis.json
curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-alonzo-genesis.json
Oussama Benmahmoud
CC BY-SA 4.0
2021-11-17T12:48:24.380Z
Here is the command to run the node: 
cardano-node run \
  --topology /home/ec2-user/cardano/mainnet-topology.json \
  --database-path /home/ec2-user/cardano/db \
  --socket-path /home/ec2-user/cardano/db/node.socket \
  --host-addr 127.0.0.1 \
  --port 3001 \
  --config /home/ec2-user/cardano/mainnet-config.json
Oussama Benmahmoud
CC BY-SA 4.0
2021-11-17T12:53:04.570Z
I have also tried to download the same files as the tutorial but i become als the same failure:curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-config.json
curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-byron-genesis.json
curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-shelley-genesis.json
curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-alonzo-genesis.json
curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-topology.json
Oussama Benmahmoud
CC BY-SA 4.0
2021-11-17T12:56:03.607Z
And as another information, i have successfully run the node locally on my mac machine with these configuration Files. But i have a trouble just on the aws ec2 linux instance!
Oussama Benmahmoud
<cardano-node>
Problem when running cardano node on aws
# Problem when running cardano node on aws

(Asked by: username_0 on 2021-11-16)

i have troubles running the cardano node on aws.
After downloading the node config files and running the node, i get this failure:

***AesonException "Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String"
cardano-node: Aeson exception:
Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String***

Could someone help me how to solve that?

Thanks!

**Tags:** cardano-node
> **Comments:**
> **username_1**: Few questions: Are you following a tutorial? Is this for testnet or mainnet? Did you change the config files any after you downloaded them? I believe there is an issue in one of your config files's syntax.  
> **username_2**: Additional to Anton questions, what is the command you're using to run the node?  
> **username_0**: I am following the official tutorial. I am running the mainnet. Here are the files: curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-topology.json curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-shelley-genesis.json curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-config.json curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-byron-genesis.json curl -O -J http://hydra.iohk.io/build/8111119/download/1/mainnet-alonzo-genesis.json  
> **username_0**: Here is the command to run the node:  cardano-node run \   --topology /home/ec2-user/cardano/mainnet-topology.json \   --database-path /home/ec2-user/cardano/db \   --socket-path /home/ec2-user/cardano/db/node.socket \   --host-addr 127.0.0.1 \   --port 3001 \   --config /home/ec2-user/cardano/mainnet-config.json  
> **username_0**: I have also tried to download the same files as the tutorial but i become als the same failure:curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-config.json curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-byron-genesis.json curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-shelley-genesis.json curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-alonzo-genesis.json curl -O -J http://hydra.iohk.io/build/7370192/download/1/mainnet-topology.json  
> **username_0**: And as another information, i have successfully run the node locally on my mac machine with these configuration Files. But i have a trouble just on the aws ec2 linux instance!  

---

## 1 answers

### Answer by username_0 on 2021-11-17. Score: 1

Yes, i got the solution. When downloading the files directly using curl or wget command, i go the parsing error.

So i created the files manually using the touch command and inserted the content of the configuration with copy paste using vim linux command. It looks strange but it works like this.

Also i have done the same thing on my mac machine.


---

