# Cardano-node lock: openFd: permission denied

**URL:** <https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576>\
**Category:** Setup a Stake Pool\
**Created:** [31 May 2021 16:27 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576 "2021-05-31T16:27:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![berthom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/berthom/32/46780_2.png) [@berthom](https://forum.cardano.org/u/berthom)\
**Post date:** [31 May 2021 16:27 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/1 "2021-05-31T16:27:03Z")

</div>

![problema_03_03](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/d/5/d53b02aa3cffe655b9badefa3c14c120e9b84700.png)  
Someone who know how to fix it?

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [31 May 2021 16:29 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/2 "2021-05-31T16:29:54Z")

</div>

Hi!

I would remove the lock file along with the other files in db folder in case this is the first attempt to start the node…  
`rm -rf /home/cardano/cnode/db/*`  
and start again…

---

<div class="post-metadata">

**Author:** ![berthom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/berthom/32/46780_2.png) [@berthom](https://forum.cardano.org/u/berthom)\
**Post date:** [31 May 2021 16:37 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/3 "2021-05-31T16:37:45Z")

</div>

seems like this help something but still giving me error “NoDbMakerAndNotEmpty”

![problema_03_04](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/5/950fea09bc0234e98fcaabbe15029220e3f4f76f.png)

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [31 May 2021 16:52 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/4 "2021-05-31T16:52:26Z")

</div>

very strange…  
do you have other cardano-node process running?  
what is the output of  
`ps -ef | grep cardano`

also list the content of the db folder:  
`ls -la /home/cardano/cnode/db`

---

<div class="post-metadata">

**Author:** ![berthom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/berthom/32/46780_2.png) [@berthom](https://forum.cardano.org/u/berthom)\
**Post date:** [31 May 2021 17:00 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/5 "2021-05-31T17:00:41Z")

</div>

Uploading: problema\_03\_05.PNG…  
 ![problema_03_05](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/b/c/bc79f321feab9cecaf6a870ac8f45ea0cf8fb487.png)

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [31 May 2021 17:04 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/6 "2021-05-31T17:04:58Z")

</div>

I dont want to hurt you but this is a very unique issue deserves a new topic.  
with a title `cardano-node: Missing protocolMagicId`

you are very close…

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [1 June 2021 13:08 UTC](https://forum.cardano.org/t/cardano-node-lock-openfd-permission-denied/63576/7 "2021-06-01T13:08:55Z")

</div>

the real problem is that db folder has different owner, related topic:

> [@Cardano-node: Missing protocolMagicId](https://forum.cardano.org/t/cardano-node-missing-protocolmagicid/63587/19):
>
> yes - I dont know where this cardano user came from, but you can modify the ownership the folder by: sudo chown -R alberto:alberto /home/cardano/cnode WAIT! just realized then you are operating everything in home folder of cardano user… probably better to switch the user to cardano from alberto!
