File node- not writing to file

SOLVED

First, I apologize for wasting so much time because I did not mention up front that NR was installed in a Docker container. I really did not know that the docker filesystem was hidden from the Ubuntu filesystem.
However, someone on the HA forum did provide the solution:

The Node-RED add-on is a Docker container and can’t “see” the host file system. You could use /share , which is mapped to /usr/share/hassio/share in the host.

Hope this helps someone in the future.

1 Like

Hey SteveMann

Does this still work in docker?
My node-red flow is not able to use the /share directory by default.

For those still looking, you can initiate a docker with a bind directory for persistence linked to "/home/docker/dock1" like so:

docker run -it -p 1880:1880 -v /home/docker/dock1:/data --name mynodered1 nodered/node-red

I am the wrong one to ask. What I know about Docker is best described as "I know what it is". I am running HassOS and share is a folder in the root folder.

Here's how I use it in Node-Red:

logfiles