# Read file node message: No such file or directory error!

**URL:** <https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698>\
**Category:** General\
**Tags:** docker\
**Created:** [14 June 2024 14:29 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698 "2024-06-14T14:29:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gschmidt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gschmidt/32/60349_2.png) [@gschmidt](https://discourse.nodered.org/u/gschmidt)\
**Post date:** [14 June 2024 14:29 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698/1 "2024-06-14T14:29:45Z")

</div>

Hi,

I am moving my Node-Red flows from a Raspberry Pi device to a Synology DS220+ NAS with node-red created with docker compose.

I have a number of flows that have a read-file node, which work properly on the Rpi, but on the NAS it can't find the path and

`"Error: ENOENT: no such file or directory, open '/volume1/docker/node-red/aangebeld.mp3'"`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee8405c6f4fd2ba8087689e0394c7471890e0327.png)

However the path appears to be correct in WinCP

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3e33d9e82fc64352c8e9285fc4e817a4d5a73eba.png)

What am i doing wrong here?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 June 2024 15:17 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698/2 "2024-06-14T15:17:30Z")

</div>

`/volume1/docker/node red/` is a directory on your NAS. This directory will be mapped to _something_ inside your node-red (something like /data or similar). Look for this in your container settings in the Synology pages

---

<div class="post-metadata">

**Author:** ![gschmidt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gschmidt/32/60349_2.png) [@gschmidt](https://discourse.nodered.org/u/gschmidt)\
**Post date:** [15 June 2024 07:56 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698/3 "2024-06-15T07:56:35Z")

</div>

You are right Steve,

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/741d6226d53f89bb7f77004149b337d54d192585.png)

So then the path would be:

`/data/aangebeld.mp3`

I'll give it a try when I have more time

Thanx!

---

<div class="post-metadata">

**Author:** ![gschmidt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gschmidt/32/60349_2.png) [@gschmidt](https://discourse.nodered.org/u/gschmidt)\
**Post date:** [15 June 2024 09:11 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698/4 "2024-06-15T09:11:48Z")

</div>

It is working, thanx!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 June 2024 09:11 UTC](https://discourse.nodered.org/t/read-file-node-message-no-such-file-or-directory-error/88698/5 "2024-06-29T09:11:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
