# Unable to retrieve license information from license server {:message=\>"No Available connections"}

**URL:** <https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175>\
**Category:** Logstash\
**Created:** [April 12, 2022, 5:25am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175 "2022-04-12T05:25:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 12, 2022, 5:25am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/1 "2022-04-12T05:25:31Z")

</div>

Hello team, I'm new to Logstash when im trying to run a logstash i getting the error like this anyone can you please look on it.

```auto
[2022-04-11T19:19:07,223][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"No Available connections"}
[2022-04-11T19:19:07,528][WARN][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::ResolutionFailure] elasticsearch: Name or service not known"}

```

type or paste code here

```auto

```

---

<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:** [April 12, 2022, 7:54am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/2 "2022-04-12T07:54:52Z")

</div>

> [@sahir](#):
>
> `http://elasticsearch:9200/`

You need to replace that URL with the one that reaches Elasticsearch.

Do you have an Elasticsearch node running?

- If it's on the same machine as Logstash then you want `http://localhost:9200` (or maybe `https://localhost:9200`).
- If it's running somewhere else, you'll need to find out the URL to use to connect to it.

---

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 12, 2022, 8:12am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/3 "2022-04-12T08:12:26Z")

</div>

@TimV Thanks for your reply. yes Elasticsearch node is running.  
when i try to change the Elasticsearch URL in Logstash file but its not supporting. I can't overwrite the Logstash file when i change the URL again Logstash file taken a default URL only. Can you please tell me where i have to change the URL in logstash file.

---

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 12, 2022, 9:43am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/4 "2022-04-12T09:43:20Z")

</div>

@TimV The default URL is [http://elasticsearch:9200](http://elasticsearch:9200) I changed this to [http://localhost:9200](http://localhost:9200) and other running Elasticsearch URLs also I mentioned but it's not changing it taken a default URL only.

---

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 14, 2022, 12:00pm UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/5 "2022-04-14T12:00:32Z")

</div>

```auto
[WARN] 2022-04-14 11:10:09.084 [Ruby-0-Thread-5: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:241] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://elastic:xxxxxx@XXX.XXX.XX.XX:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://elastic:xxxxxx@XXX.XXX.XX.XX:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}

```

Hi Team, I'm trying to run the Logstash I'm getting an error like this. It needs a certificate to connect with Elasticsearch can you please help me with how to run the Logstash without using the certificate.

---

<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:** [April 14, 2022, 12:22pm UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/6 "2022-04-14T12:22:54Z")

</div>

If your Elasticsearch is running with `https` you can't connect to it from logstash without the certificate.

You need to check your Elasticsearch configurations, can you share your `elasticsearch.yml` ?

---

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 18, 2022, 6:59am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/7 "2022-04-18T06:59:57Z")

</div>

Hello @leandrojmp Thank you for your reply, I passing the Elasticsearch configuration in logstash conf file. I tried with both HTTP and HTTPS Elasticsearch but both the things are showing the same error.

```auto
apiVersion: v1
kind: ConfigMap
metadata:
  name: logstash-configmap
  namespace: kube-system
data:
  logstash.yml: |
    http.host: "0.0.0.0"
    path.config: /usr/share/logstash/pipeline    
  logstash.conf: |
    input {
      file {
        path => "/var/log/containers"
      }
    }
    output {
      stdout {
        codec => rubydebug
      }

      elasticsearch {
        ilm_enabled => false
        hosts => ["https://xxx.xxx.xx.xx:9200"]
        user => 'xxxx'
        password => 'xxxxxxxxx'
        index => "logstash-beta-%{+YYYY.MM.dd}"
        ssl_certificate_verification => false
      }
    }    

```

---

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://discuss.elastic.co/u/sahir)\
**Post date:** [April 18, 2022, 7:07am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/8 "2022-04-18T07:07:00Z")

</div>

@leandrojmp Thank you for your reply, I deployed a Elasticsearch is running with HTTP but I can't able to connect to it from Logstash. It shows the same error like Elasticsearch unreachable.

---

<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:** [May 16, 2022, 7:07am UTC](https://discuss.elastic.co/t/unable-to-retrieve-license-information-from-license-server-message-no-available-connections/302175/9 "2022-05-16T07:07:24Z")

</div>

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