# Cardano-node.service (failed to load environment files) (failed to run 'start' t ask) (failed with result 'resources'(failed to start Cardano node service)

**URL:** <https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484>\
**Category:** Operate a Stake Pool\
**Created:** [27 February 2021 20:21 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484 "2021-02-27T20:21:11Z")\
**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:** [27 February 2021 20:21 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/1 "2021-02-27T20:21:11Z")

</div>

cardano-node.service - Cardano node service  
Loaded: loaded (/etc/systemd/system/cardano-node.service; enabled; vendor preset: enabled)  
Active: activating (auto-restart) (Result: resources) since Sat 2021-02-27 20:17:58 UTC; 2s ago

Feb 27 20:17:58 ip-s systemd[1]: cardano-node.service: Scheduled restart job, restart counter is at 69.  
Feb 27 20:17:58 ip-x systemd[1]: Stopped Cardano node service.  
Feb 27 20:17:58 ip-x systemd[1]: cardano-node.service: Failed to load environment files: No such file or directory  
Feb 27 20:17:58 x systemd[1]: cardano-node.service: Failed to run ‘start’ task: No such file or directory  
Feb 27 20:17:58 x systemd[1]: cardano-node.service: Failed with result ‘resources’.  
Feb 27 20:17:58 ipx systemd[1]: Failed to start Cardano node service.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 20:28 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/2 "2021-02-27T20:28:13Z")

</div>

journalctl -e -f -u cnode.service

---

<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:** [27 February 2021 20:30 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/3 "2021-02-27T20:30:08Z")

</div>

![asdasd](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/b/e/be57e69fbff5611a8bd590a67daa9d60b8f08cf9.png)

---

<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:** [27 February 2021 20:30 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/4 "2021-02-27T20:30:55Z")

</div>

cnode.service: Changing to the requested working directory failed: No such file or directory  
Feb 27 20:30:13 systemd[3945]: cnode.service: Failed at step CHDIR spawning /bin/bash: No such file or directory  
Feb 27 20:30:18 systemd[3957]: cnode.service: Changing to the requested working directory failed: No such file or direc

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 20:36 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/5 "2021-02-27T20:36:21Z")

</div>

Did u changed, moved files?

---

<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:** [27 February 2021 20:39 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/6 "2021-02-27T20:39:17Z")

</div>

:/etc/systemd/system$ ls  
cardano-node.service final.target.wants open-vm-tools.service.requires snap-lxd-19188.mount sshd.service  
cloud-final.service.wants getty.target.wants paths.target.wants snap-snapd-10707.mount sysinit.target.wants  
cloud-init.target.wants grap

---

<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:** [27 February 2021 20:40 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/7 "2021-02-27T20:40:01Z")

</div>

> [@godofrefuse](#):
>
> Feb 27 20:30:13 systemd[3945]: cnode.service: Failed at step CHDIR spawning /bin/bash: No such file or directory  
> Feb 27 20:30:18 systemd[3957]: cnode.service: Changing to the requested working directory failed: No such file or direc

i think im using cardano-node.service not cnode

---

<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:** [27 February 2021 20:42 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/8 "2021-02-27T20:42:04Z")

</div>

> [@Alexd1985](#):
>
> journalctl -e -f -u

journalctl -e -f -u cardano-node.service  
/home//cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: command not found  
Feb 25 16:51:34 bash[415016]: /home//cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: command not found

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 20:48 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/9 "2021-02-27T20:48:12Z")

</div>

Ok then, try to run the script manually… same error?

---

<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:** [27 February 2021 20:49 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/10 "2021-02-27T20:49:30Z")

</div>

What script manually? My node is running fine. I am trying to get the systemctl/systemd scripts to auto boot my nodes if they go offline.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 20:51 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/11 "2021-02-27T20:51:17Z")

</div>

Aaa ok, then… remeber please… do u have an env file? Can u show me?

---

<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:** [27 February 2021 21:08 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/12 "2021-02-27T21:08:50Z")

</div>

![sadasdasd](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/a/b/ab4f6e4db27ab8f7bcbafb3afa677a65d3ad414e.png)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 21:11 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/13 "2021-02-27T21:11:19Z")

</div>

> [@godofrefuse](#):
>
> /etc/systemd/system/cardano-node.service

And nano /etc/systemd/system/cardano-node.service

check if the paths are correct/available

---

<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:** [27 February 2021 21:21 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/14 "2021-02-27T21:21:02Z")

</div>

EnvironmentFile=/home/xx/cardano-node/

my ENV file is in there

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 21:28 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/15 "2021-02-27T21:28:33Z")

</div>

So , u have the env file for glive right?  
Ur script for starting the node has no connection with env… u can adapt the path in env for config, topology files, db socket, etc and try again

---

<div class="post-metadata">

**Author:** ![ruttkowa](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@ruttkowa](https://forum.cardano.org/u/ruttkowa)\
**Post date:** [27 February 2021 21:29 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/16 "2021-02-27T21:29:41Z")

</div>

> [@godofrefuse](#):
>
> home//cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: command not found  
> Feb 25 16:51:34 bash[415016]: /home//cardano-my-node/startBlockProducingNode.sh: line 11: cardano-node: command not found

You do see that there are double slashes “//”?  
Maybe that’s the problem.  
I’m not familiar with your setup but I’d guess you need to change it to:  
/home/cardano-my-node…

Everything else seems to be pointing to systemd not being able to locate or find a file / directory.

---

<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:** [27 February 2021 21:42 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/17 "2021-02-27T21:42:23Z")

</div>

It says that is line 11 in my but I checked my startblockproducer.sh and it looks fine and a the cardano-node.service looks fine 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:** [27 February 2021 21:43 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/18 "2021-02-27T21:43:08Z")

</div>

Im not sure if i have the env for gLive i have a env file in my /cardano-node/ directory

not sure what your wanting me to do.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 February 2021 21:48 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/19 "2021-02-27T21:48:42Z")

</div>

Ur systemd use env file so, maybe u will need to set the right path for ur files in env

For example socket line… uncomment the line at write the path (go to ur file where ur socket is located and type pwd … and add that path in env…  
this operation should be done for all files used by ur script (config file, topology file, etc

---

<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:** [27 February 2021 21:57 UTC](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484/20 "2021-02-27T21:57:07Z")

</div>

im changing the default paths in ENV

I dont have this #SOCKET="${CNODE\_HOME}/sockets/node0.socket"  
node0.socket

this is what is in my “db” folder  
immutable ledger lock node.socket protocolMagicId socket volatile

[Next page](https://forum.cardano.org/t/cardano-node-service-failed-to-load-environment-files-failed-to-run-start-t-ask-failed-with-result-resources-failed-to-start-cardano-node-service/50484.md?page=2)
