I am able to start the testnet in passive mode but not with sudo systemctl start cardano-node. Any assistance would greatly appreciated.
cat > $NODE_HOME/startRelayNode1.sh << EOF
#!/bin/bash
DIRECTORY=NODE_HOME
PORT=3001
HOSTADDR=0.0.0.0
TOPOLOGY=\${DIRECTORY}/{NODE_CONFIG}-topology.json
DB_PATH=${DIRECTORY}/db
SOCKET_PATH=${DIRECTORY}/db/socket
CONFIG=${DIRECTORY}/test-config.json
/home/ec2-user/cardano-node/cardano-node run --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}
EOF
cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–host-addr 0.0.0.0
–port 3001
–config testnet-config.json
Greetings Alexandru,
Sorry for the late reply. Thank you for the information. I have gone through step 7 numerous times trying to find if something was missed. I noticed that the cardano-cli file didn’t transfer. I fixed that issue but the auto process still doesn’t run. The cardano run script works just fine. Any thoughts?
Gene
Here’s the updated script:
cat > $NODE_HOME/startRelayNode1.sh << EOF
#!/bin/bash
DIRECTORY=NODE_HOME
PORT=6000
HOSTADDR=0.0.0.0
TOPOLOGY=\${DIRECTORY}/{NODE_CONFIG}-topology.json
DB_PATH=${DIRECTORY}/db
SOCKET_PATH=${DIRECTORY}/db/socket
CONFIG=${DIRECTORY}/${NODE_CONFIG}-config.json
/usr/local/bin/cardano-node run --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}
EOF
did u ran
Add execute permissions to the startup script.
chmod +x $NODE_HOME/startBlockProducingNode.sh
and also for the systemd file
sudo mv $NODE_HOME/cardano-node.service /etc/systemd/system/cardano-node.service
sudo chmod 644 /etc/systemd/system/cardano-node.service
type cd /etc/systemd/system/
ls -l
cat cardano-node.service
Unfortunately, it is still doing the same thing. Is there a command to see why the automatic command process is failing? I have been using sudo systemctl status cardano-node which doesn’t give much detail. Thanks again!
Gene
journalctl -e -f -u cardano-node.service
Nothing new in the output
cardano-node.service: main process exited, code=exited, status=127/n/a
.ec2.internal systemd[1]: Unit cardano-node.service entered failed state.
.ec2.internal systemd[1]: cardano-node.service failed.
.ec2.internal systemd[1]: cardano-node.service holdoff time over, scheduling restart.
.ec2.internal systemd[1]: Started Cardano node service.
.ec2.internal systemd[1]: Starting Cardano node service…
Why would this script work?
cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–host-addr 0.0.0.0
–port 3001
–config testnet-config.json
Thanks!
cat or nano /etc/systemd/system/cardano-node.service
Why would this script work?
Because u are running it manualy… from the directory… perhaps path are the issue in ur case
I will check the paths again.
Thanks.
1 Like
It was someone here with same problem
@Setiaman_Lee can guide u
Thx,
Thank you @Alexd1985 and @Setiaman_Lee for your assistance. I deleted from test AWS Linux servers and recreated them in AWS Ubuntu and they work as planned.
2 Likes
Hi @hoyt1969 I just got the same error with
cardano-node.service: main process exited, code=exited, status=127/n/a
.ec2.internal systemd[1]: Unit cardano-node.service entered failed state.
.ec2.internal systemd[1]: cardano-node.service failed.
.ec2.internal systemd[1]: cardano-node.service holdoff time over, scheduling restart.
.ec2.internal systemd[1]: Started Cardano node service.
.ec2.internal systemd[1]: Starting Cardano node service…
Is there only to solve it is use ubuntu server instead of aws linux?