# Tail node using UNC path

**URL:** <https://discourse.nodered.org/t/tail-node-using-unc-path/28914>\
**Category:** General\
**Created:** [24 June 2020 20:09 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914 "2020-06-24T20:09:06Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [24 June 2020 20:09 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/1 "2020-06-24T20:09:07Z")

</div>

Hello, how can i use the tail node with a shared unc path?  
im getting "File not found: \\10.0.0.174\Logs\RuleSystem.log" i already set shared permission.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 June 2020 20:20 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/2 "2020-06-24T20:20:11Z")

</div>

> [@gbos3415](#):
>
> \10.0.0.174\Logs\RuleSystem.log

That isn't a valid UNC. You need double backslash to start.

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [24 June 2020 20:30 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/4 "2020-06-24T20:30:36Z")

</div>

For some reason it removing the \ and changing to \ when i copy here

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 June 2020 20:42 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/5 "2020-06-24T20:42:28Z")

</div>

If you put it in back-ticks it shouldn't do that. Backslash is generally used as an escape character. That's why you have to double everything when handing back slashes in strings.

That is most likely your problem in the code.

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [24 June 2020 22:36 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/6 "2020-06-24T22:36:47Z")

</div>

Can you please give me an example.

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [24 June 2020 22:37 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/7 "2020-06-24T22:37:43Z")

</div>

![Screen Shot 2020-06-24 at 12.03.16 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/5/c5a4e5a60876ff9b474bfb0af59219c7f9e25cde.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 June 2020 22:39 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/8 "2020-06-24T22:39:21Z")

</div>

Try using forward slashes or double up every backslash.

E.g...

`\\\\server\\path\\file`

Or

`//server/path/file`

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [24 June 2020 22:48 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/9 "2020-06-24T22:48:56Z")

</div>

No luck:(

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 June 2020 23:48 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/10 "2020-06-24T23:48:43Z")

</div>

Are you sure you have the right URI?, From the command line, can you do `ls \\10.0.0.174\Logs\`

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [25 June 2020 19:31 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/11 "2020-06-25T19:31:32Z")

</div>

Im pretty sure, its Windows Shared folder i can access the folder from my other computers.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 June 2020 19:36 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/12 "2020-06-25T19:36:13Z")

</div>

> [@gbos3415](#):
>
> Im pretty sure

:cough: I wonder how many times I've heard that over the years! Not getting at you, we all do it, but you really need to test from the command line on the device that runs Node-RED using the same user id - assuming you are running NR from a user.

Under Windows, if you are starting NR from the task manager, you might be using SYSTEM which will have different permissions and may not have access.

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [25 June 2020 19:53 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/13 "2020-06-25T19:53:03Z")

</div>

Im currently running node-red in a docker on my synology NAS. and im accessing from Homeassistant. My NVR is windows base OS that is running the logs. does Node-red have command line interface from the gui so i can test the shared path?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 June 2020 19:59 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/14 "2020-06-25T19:59:17Z")

</div>

OK, that's a fairly complex setup.

I think someone did create an experimental terminal node but actually, you can do what you need to using the exec node. Wire one up with inject and a debug node attached to all outputs of the exec. Set the exec to ignore the input msg (so it just acts as a trigger) and set the command line to `ls \\10.0.0.174\Logs\`. I don't _think_ you will need to escape the back slashes.

---

<div class="post-metadata">

**Author:** ![gbos3415](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gbos3415](https://discourse.nodered.org/u/gbos3415)\
**Post date:** [25 June 2020 20:08 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/15 "2020-06-25T20:08:21Z")

</div>

![Screen Shot 2020-06-25 at 1.07.05 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/ebe5d66846895ee462583b55d5a2ab4cccadb5ea.png)

Im getting this am i doing something wrong?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 June 2020 20:12 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/16 "2020-06-25T20:12:03Z")

</div>

As expected, the error is "No such file or directory". There is no path from the server running Node-RED to that shared folder. Most likely the virtual user running Node-RED inside Docker has no permissions to access that shared drive.

You may need to dust off your SAMBA command-line fu to try and connect to it.

---

<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:** [24 August 2020 20:12 UTC](https://discourse.nodered.org/t/tail-node-using-unc-path/28914/17 "2020-08-24T20:12:14Z")

</div>

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