# Upgrade after trial license

**URL:** <https://discuss.elastic.co/t/upgrade-after-trial-license/73669>\
**Category:** Elasticsearch\
**Created:** [February 2, 2017, 12:06pm UTC](https://discuss.elastic.co/t/upgrade-after-trial-license/73669 "2017-02-02T12:06:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakovitz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakovitz/32/15140_2.png) [@Jakovitz](https://discuss.elastic.co/u/Jakovitz)\
**Post date:** [February 2, 2017, 12:06pm UTC](https://discuss.elastic.co/t/upgrade-after-trial-license/73669/1 "2017-02-02T12:06:36Z")

</div>

Hi

I've tried out x-pack security, but decided not to buy it, and reverted to a basic license. Today, when I upgraded ES from 5.1.2 to 5.2.0, I got the following errors:

[INFO][o.e.x.s.a.e.NativeRealmMigrator] [log] Upgrading security from version [5.1.2] - new reserved user [logstash\_system] will default to disabled  
[ERROR][o.e.x.s.a.e.NativeUsersStore] [log] unable to clear realm cache for user [logstash\_system]  
org.elasticsearch.ElasticsearchSecurityException: current license is non-compliant for [security]

and

[ERROR][o.e.x.s.SecurityTemplateService] [log] failed to upgrade security data from version [5.1.2]  
org.elasticsearch.ElasticsearchException: clearing the cache for [logstash\_system] failed. please clear the realm cache manually

Is this i bug, and how can I completely remove any traces of x-pack security?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 3, 2017, 12:07am UTC](https://discuss.elastic.co/t/upgrade-after-trial-license/73669/2 "2017-02-03T00:07:22Z")

</div>

> [@Jakovitz](#):
>
> Is this i bug, and how can I completely remove any traces of x-pack security?

This is a bug, but it shouldn't cause you any ongoing issues. You should only see that error the first time you start your cluster after upgrading to 5.2.0.

To completely disable xpack security, I would recommend setting

```auto
xpack.security.enabled: false

```

in your `config/elasticsearch.yml` file

When running on a basic license security is largely inactive, but not totally disabled (this allows you to upgrade to a gold or platinum license at a future point with the minimum of fuss).

---

<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:** [March 3, 2017, 12:07am UTC](https://discuss.elastic.co/t/upgrade-after-trial-license/73669/3 "2017-03-03T00:07:40Z")

</div>

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