# 503 error because of request timeout after 30000ms

**URL:** <https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097>\
**Category:** Kibana\
**Created:** [April 21, 2020, 4:45pm UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097 "2020-04-21T16:45:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidZa](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hamidZa](https://discuss.elastic.co/u/hamidZa)\
**Post date:** [April 21, 2020, 4:45pm UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097/1 "2020-04-21T16:45:36Z")

</div>

Hello Everyone,  
I am new to ELK stack, I am trying to install elasticsearch and kibana using containers, and can't get kibana to work.

```auto
docker run -d --pod elk -e ELASTICSEARCH_HOSTS=http://localhost:9200 --name kibana docker.elastic.co/kibana/kibana:7.6.2
docker run -d --pod elk --name elasticsearch --ulimit=host -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2

```

- I made sure ES is reachable from the kibana (and from the outside)  
`curl "http://localhost:9200"`  
gives

```auto
    {
      "name" : "elk",
      "cluster_name" : "docker-cluster",
      "cluster_uuid" : "YmAj-PyDQQKE5ikqo0BZQw",
      "version" : {
        "number" : "7.6.2",
        "build_flavor" : "default",
        "build_type" : "docker",
        "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
        "build_date" : "2020-03-26T06:34:37.794943Z",
        "build_snapshot" : false,
        "lucene_version" : "8.4.0",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }

```

and ` curl -XGET localhost:9200/_cluster/allocation/explain?pretty`

```auto
    {
      "index" : "test-index",
      "shard" : 0,
      "primary" : false,
      "current_state" : "unassigned",
      "unassigned_info" : {
        "reason" : "CLUSTER_RECOVERED",
        "at" : "2020-04-21T16:03:38.658Z",
        "last_allocation_status" : "no_attempt"
      },
      "can_allocate" : "no",
      "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
      "node_allocation_decisions" : [
        {
          "node_id" : "wrpctUmgQfa8fRO0qEPCnQ",
          "node_name" : "elk",
          "transport_address" : "10.0.2.100:9300",
          "node_attributes" : {
            "ml.machine_memory" : "8206983168",
            "xpack.installed" : "true",
            "ml.max_open_jobs" : "20"
          },
          "node_decision" : "no",
          "deciders" : [
            {
              "decider" : "same_shard",
              "decision" : "NO",
              "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[test-index][0], node[wrpctUmgQfa8fRO0qEPCnQ], [P], s[STARTED], a[id=dpZ_qktvTEOj36phH37oIw]]"
            }
          ]
        }
      ]
    }

```

The logs give me this:

```auto
    {"type":"response","@timestamp":"2020-04-21T16:41:09Z","tags":[],"pid":2,"method":"get","statusCode":503,"req":{"url":"/","method":"get","headers":{"host":"localhost:5601","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","connection":"keep-alive","upgrade-insecure-requests":"1","dnt":"1"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":503,"responseTime":30082,"contentLength":9},"message":"GET / 503 30082ms - 9.0B"}
    {"type":"log","@timestamp":"2020-04-21T16:41:49Z","tags":["warning","monitoring","kibana-monitoring"],"pid":2,"message":"Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)"}
    {"type":"log","@timestamp":"2020-04-21T16:41:49Z","tags":["warning","monitoring","kibana-monitoring"],"pid":2,"message":"Unable to bulk upload the stats payload to the local cluster"}
    {"type":"log","@timestamp":"2020-04-21T16:41:59Z","tags":["warning","monitoring","kibana-monitoring"],"pid":2,"message":"Error: Request Timeout after 30000ms\n at /usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:397:9\n at Timeout.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:429:7)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)"}

```

I tried to connect to ES using python and it works fine.

---

<div class="post-metadata">

**Author:** ![LizaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lizad/32/51074_2.png) [@LizaD](https://discuss.elastic.co/u/LizaD)\
**Post date:** [April 22, 2020, 2:24am UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097/2 "2020-04-22T02:24:08Z")

</div>

Hi @hamidZa,

Welcome to our community! I was looking at your errors and seems like it is similar to this post: [Kibana monitoring page timeout](https://discuss.elastic.co/t/kibana-monitoring-page-timeout/166498), do you think there might be license issue? Are you able to launch Kibana at all?

Thanks,  
Liza

---

<div class="post-metadata">

**Author:** ![hamidZa](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hamidZa](https://discuss.elastic.co/u/hamidZa)\
**Post date:** [April 28, 2020, 3:49pm UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097/3 "2020-04-28T15:49:05Z")

</div>

Yes Maybe it is a license issue, I switched to kibana OSS and it works perfectly.

I tried to use the Trial and the Basic license but I didn't get it yo work, is there a guiide on how to use the licenses in dockeer ?

---

<div class="post-metadata">

**Author:** ![LizaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lizad/32/51074_2.png) [@LizaD](https://discuss.elastic.co/u/LizaD)\
**Post date:** [April 28, 2020, 6:08pm UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097/4 "2020-04-28T18:08:22Z")

</div>

Hi @hamidZa,

Here is our getting started guide:  
[https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html)

The basic license is default, so this guide shows how to setup trial one.

Hope this helps.

---

<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 26, 2020, 6:08pm UTC](https://discuss.elastic.co/t/503-error-because-of-request-timeout-after-30000ms/229097/5 "2020-05-26T18:08:23Z")

</div>

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