Issue starting relay node

HI,

I am trying to start up my relay node but I am coming across the following error. My Producer is active and running.

cardano-node.service - Cardano node service
Loaded: loaded (/etc/systemd/system/cardano-node.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2021-02-23 21:22:52 UTC; 4s ago
Process: 101791 ExecStart=/bin/bash -c /home/ubuntu/cardano-my-node/startRelayNode1.sh (code=exited, status=127)
Main PID: 101791 (code=exited, status=127)

Thanks,
S

hello,

try journalctl - e - f - u cardano-node.service

Cheers,

Hi Alex,

I get the following:

Feb 23 21:30:34 ip-172-31-8-98 bash[103570]: /home/ubuntu/cardano-my-node/startRelayNode1.sh: line 9: cardano-node: command not found
Feb 23 21:30:34 ip-172-31-8-98 systemd[1]: cardano-node.service: Main process exited, code=exited, status=127/n/a
Feb 23 21:30:34 ip-172-31-8-98 systemd[1]: cardano-node.service: Failed with result ‘exit-code’.
Feb 23 21:30:39 ip-172-31-8-98 systemd[1]: cardano-node.service: Scheduled restart job, restart counter is at 297.
Feb 23 21:30:39 ip-172-31-8-98 systemd[1]: Stopped Cardano node service.
Feb 23 21:30:39 ip-172-31-8-98 systemd[1]: Started Cardano node service.

Thanks a million

nano startRelayNode1.sh
and check the line 9 from the script

cardano-node run --topology {TOPOLOGY} --database-path {DB_PATH} --socket-path ${SOCKET_PATH} --host-addr >

Sorry Alex

This is it

cardano-node run --topology {TOPOLOGY} --database-path {DB_PATH} --socket-path {SOCKET_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG}

can u make a screenshot?

your Producer has the same config? I think is something related with socket. .did you exported it?

can u try to run the script manually? maybe will show u more info about the error

I am using the manual by Coincashew and I followed all steps up until this point

https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node

weird, on guide the startup script looks different
can u compare it with ur Producer script?

image

Hi Alex,

I just got it fixed. Thanks a million is there anyway I can support?

cheers,
Steven

1 Like

No man, why you should do that :slight_smile:
take care!

1 Like

Hi Alex,

I stopped at the end of part 7. I got the node active last night but today I ran into the same issue. Would you have any tips? I tried everything I did yesterday.

Feb 24 20:07:54 ip-172-31-11-165 systemd[1]: cardano-node.service: Main process exited, code=exited, status=127/n/a
Feb 24 20:07:54 ip-172-31-11-165 systemd[1]: cardano-node.service: Failed with result ‘exit-code’.

Thanks,
Steven

Hello,

Type. journalctl -e -f -u cnode.service
or
journalctl -e -f -u cardano-node.service

Feb 24 20:15:10 ip-172-31-8-98 bash[412461]: /home/ubuntu/cardano-my-node/startRelayNode1.sh: line 9: cardano-node: command not found
Feb 24 20:15:10 ip-172-31-8-98 systemd[1]: cardano-node.service: Main process exited, code=exited, status=127/n/a
Feb 24 20:15:10 ip-172-31-8-98 systemd[1]: cardano-node.service: Failed with result ‘exit-code’.

nano startRelayNode1.sh

#!/bin/bash
DIRECTORY=/home/ubuntu/cardano-my-node
PORT=6000
HOSTADDR=0.0.0.0
TOPOLOGY={DIRECTORY}/mainnet-topology.json DB_PATH={DIRECTORY}/db
SOCKET_PATH={DIRECTORY}/db/socket CONFIG={DIRECTORY}/mainnet-config.json
cardano-node run --topology {TOPOLOGY} --database-path {DB_PATH} --socket-path {SOCKET_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG}

Looks like this?

image

Will I include \ (ones you circled) in my startrelaynode?