# {"statusCode":503,"error":"Service Unavailable","message":"License is not available."}

**URL:** <https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340>\
**Category:** Elasticsearch\
**Created:** [February 23, 2023, 3:39pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340 "2023-02-23T15:39:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvelumani](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nvelumani](https://discuss.elastic.co/u/nvelumani)\
**Post date:** [February 23, 2023, 3:39pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/1 "2023-02-23T15:39:11Z")

</div>

Hello Team,

I have installed elastic version 8.5.2 on three node cluster, it runs good.

when I take down down node 2 (master -2), cluster is up and running with other two nodes.

when I take down down node 3 (master -3), cluster is up and running with other two nodes.

but when I take down down node 1 (master -1), elasitc cluster is down with below error on Kibana.

`{"statusCode":503,"error":"Service Unavailable","message":"License is not available."}`

Please find the elastic configuration below.

```auto
cluster.name: dataseers-3-0
path.data: /home/elasticsearch
path.logs: /home/logs/elasticsearch
network.host: ["127.0.0.1","10.XX.XX.XXX","localhost"]
network.bind_host : 10.XX.XX.XXX
http.port: 9200
discovery.seed_hosts: ["10.XX.X.XX","10.XX.X.XX","10.XX.X.XX"]
cluster.initial_master_nodes: ["master-1","master-2", "master-3"]
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
http.host: 0.0.0.0
transport.host: 0.0.0.0

```

It would be great if you guys can help me on this, Thanks. looking forward.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 23, 2023, 3:50pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/2 "2023-02-23T15:50:19Z")

</div>

What does your `kibana.yml` looks like? Please share it.

---

<div class="post-metadata">

**Author:** ![nvelumani](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nvelumani](https://discuss.elastic.co/u/nvelumani)\
**Post date:** [February 23, 2023, 5:45pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/3 "2023-02-23T17:45:17Z")

</div>

Thanks for the response Leandro, below is the kibana config.

```auto
server.port: 5601
server.host: "10.XX.X.XXX"
server.ssl.enabled: true
server.ssl.certificate: /etc/kibana/portal.includesprivatekey.pem
server.ssl.key: /etc/kibana/portal.includesprivatekey.pem
server.ssl.keyPassphrase: XXXXXXXXXX
logging:
  appenders:
    file:
      type: file
      fileName: /home/logs/kibana/kibana.log
      layout:
        type: json
  root:
    appenders:
      - default
      - file
xpack.encryptedSavedObjects.encryptionKey: 6ad3cbc280037ce3bccd8bbb24c7ed13
xpack.reporting.encryptionKey: 06e8ae9b584894dXXXXXXXXXXXXXX
xpack.security.encryptionKey: 301df4dfd6faa2aXXXXXXXXXXXXXXX
xpack.security.session.idleTimeout: "10m"
xpack.security.session.lifespan: "8h"
xpack.reporting.csv.maxSizeBytes: 1048576000
elasticsearch.hosts: ['https://10.XX.X.XX:9200','https://10.XX.XX.XXX:9200','https://10.X.XX.XXX:9200']
elasticsearch.serviceAccountToken: AAEAAWVsYXXXXXXXXXXXXXXXXzLXRva2VuLTE2NzI5NDA1NjA5NjM6YXpYNE1qc1
elasticsearch.ssl.certificateAuthorities: [/var/lib/kibana/ca_1672940562290.crt]
xpack.fleet.outputs: [{id: fleet-default-output, name: default, is_default: true, is_default_monitoring: true, type: elasticsearch, hosts: ['https://10.XX.XX.XXX:9200','https://10.XX.XX.XXX:9200','https://10.XX.XX.XXX:9200'], ca_trusted_fingerprint: 8b14f638772df1XXXXXXXXXXXXXX}]

```

---

<div class="post-metadata">

**Author:** ![lmcnamara](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@lmcnamara](https://discuss.elastic.co/u/lmcnamara)\
**Post date:** [February 28, 2023, 7:35pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/4 "2023-02-28T19:35:06Z")

</div>

I've seen similar issues to this posted before, but don't seem to see any solutions for this specific problem.

---

<div class="post-metadata">

**Author:** ![nvelumani](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nvelumani](https://discuss.elastic.co/u/nvelumani)\
**Post date:** [March 22, 2023, 6:39pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/5 "2023-03-22T18:39:06Z")

</div>

> [@lmcnamara](#):
>
> I've seen similar issues to this posted before, but don't seem to see any solutions for this specific problem.

Any help would be awesome, thanks

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 22, 2023, 6:43pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/6 "2023-03-22T18:43:59Z")

</div>

Hello,

I see no issue in your `kibana.yml`, all your 3 nodes are listed in `elasticsearch.hosts`, so Kibana should try another node when your master is down, which seems to be the issue.

Did this work after you give some time for your cluster to elect a new master? If it this keep happening you will need to share the logs of your nodes when you take one down.

---

<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 19, 2023, 6:44pm UTC](https://discuss.elastic.co/t/statuscode-503-error-service-unavailable-message-license-is-not-available/326340/7 "2023-04-19T18:44:21Z")

</div>

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