# Unable to access Kibana with “License is not available.”

**URL:** <https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323>\
**Category:** Kibana\
**Created:** [May 28, 2021, 10:42am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323 "2021-05-28T10:42:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [May 28, 2021, 10:42am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/1 "2021-05-28T10:42:40Z")

</div>

I have installed WorkplaceSearch.  
I added the x-pack configuration to ElasticSearch by referring to the following URL.

> **[User Management and Security | Workplace Search Guide \[7.13\] | Elastic](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-security.html#elasticsearch-native-realm)**

Specifically, I have made the following statement.

```auto
$vi /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: true
xpack.security.authc.api_key.enabled: true
xpack:
  security:
    authc:
      realms:
        native:
          native1:
            order: 0

```

However, when I do so, I can no longer access Kibana, which has been working fine.  
When I access Kibana from a browser, I get the following message.

```auto
statusCode 503
error "Service Unavailable"
message "License is not available."

```

Is there any configuration required to use Kibana and WorkplaceSearch together?

---

<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:** [May 28, 2021, 11:00am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/2 "2021-05-28T11:00:00Z")

</div>

If you secure elasticsearch then you need to tell Kibana about it. Have a look at the Kibana guide.

> **[Configure Kibana | Kibana Guide \[7.13\] | Elastic](https://www.elastic.co/guide/en/kibana/current/settings.html)**

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [May 31, 2021, 1:35am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/3 "2021-05-31T01:35:27Z")

</div>

Thank you for your comment.  
I see.  
I put the username and password for elasticsearch in `kibana.yml`.

```auto
$ vi /etc/kibana/kibana.yml
elasticsearch.username: [MY_ELASTIC_USERNAME].
elasticsearch.passowrd: [MY_ELASTIC_PASSWORD].

```

However, when I access Kibana from a browser, I get the following error

```auto
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

```

What more settings do I need?

---

<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:** [May 31, 2021, 2:22am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/4 "2021-05-31T02:22:44Z")

</div>

Have a look at the Kibana logs.

I'm moving your question to #elastic-stack:kibana

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [May 31, 2021, 2:31am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/5 "2021-05-31T02:31:11Z")

</div>

It seems to say `License is not available, authentication is not possible.

```auto
$ tail /var/log/kibana/kibana.log
... snip ...
{"type": "log","@timestamp": "2021-05-31T10:24:47+09:00", "tags":["error", "plugins", "security", "authentication"], "pid": "28000"," message": "License is not available, authentication is not possible."}
... snip ...

```

Do you have any other clues?

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [June 3, 2021, 8:49am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/6 "2021-06-03T08:49:21Z")

</div>

I see. I solved one problem.  
It seems that the credentials I gave to Kibana were wrong.

You will need to set the following credentials, which can be obtained with the following command

```auto
$ ./bin/elasticsearch-setup-passwords auto

... snip ...

Changed password for user kibana_system
PASSWORD [MY_KIBANA_SYSTEM_USRNAME] = [MY_KIBANA_SYSTEM_PASSWORD]

... snip ...

Changed password for user elastic
PASSWORD [MY_ELASTIC_USERNAME] = [MY_ELASTIC_PASSWORD]

```

```auto
$ vi /etc/kibana/kibana.yml
elasticsearch.username: [MY_KIBANA_SYSTEM_USERNAME]
elasticsearch.passowrd: [MY_KIBANA_SYSTEM_PASSWORD]

$ systemctl restart kibana

```

You can now access Kibana from your browser.  
http://MY\_SERVER:5601/

However, the credentials that are required when accessing Kibana are elastic ones.  
i.e.

```auto
Username: [MY_ELASTIC_USERNAME]
Password: [MY_ELASTIC_PASSWORD]

```

Why is this?

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [June 15, 2021, 8:08am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/7 "2021-06-15T08:08:03Z")

</div>

I'm posting this to prevent any unexpected closings.  
Can someone please answer my last question?  
I will close when this is resolved.

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [June 30, 2021, 2:13am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/8 "2021-06-30T02:13:41Z")

</div>

Is this just the way it is?  
It doesn't make sense to me, and I'm still confused.

---

<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:** [July 28, 2021, 2:14am UTC](https://discuss.elastic.co/t/unable-to-access-kibana-with-license-is-not-available/274323/9 "2021-07-28T02:14:19Z")

</div>

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