# FSCrawler get a path error while running as a service

**URL:** <https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320>\
**Category:** Elasticsearch\
**Created:** [October 21, 2021, 1:40pm UTC](https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320 "2021-10-21T13:40:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denn](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Denn](https://discuss.elastic.co/u/Denn)\
**Post date:** [October 21, 2021, 1:40pm UTC](https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320/1 "2021-10-21T13:40:08Z")

</div>

I have a working implementation of fscrawler. However, it is running on command prompt. I have tried to implement it as a service but i keep getting an error.

my url looks like this

```auto
url: "\\\\data-backup\\2020"

```

The error log is:

```auto
06:29:50, 989 WARN [f.p.e.c.f.FsParserAbstract] Error while crawling \\data-backup\2020: \\data-backup\2020 doesn't exist

```

Why does it work when I run from command prompt but fails when running as a service?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 21, 2021, 2:16pm UTC](https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320/2 "2021-10-21T14:16:18Z")

</div>

I'm wondering if this is because the user which is running the service does not have the same rights as the user you used to run fscrawler from the command line...

---

<div class="post-metadata">

**Author:** ![Denn](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Denn](https://discuss.elastic.co/u/Denn)\
**Post date:** [October 21, 2021, 2:26pm UTC](https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320/3 "2021-10-21T14:26:53Z")

</div>

Well I think you are right. I added same user details to the service logon option and now it seems to run fine. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 18, 2021, 2:27pm UTC](https://discuss.elastic.co/t/fscrawler-get-a-path-error-while-running-as-a-service/287320/4 "2021-11-18T14:27:16Z")

</div>

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