Error: ENOENT (node file)

83 views
Skip to first unread message

Вікторія Путятіна

unread,
Apr 11, 2018, 9:00:21 AM4/11/18
to Node-RED

Hi!
I'm having trouble with reading and writing to a file.
I get an error: ENOENT all the time.

What could be the problem?

Nick O'Leary

unread,
Apr 11, 2018, 9:02:11 AM4/11/18
to Node-RED Mailing List
A quick google shows ENOENT means the file/directory doesn't exist.

Does the directory exist? Does the user running Node-RED have access to it?

Nick


--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/f1bc20a4-93eb-4539-aeb1-61a2e3078643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Вікторія Путятіна

unread,
Apr 11, 2018, 9:10:21 AM4/11/18
to Node-RED
The directory exists and Node-RED have access to it

среда, 11 апреля 2018 г., 16:02:11 UTC+3 пользователь Nick O'Leary написал:
A quick google shows ENOENT means the file/directory doesn't exist.

Does the directory exist? Does the user running Node-RED have access to it?

Nick

On 11 April 2018 at 14:00, Вікторія Путятіна <viki.pu...@gmail.com> wrote:

Hi!
I'm having trouble with reading and writing to a file.
I get an error: ENOENT all the time.

What could be the problem?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Вікторія Путятіна

unread,
Apr 11, 2018, 9:58:43 AM4/11/18
to Node-RED


Access to the directory 777, but still the same error 
 

Dave C-J

unread,
Apr 11, 2018, 10:12:28 AM4/11/18
to node...@googlegroups.com
and the path is correct ? You probably need the full path to be specified

Вікторія Путятіна

unread,
Apr 12, 2018, 3:47:36 AM4/12/18
to Node-RED
Node red is on the MultiConnect Conduit, and there is Linux. Created directory with access 777.
in the node "file" we specify the path /home/root/foo/bar.json , but still the same error


среда, 11 апреля 2018 г., 17:12:28 UTC+3 пользователь Dave C-J написал:

Colin Law

unread,
Apr 12, 2018, 3:54:36 AM4/12/18
to node...@googlegroups.com
If the file already exists who owns it and what are the permissions on the file?

Which user are you running node-red as?

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/d5d214a0-7bc5-457d-970a-1f1061f8d243%40googlegroups.com.

Вікторія Путятіна

unread,
Apr 12, 2018, 4:35:11 AM4/12/18
to Node-RED

Thanks, your advice helped.
The problem was that the file was not created.
Reply all
Reply to author
Forward
0 new messages