# Error Registry File

**URL:** https://discuss.elastic.co/t/error-registry-file/80681
**Category:** Beats
**Tags:** filebeat
**Created:** [March 30, 2017, 1:09pm UTC](https://discuss.elastic.co/t/error-registry-file/80681 "2017-03-30T13:09:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![RdrgPorto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdrgporto/32/13278_2.png) [@RdrgPorto](https://discuss.elastic.co/u/RdrgPorto)
#### Post date: [March 30, 2017, 1:09pm UTC](https://discuss.elastic.co/t/error-registry-file/80681/1 "2017-03-30T13:09:18Z")

</div>

Hi everyone,

I have an issue with **Filebeat** in **Windows**. Sometimes, when the computer is rebooted, **Filebeat** is not able to start. I see in the log the next error:

> 2017-03-30T11:06:31+01:00 ERR Error decoding old state: invalid character '\x00' looking for beginning of value

I am using **Filebeat 5.2.2** and **Windows 7**. I set in the configuration the registry file's path:

> filebeat.registry\_file: c:/filebeat/data/filebeat

Thanks in advance,

Regards

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [March 30, 2017, 1:58pm UTC](https://discuss.elastic.co/t/error-registry-file/80681/2 "2017-03-30T13:58:17Z")

</div>

Can you post what's inside the registry file. `\x00` is a null character. Maybe the file was not properly closed while shutdown.

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [March 30, 2017, 2:15pm UTC](https://discuss.elastic.co/t/error-registry-file/80681/3 "2017-03-30T14:15:59Z")

</div>

I had similar problems if a file file is formatted as `UTF-16`. Can you try to open the file with notepad and explicitly save it as `UFT-8`. Then reboot your machine and see if the error still occurs.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 31, 2017, 6:14am UTC](https://discuss.elastic.co/t/error-registry-file/80681/4 "2017-03-31T06:14:23Z")

</div>

This sounds like you are encountering this issue: [https://github.com/elastic/beats/issues/3537](https://github.com/elastic/beats/issues/3537)

Try 5.3.0 and see if it reoccurs.

---

<div class="post-metadata">

### Author: ![RdrgPorto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdrgporto/32/13278_2.png) [@RdrgPorto](https://discuss.elastic.co/u/RdrgPorto)
#### Post date: [March 31, 2017, 7:57am UTC](https://discuss.elastic.co/t/error-registry-file/80681/5 "2017-03-31T07:57:39Z")

</div>

Hi,

I am going to test with **Filebeat 5.3.0**.

Thank very much 🙂

Regards

---

<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: [April 28, 2017, 7:57am UTC](https://discuss.elastic.co/t/error-registry-file/80681/6 "2017-04-28T07:57:50Z")

</div>

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