# Login failed on GUI of service.bat

**URL:** <https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810>\
**Category:** Elasticsearch\
**Created:** [March 31, 2017, 12:37pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810 "2017-03-31T12:37:31Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [March 31, 2017, 12:37pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/1 "2017-03-31T12:37:31Z")

</div>

Hey guys,  
I have a problem to login over service.bat with a specific account.  
The only thing I see the service doesn't start. And it isn't nothing logged in the Elasticsearch logs.  
What can I do. Please help me!

Greetings  
Simon  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8db996a9fbe407d6f302e05972d5cc9856f15a0a.png)

---

<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:** [March 31, 2017, 12:50pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/2 "2017-03-31T12:50:29Z")

</div>

May be this user does not have rights to read/write in elasticsearch config/data dirs?

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [March 31, 2017, 1:06pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/3 "2017-03-31T13:06:48Z")

</div>

I have rights to read and write  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e84646488e0cc88f3e144d630c0cab5844186a9e.png)

---

<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:** [March 31, 2017, 1:49pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/4 "2017-03-31T13:49:16Z")

</div>

Is it the same for `D:\elasticsearch-2.3.2_Node2` dir?  
BTW why `Node2`? Are you trying to install more than one node as a service on your machine?

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [March 31, 2017, 1:52pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/5 "2017-03-31T13:52:37Z")

</div>

Yes it is the same for D:\elasticsearch-2.3.2\_Node2 dir.  
And on this machine there is running a second instance of elasticsearch but this instance works with standard system user.

---

<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:** [March 31, 2017, 2:17pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/6 "2017-03-31T14:17:01Z")

</div>

So why do you want to start another service?

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [March 31, 2017, 2:38pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/7 "2017-03-31T14:38:55Z")

</div>

Ok. For your comprehension I explain the whole context of my doing and what is our aim. We use the Robotic Process Automation tool Uipath and it writes Logging Information in Elasticsearch. The nodes are on the machine where the robots run. When this machine goes down, the robots doen't work so it is not bad when the elasticsearch logging does not work at this moment.  
We have one master node which is also a data node. And we have a second node which is only for holding data it holds replica of the master node. This node cannot be a master node. We want to write/transfer the information in the elasticsearch data folder to a share folder. Our problem is now that we cannot give all read and write rights to all user for data folders on machine which is the share folder. We need an explicit account. So therfore I try to use a specific account over the service.bat gui. But this small and essential step fails when I start the elasticsearch 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:** [March 31, 2017, 3:13pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/8 "2017-03-31T15:13:33Z")

</div>

> [@s\_b92](#):
>
> We have one master node which is also a data node. And we have a second node which is only for holding data it holds replica of the master node.

But why? You don't need to do that. You just need to have one single node on your machine.

> [@s\_b92](#):
>
> We want to write/transfer the information in the elasticsearch data folder to a share folder.

Use Snapshot/Restore for that.

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [April 3, 2017, 8:32am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/9 "2017-04-03T08:32:58Z")

</div>

Ok. I find your idea very helpful. Instead to copy data to a share folder I make a snapshot of my data to this share folder. But the main problem is still there. I create a sharefolder on another machine. The Filepath for example \server\_name\IA\_SHARE\Snapshots and in elasticsearch.yml is standing path.repo: ["\\server\_name\IA\_SHARE\Snapshots"] but when I run elasticsearch elasticsearch stops immediateley. I create a share folder on the system where elasticsearch run. This works fine and elasticsearch is running and I can create snapshots of my dates there.

---

<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:** [April 3, 2017, 10:39am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/10 "2017-04-03T10:39:06Z")

</div>

Probably because you need to write it as `["\\\\server_name\\IA_SHARE\\Snapshots"]` instead?

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [April 3, 2017, 10:53am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/11 "2017-04-03T10:53:37Z")

</div>

changed but same behaviour ☹

---

<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:** [April 3, 2017, 11:28am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/12 "2017-04-03T11:28:50Z")

</div>

Can you share settings and logs ?

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [April 3, 2017, 11:57am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/13 "2017-04-03T11:57:12Z")

</div>

elasticsearch log:

```auto
[2017-04-03 11:51:53,246][ERROR][bootstrap] Exception
java.lang.IllegalStateException: Unable to access 'path.repo' (\\server_name\IA_SHARE\Snapshots)
    at org.elasticsearch.bootstrap.Security.addPath(Security.java:316)
    at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:262)
    at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212)
    at org.elasticsearch.bootstrap.Security.configure(Security.java:118)
    at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:196)
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:167)
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Caused by: java.nio.file.FileSystemException: \\server_name\IA_SHARE\: The filename, directory name, or volume label syntax is incorrect.

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:338)
    at sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:362)
    at java.nio.file.Files.createDirectories(Files.java:746)
    at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:337)
    at org.elasticsearch.bootstrap.Security.addPath(Security.java:314)
    ... 7 more

```

elasticsearch yml file

```auto
cluster.name: elasticsearch
node.name: UipathMasterNode
node.master: true
node.data: true
index.number_of_replicas: 1
path.data: D:\elasticsearch-2.3.2\data
path.repo: ["\\\\server_name\\IA_SHARE\\Snapshots"]
path.logs: D:\elasticsearch-2.3.2\logs
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["10.0.6.18"]
discovery.zen.minimum_master_nodes: 1

```

---

<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:** [April 3, 2017, 4:26pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/14 "2017-04-03T16:26:13Z")

</div>

Can you try with `//server_name/IA_SHARE/Snapshots`?

Is this directory accessible for the user who is running elasticsearch on your machine.

---

<div class="post-metadata">

**Author:** ![s\_b92](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@s\_b92](https://discuss.elastic.co/u/s_b92)\
**Post date:** [April 4, 2017, 7:56am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/15 "2017-04-04T07:56:45Z")

</div>

I tried your suggestion, same error message.  
This directory is accessible for the user who is running elasticsearch on my machine!  
Is there any possibility to make a websession?

---

<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:** [April 4, 2017, 8:25am UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/16 "2017-04-04T08:25:36Z")

</div>

> [@s\_b92](#):
>
> Is there any possibility to make a websession?

No sorry.

May be @abeyad would know?

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [April 5, 2017, 1:50pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/17 "2017-04-05T13:50:07Z")

</div>

Is it a Windows file share? I'm not sure what the correct format would be. What are you using to host the snapshots? I would consult its documentation to see what the format should be for specifying the file share.

---

<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:** [May 3, 2017, 1:50pm UTC](https://discuss.elastic.co/t/login-failed-on-gui-of-service-bat/80810/18 "2017-05-03T13:50:14Z")

</div>

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