# Nano /etc/systemd/system/cardano-node.service (systemctl / line 11 error)

**URL:** <https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610>\
**Category:** Operate a Stake Pool\
**Created:** [23 February 2021 19:04 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610 "2021-02-23T19:04:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 19:04 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/1 "2021-02-23T19:04:08Z")

</div>

cardano-node version  
cardano-node 1.25.1 - linux-x86\_64 - ghc-8.10  
git rev 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f

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

Feb 23 18:27:59xxxx bash[142655]: /home/zzz/cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: c ommand not found  
Feb 23 18:28:05 xxxx bash[142670]: /home/zzz/cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: c ommand not found  
Feb 23 18:28:10xxxx bash[142701]: /home/zzz/cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: c ommand not found

Line 11 in /etc/systemd/system/cardano-node.service (command=

WorkingDirectory= xxxx/cardano-my-node  
ExecStart = /bin/bash -c ‘xxxx/cardano-my-node/startBlockProducingNode.sh’

the bin bash should be the line 11, not sure what is wrong tho

sudo systemctl status cardano-node  
● 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 19:03:01 UTC; 838ms ago  
Process: 150238 ExecStart=/bin/bash -c /home/xxx/cardano-my-node/startBlockProducingNode.sh (code=exited, status=127)  
Main PID: 150238 (code=exited, status=127)

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 20:37 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/2 "2021-02-23T20:37:54Z")

</div>

Are you able to run the command manually? In your case, the command would be:

> /bin/bash -c ‘xxxx/cardano-my-node/startBlockProducingNode.sh

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 20:40 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/3 "2021-02-23T20:40:28Z")

</div>

I used to be able to

cardano-node: FatalError {fatalErrorMessage = "Cardano.Node.Run.handleSimpleNode .readTopologyFile: Is your topology file formatted correctly? The port and valen cy fields should be numerical. Error in $: not enough input. Expecting object va

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 20:42 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/4 "2021-02-23T20:42:07Z")

</div>

sudo systemctl status cardano-node  
● 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 20:41:40 UTC; 4s ago  
Process: 2746 ExecStart=/bin/bash -c /home/xxx/cardano-my-node/startBlockProducingNode.sh (code=exited, status=127)

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 20:46 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/5 "2021-02-23T20:46:15Z")

</div>

Could you paste the contents of your starting script? Status code 127 some part of your command was not found in your PATH. Most likely, cardano-node or when you run manually, your topology file.

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 20:50 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/6 "2021-02-23T20:50:49Z")

</div>

DIRECTORY=/home/xxx/cardano-my-node  
PORT=xxxx  
HOSTADDR=0.0.0.0  
TOPOLOGY={DIRECTORY}/mainnet-topology.json DB\_PATH={DIRECTORY}/db  
SOCKET\_PATH={DIRECTORY}/db/socket CONFIG={DIRECTORY}/mainnet-config.json  
KES={DIRECTORY}/kes.skey VRF={DIRECTORY}/vrf.skey  
CERT={DIRECTORY}/node.cert cardano-node run --topology {TOPOLOGY} --database-path {DB\_PATH} --socket-path {SOCKET\_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG} --shelley-kes-key {KES} --shelley-vrf-key {VRF} --shelley-operational-certificate {CERT}

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 20:56 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/7 "2021-02-23T20:56:07Z")

</div>

Maybe adding it as a block text in the forum would help the formatting? If I assume your newlines etc are in order, I take it your main command is:

> cardano-node run --topology {TOPOLOGY} --database-path {DB\_PATH} --socket-path {SOCKET\_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG} --shelley-kes-key {KES} --shelley-vrf-key {VRF} --shelley-operational-certificate {CERT}

An easy way out is probably to add the full path to cardano-node, as it seems systemd is unable to find it. In your case (if you’ve followed the coincashew guide?) that should be:

> /home/xxx/.local/bin/cardano-node run _your arguments goes here_

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 20:59 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/8 "2021-02-23T20:59:36Z")

