# Locked out of my node, How to run as a service

**URL:** <https://discuss.elastic.co/t/locked-out-of-my-node-how-to-run-as-a-service/240659>\
**Category:** Elasticsearch\
**Created:** [July 10, 2020, 8:50am UTC](https://discuss.elastic.co/t/locked-out-of-my-node-how-to-run-as-a-service/240659 "2020-07-10T08:50:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)\
**Post date:** [July 10, 2020, 8:50am UTC](https://discuss.elastic.co/t/locked-out-of-my-node-how-to-run-as-a-service/240659/1 "2020-07-10T08:50:08Z")

</div>

Hi,  
I am currently trying to run elastic as a windows service. But it fails every time. When I start it from the terminal it connects to the other nodes. When I start it as a service it doesn't connect. Why?  
But thats not the main problem. I restarted the node from the terminal an it crashed. So iI delted node.lock and write.lock. After that it connected to the other nodes but now I am locked out. It connected to the other nodes and they instantly started allocating shards and so on. So I am sure that they can communicate. With my security credentials I **can** easily **authenticate** myself **on node 1** and **node 2** but when I put in the same credentials on **node 3** it **doesn't work**. It worked before. Any ideas on why this happens?

Thanks,  
_defalt_

---

<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:** [August 7, 2020, 8:50am UTC](https://discuss.elastic.co/t/locked-out-of-my-node-how-to-run-as-a-service/240659/2 "2020-08-07T08:50:11Z")

</div>

Closed on August 7, 2020, 8:50am UTC

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