# File in node no success

**URL:** <https://discourse.nodered.org/t/file-in-node-no-success/32845>\
**Category:** General\
**Created:** [14 September 2020 03:50 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845 "2020-09-14T03:50:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![apex](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@apex](https://discourse.nodered.org/u/apex)\
**Post date:** [14 September 2020 03:50 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/1 "2020-09-14T03:50:30Z")

</div>

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

```auto
[{"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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 September 2020 06:12 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/2 "2020-09-14T06:12:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![apex](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@apex](https://discourse.nodered.org/u/apex)\
**Post date:** [14 September 2020 06:16 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/3 "2020-09-14T06:16:19Z")

</div>

thanks. the machine running in node red

---

<div class="post-metadata">

**Author:** ![apex](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@apex](https://discourse.nodered.org/u/apex)\
**Post date:** [14 September 2020 06:34 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/4 "2020-09-14T06:34:31Z")

</div>

more update that:

```auto
[{"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....

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 September 2020 07:53 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/5 "2020-09-14T07:53:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![apex](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@apex](https://discourse.nodered.org/u/apex)\
**Post date:** [14 September 2020 09:16 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/6 "2020-09-14T09:16:10Z")

</div>

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

---

<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:** [13 November 2020 09:16 UTC](https://discourse.nodered.org/t/file-in-node-no-success/32845/7 "2020-11-13T09:16:21Z")

</div>

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