# CRIT Exiting: Could not start registrar: Error loading state: Error decoding states: json: cannot unmarshal object into Go value of type \[\]file

**URL:** https://discuss.elastic.co/t/crit-exiting-could-not-start-registrar-error-loading-state-error-decoding-states-json-cannot-unmarshal-object-into-go-value-of-type-file/108887
**Category:** Beats
**Created:** [November 23, 2017, 12:47pm UTC](https://discuss.elastic.co/t/crit-exiting-could-not-start-registrar-error-loading-state-error-decoding-states-json-cannot-unmarshal-object-into-go-value-of-type-file/108887 "2017-11-23T12:47:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [November 23, 2017, 8:38pm UTC](https://discuss.elastic.co/t/crit-exiting-could-not-start-registrar-error-loading-state-error-decoding-states-json-cannot-unmarshal-object-into-go-value-of-type-file/108887/2 "2017-11-23T20:38:58Z")

</div>

Hello,

There is a few things I can see from this output.

```auto
2017-11-23T12:43:12Z CRIT Exiting: Could not start registrar: Error loading state: Error decoding states: json: cannot unmarshal object into Go value of type []file.State

```

I think there is either a problem with the content of the registrar or a permission issue and the error is hidden somehow. Can you add to this issue the output of the following command:

```auto
 cat /var/lib/filebeat/registry

```

Also, I haven't tried it. But I believe AWS Elasticsearch **always requires signing request?** , but Filebeat currently doesn't support that.

There is a few related discussion here:

- [https://github.com/elastic/beats/pull/5466#issuecomment-340450460](https://github.com/elastic/beats/pull/5466#issuecomment-340450460)
- [How to connect beats to AWS elasticsearch with authentication](https://discuss.elastic.co/t/how-to-connect-beats-to-aws-elasticsearch-with-authentication/83465/2?u=pierhugues)

Thanks

---

_[View the full topic](https://discuss.elastic.co/t/crit-exiting-could-not-start-registrar-error-loading-state-error-decoding-states-json-cannot-unmarshal-object-into-go-value-of-type-file/108887)._
