Index problem with Kibana Spaces

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.

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?

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"}

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.

We do have Gold license.
I will upgrade it.

After upgrading to 6.5.3. Kibana stucked “Optimizing and caching bundles….” (Kibana not starting. Stuck at "Optimizing and caching bundles...." after upgrade).
So, still no solution.

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?

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

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

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