</div>

> [@Jasper](#):
>
> /home/xxx/.local/bin/cardano-nod

my cardano folder is actually in git  
home/xxx/git/cardano-node

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:00 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/9 "2021-02-23T21:00:11Z")

</div>

where does that path go?

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:03 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/10 "2021-02-23T21:03:45Z")

</div>

You replace the last line of your startup script. If I interpret the file correctly, it should look something like this:

> DIRECTORY=/home/xxx/cardano-my-node  
> PORT=xxxx  
> HOSTADDR=0.0.0.0  
> TOPOLOGY={DIRECTORY}/mainnet-topology.json DB\_PATH={DIRECTORY}/db  
> SOCKET\_PATH={DIRECTORY}/db/socket CONFIG={DIRECTORY}/mainnet-config.json  
> KES={DIRECTORY}/kes.skey VRF={DIRECTORY}/vrf.skey  
> CERT={DIRECTORY}/node.cert  
> /home/xxx/git/cardano-node run --topology {TOPOLOGY} --database-path {DB\_PATH} --socket-path {SOCKET\_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG} --shelley-kes-key {KES} --shelley-vrf-key {VRF} --shelley-operational-certificate {CERT}

So we’ve added the entire path to your cardano-node binary in your startup script. Can’t promise it’ll work, but it won’t hurt either 🙂

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:04 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/11 "2021-02-23T21:04:14Z")

</div>

And obviously you’ll need to change the PORT variable to whatever you configure your port to 🙂

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:06 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/12 "2021-02-23T21:06:06Z")

</div>

./startBlockProducingNode.sh: line 11: /home/xxx/home/xxx/cardano-node: No such file or directory

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:06 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/13 "2021-02-23T21:06:51Z")

</div>

Hmm, thats not the PATH from my paste? There’s one /home/xxx to much?

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:08 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/14 "2021-02-23T21:08:54Z")

</div>

./startBlockProducingNode.sh: line 11: /home/xx/git/cardano-node/cardano-node: Is a directory

i tried it with out the cardano-node folder also

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:10 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/15 "2021-02-23T21:10:27Z")

</div>

now its doing this for some reason : after resetting back to normal

./startBlockProducingNode.sh  
InvalidYaml (Just (YamlException “Yaml file not found: /home/xxx/cardano-node/mainnet-config.json”))

cardano-node: YAML exception:  
Yaml file not found: /home/sss/cardano-node/mainnet-config.jsondii@:~/cardano-my-node$

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:10 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/16 "2021-02-23T21:10:55Z")

</div>

Oh, I thought that was were you kept your binary? Is it available for your regular user? Does

> which cardano-node

give you any output?

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:12 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/17 "2021-02-23T21:12:27Z")

</div>

I’m not sure what you mean by “resetting back to normal”? And not sure why you’re getting Yaml parsing errors when you’re inputting json… 🙂 Are you getting this error when you’re trying to run the script manually? Or when systemd is trying to run it?

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:12 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/18 "2021-02-23T21:12:34Z")

</div>

/home/xxx/.local/bin/cardano-node

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [23 February 2021 21:13 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/19 "2021-02-23T21:13:18Z")

</div>

that was just a manual execution of the command . /cardano-my-node$ ./startBlockProducingNode.sh

---

<div class="post-metadata">

**Author:** ![Jasper](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jasper/32/26925_2.png) [@Jasper](https://forum.cardano.org/u/Jasper)\
**Post date:** [23 February 2021 21:13 UTC](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610/20 "2021-02-23T21:13:53Z")

</div>

Yeah, thats the path I gave you first. Replace the path from my example above with this path. So instead of /home/xxx/git/cardano-node you write /home/xxx/.local/bin/cardano-node

[Next page](https://forum.cardano.org/t/nano-etc-systemd-system-cardano-node-service-systemctl-line-11-error/49610.md?page=2)
