File in node no success

can anyone help me about the "File" node?

i want to create a file but without success:

i have nothing created in the following node

[{"id":"c7780f7b.e52008","type":"inject","z":"11049fd.f81936","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":1040,"wires":[["9b8e62ff.4a90f8"]]},{"id":"a3f73bd0.6874f8","type":"debug","z":"11049fd.f81936","name":"23","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":630,"y":1040,"wires":[]},{"id":"9b8e62ff.4a90f8","type":"file","z":"11049fd.f81936","name":"/home/user/nodered_file/123.log","filename":"/home/user/nodered_file/123.log","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":390,"y":1040,"wires":[["a3f73bd0.6874f8"]]}]

may i know what is the absolute path? for my nodered as a service? ( i am not running node red in local machine) thanks

Which machine are you trying to create a file in? The machine running the browser or the machine running node red?

thanks. the machine running in node red

more update that:

[{"id":"c7780f7b.e52008","type":"inject","z":"11049fd.f81936","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":1040,"wires":[["9b8e62ff.4a90f8"]]},{"id":"a3f73bd0.6874f8","type":"debug","z":"11049fd.f81936","name":"23","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":630,"y":1040,"wires":[]},{"id":"9b8e62ff.4a90f8","type":"file","z":"11049fd.f81936","name":"/home/user/nodered_file/123.log","filename":"/home/user/nodered_file/this_is_test.log","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":400,"y":1040,"wires":[["a3f73bd0.6874f8"]]},{"id":"7ff69763.5aa1b8","type":"file in","z":"11049fd.f81936","name":"/home/user/nodered_file/123.log","filename":"/home/user/nodered_file/123.log","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":480,"y":1160,"wires":[["160b9bb5.9d7f5c"]]},{"id":"c4744f2e.2fdda8","type":"inject","z":"11049fd.f81936","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":1160,"wires":[["7ff69763.5aa1b8","214d0440.a93d7c"]]},{"id":"160b9bb5.9d7f5c","type":"debug","z":"11049fd.f81936","name":"24","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":730,"y":1160,"wires":[]},{"id":"214d0440.a93d7c","type":"file in","z":"11049fd.f81936","name":"/home/user/nodered_file/this_is_test.log","filename":"/home/user/nodered_file/this_is_test.log","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":510,"y":1260,"wires":[["fb53b36b.99682"]]},{"id":"fb53b36b.99682","type":"debug","z":"11049fd.f81936","name":"25","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":790,"y":1260,"wires":[]}]

i cannot locate the file in my node red server....

Add a Catch node linked to the file node and see if it gives anything, as suggested at the bottom of the help page for the file node.
Does the user running node-red have permission to write to the user user's home directory?

thanks ! i got the wrong ip ....
thanks you i resolved the problem

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