I have Node Red on two systems- I am slowly moving my flows to the new Intel NUC from the Raspberry Pi.
One of the flows I want to move uses the file node to write to a log file. Works fine on the Raspberry Pi, but not on the NUC.
Here is the test flow (2 nodes, inject and file).
[{"id":"8c61e374.88ac6","type":"file","z":"4a11758.b10b38c","name":"","filename":"/home/steve/Documents/Garden/test.txt","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":620,"y":1140,"wires":[[]]},{"id":"aa7a45d8.1fd168","type":"inject","z":"4a11758.b10b38c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":1140,"wires":[["8c61e374.88ac6"]]}]
When I first run the flow, I get an error message:
Error: ENOENT: no such file or directory, open '/home/steve/Documents/Garden/mytest.txt'
Yet, on the NUC, I can cd /home/steve/Documents/Garden
The file is not there, so I try creating one with a touch command. But still, the file node won't write to it.
I also tried reading from a file in that folder by creating a file with one line of text. This generates a similar error:
Error: ENOENT: no such file or directory, open '/home/steve/Documents/Garden/mytest.txt'
So, any clues what's happening? is /home not /home on the NUC (running Ubuntu)?
Any tips would be appreciated.