# Index problem with Kibana Spaces

**URL:** https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332
**Category:** Kibana
**Created:** [December 18, 2018, 1:16pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332 "2018-12-18T13:16:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [December 18, 2018, 1:16pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/1 "2018-12-18T13:16:04Z")

</div>

Hi,

I have a problem with Kibana Spaces.  
Whenever I log in the space selector appears, but if I click on any of the buttons I get an error.  
From kibana.stdout log:

`{"type":"response","@timestamp":"2018-12-18T13:08:08Z","tags":[],"pid":1466,"method":"post","statusCode":403,"req":{"url":"/api/spaces/v1/space/default/select","method":"post","headers":{"host":"10.98.30.144:8080","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0","accept":"application/json, text/plain, */*","accept-language":"hu-HU,hu;q=0.8,en-US;q=0.5,en;q=0.3","accept-encoding":"gzip, deflate","referer":"http://10.98.30.144:8080/","kbn-version":"6.5.1","connection":"keep-alive","content-length":"0"},"remoteAddress":"10.98.60.182","userAgent":"10.98.60.182","referer":"http://10.98.30.144:8080/"},"res":{"statusCode":403,"responseTime":37,"contentLength":9},"message":"POST /api/spaces/v1/space/default/select 403 37ms - 9.0B"}`

If I use a specific URL such as http://:5601/app/kibana#/management then it appears correctly.  
So I have checked the spaces with space API (GET /api/spaces/space). The actual response for this query was:  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "api",  
"index\_uuid" : "_na_",  
"index" : "api"  
}  
],  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "api",  
"index\_uuid" : "_na_",  
"index" : "api"  
},  
"status" : 404  
}

The environment:  
ES 6.5.1  
Kibana 6.5.1

Please help what did I wrong? Thx.

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [December 18, 2018, 2:04pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/2 "2018-12-18T14:04:40Z")

</div>

Hey @pszemesy,

How are you calling the `GET /api/spaces/space` API? Are you using Kibana DevTools, or hitting the ES API directly? Can you try hitting the Kibana API endpoint directly instead? Ex: `GET http://my-kibana:5601/api/spaces/space`?

Can you turn on verbose logging (`logging.verbose: true` in your `kibana.yml`), and post the server logs when this error occurs?

---

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [December 18, 2018, 2:16pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/3 "2018-12-18T14:16:44Z")

</div>

I'm using Kibana Dev Tools.  
This one with verbose log:  
`{"type":"response","@timestamp":"2018-12-18T14:15:53Z","tags":[],"pid":1466,"method":"post","statusCode":403,"req":{"url":"/api/spaces/v1/space/default/select","method":"post","headers":{"host":"10.98.30.144:8080","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0","accept":"application/json, text/plain, */*","accept-language":"hu-HU,hu;q=0.8,en-US;q=0.5,en;q=0.3","accept-encoding":"gzip, deflate","referer":"http://10.98.30.144:8080/","kbn-version":"6.5.1","connection":"keep-alive","content-length":"0"},"remoteAddress":"10.98.60.182","userAgent":"10.98.60.182","referer":"http://10.98.30.144:8080/"},"res":{"statusCode":403,"responseTime":46,"contentLength":9},"message":"POST /api/spaces/v1/space/default/select 403 46ms - 9.0B"}`

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [December 18, 2018, 2:20pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/4 "2018-12-18T14:20:18Z")

</div>

Kibana DevTools will only work with Elasticsearch APIs -- it's not yet compatible with Kibana APIs. Can you hit the `GET http://my-kibana:5601/api/spaces/space` endpoint using CURL or similar?

Which license type are you using? If you're using a Gold license, can you try upgrading to either 6.5.2 or 6.5.3? 6.5.1 had a bug with Spaces when using a Gold license.

---

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [December 18, 2018, 2:23pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/5 "2018-12-18T14:23:18Z")

</div>

We do have Gold license.  
I will upgrade it.

---

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [December 18, 2018, 4:01pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/6 "2018-12-18T16:01:27Z")

</div>

After upgrading to 6.5.3. Kibana stucked “Optimizing and caching bundles….” ([Kibana not starting. Stuck at "Optimizing and caching bundles...." after upgrade](https://discuss.elastic.co/t/kibana-not-starting-stuck-at-optimizing-and-caching-bundles-after-upgrade/157870)).  
So, still no solution.

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [December 19, 2018, 12:36pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/7 "2018-12-19T12:36:25Z")

</div>

It's a little unclear from your last message - did you get past the "Optimizing and caching bundles" issue, or are you still stuck there?

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [December 19, 2018, 12:36pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/8 "2018-12-19T12:36:45Z")

</div>

If you're still stuck, try removing the `optimize` directory, and restart Kibana

---

<div class="post-metadata">

### Author: ![pszemesy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pszemesy](https://discuss.elastic.co/u/pszemesy)
#### Post date: [January 4, 2019, 2:49pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/9 "2019-01-04T14:49:31Z")

</div>

Thanks, it is solved! It was a disk issue.

---

<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: [February 1, 2019, 2:49pm UTC](https://discuss.elastic.co/t/index-problem-with-kibana-spaces/161332/10 "2019-02-01T14:49:32Z")

</div>

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