Kibana 6.4 getting Request failed with status code: 403

Hi,

I have removed kibana 5.5 from my redhat 6.9 server and installed 6.4.

But on every request I got the below error :

Config: Request failed with status code: 403

Error: Request failed with status code: 403

$@http://192.168.2.79:5601/bundles/commons.bundle.js:3:878524 tryCatch@http://192.168.2.79:5601/bundles/vendors.bundle.js:29:602781 invoke@http://192.168.2.79:5601/bundles/vendors.bundle.js:29:606666 defineIteratorMethods/</prototype[method]@http://192.168.2.79:5601/bundles/vendors.bundle.js:29:603902 step@http://192.168.2.79:5601/bundles/commons.bundle.js:3:879288 step/<@http://192.168.2.79:5601/bundles/commons.bundle.js:3:879422 run@http://192.168.2.79:5601/bundles/vendors.bundle.js:29:571210 notify/<@http://192.168.2.79:5601/bundles/vendors.bundle.js:29:571450 flush@http://192.168.2.79:5601/bundles/vendors.bundle.js:153:55580

I am unable to create any index pattern for that.

Please help me.

Thanks,

Did you also upgrade your elasticsearch backend to 6.4? can you access your elasticsearch instance directly to ensure it's up and running?

Hi @Stacey_Gammon

Yes we have upgraded es to 6.4 version and no issue with elasticsearch, its running and status is green on my 3 node cluster.

We can create new index through curl and its showing in kibana. But I am unable to create any index pattern , actually on every request I got Request failed with status code: 403

Please help me.

Thanks,

Hi @Stacey_Gammon

Any update??

I have also test http://192.168.2.79:5601/status#?_g=() and its also green status

Thanks,

This post seems somewhat similar to yours: Kibana POST 403 (forbidden) on create index

Can you run GET /_recovery?human in dev tools and post the output?

Perhaps the index migration never completed on the .kibana index?

Hi,

The Output is :

".kibana": {
"shards": [
{
"id": 0,
"type": "EXISTING_STORE",
"stage": "DONE",
"primary": true,
"start_time": "2018-08-30T12:18:57.487Z",
"start_time_in_millis": 1535631537487,
"stop_time": "2018-08-30T12:18:57.883Z",
"stop_time_in_millis": 1535631537883,
"total_time": "395ms",
"total_time_in_millis": 395,
"source": {},
"target": {
"id": "dwRRAbBcTEqJSQbG-bxc7A",
"host": "192.168.2.80",
"transport_address": "192.168.2.80:9300",
"ip": "192.168.2.80",
"name": "es-data1"
},
"index": {
"size": {
"total": "261b",
"total_in_bytes": 261,
"reused": "261b",
"reused_in_bytes": 261,
"recovered": "0b",
"recovered_in_bytes": 0,
"percent": "100.0%"
},
"files": {
"total": 1,
"reused": 1,
"recovered": 0,
"percent": "100.0%"
},
"total_time": "0s",
"total_time_in_millis": 0,
"source_throttle_time": "-1",
"source_throttle_time_in_millis": 0,
"target_throttle_time": "-1",
"target_throttle_time_in_millis": 0
},
"translog": {
"recovered": 0,
"total": 0,
"percent": "100.0%",
"total_on_start": 0,
"total_time": "333ms",
"total_time_in_millis": 333
},
"verify_index": {
"check_index_time": "0s",
"check_index_time_in_millis": 0,
"total_time": "0s",
"total_time_in_millis": 0
}
},
{
"id": 0,
"type": "PEER",
"stage": "DONE",
"primary": false,
"start_time": "2018-08-30T12:18:49.560Z",
"start_time_in_millis": 1535631529560,
"stop_time": "2018-08-30T12:18:50.317Z",
"stop_time_in_millis": 1535631530317,
"total_time": "757ms",
"total_time_in_millis": 757,
"source": {
"id": "dwRRAbBcTEqJSQbG-bxc7A",
"host": "192.168.2.80",
"transport_address": "192.168.2.80:9300",
"ip": "192.168.2.80",
"name": "es-data1"
},
"target": {
"id": "A3w4wz7jSAG2nrzhEjLS0w",
"host": "192.168.2.81",
"transport_address": "192.168.2.81:9300",
"ip": "192.168.2.81",
"name": "es-data2"
},
"index": {
"size": {
"total": "0b",
"total_in_bytes": 0,
"reused": "0b",
"reused_in_bytes": 0,
"recovered": "0b",
"recovered_in_bytes": 0,
"percent": "0.0%"
},
"files": {
"total": 0,
"reused": 0,
"recovered": 0,
"percent": "0.0%"
},
"total_time": "8ms",
"total_time_in_millis": 8,
"source_throttle_time": "-1",
"source_throttle_time_in_millis": 0,
"target_throttle_time": "-1",
"target_throttle_time_in_millis": 0
},
"translog": {
"recovered": 0,
"total": 0,
"percent": "100.0%",
"total_on_start": -1,
"total_time": "134ms",
"total_time_in_millis": 134
},
"verify_index": {
"check_index_time": "0s",
"check_index_time_in_millis": 0,
"total_time": "0s",
"total_time_in_millis": 0
}
}
]
},

Hi,

and the output of

POST .kibana/_search
{
"query": {
"term": {
"type": {
"value": "index-pattern"
}
}
}
}

is

{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}

Hi @Stacey_Gammon

Any update ??

What do you get when you run GET _cat/indices in dev tools?

Try also:

POST .kibana/_search
{
  "query": {
    "term": {
      "type": {
        "value": "index-pattern"
      }
    }
  }
}

Do you have any security set up?

Hi @Stacey_Gammon

The output is

{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}

No, i don’t have any security security setup. I have just upgraded 5.5 to 6.4. Please follow previous response.

Thanks

What about GET _cat/indices?

Looks like you have no index patterns set up in your kibana index. Is there any data in your kibana index? what about POST .kibana/_search? If there is no data in your index, maybe you can start from a fresh install.

Hi @Stacey_Gammon,

The Result of GET _cat/indices? :

green open amit MFtPOimzS8eSnIQcGTxmow 5 1 1 0 8.3kb 4.1kb
green open vehere MtxdxYdARzWft2eD2eC1Yg 5 1 1000 400 1.8mb 938.4kb
green open .monitoring-es-6-2018.08.31 wlFh0PGdR8WbPn1MEr7nVA 1 1 101897 12524 128.2mb 65.9mb
green open vehere-image FnpUZiuSRae2Z7F2_sTCwg 5 1 4 0 28.8kb 14.4kb
green open vehere1 yn-AfAlSQE2K5uya_FjAOQ 5 1 400 0 575.3kb 287.6kb
green open logvehere-flows-2018.06.13 cnFgUSRjT4Kav0jSTkaE1A 5 1 46 0 1.3mb 685.1kb
green open logvehere-flows-2018.06.14 5jOmed86TvW_hqmN6rbdPA 5 1 92 0 3.4mb 1.7mb
green open vehere-language -hdRw-iNThKEGYjSSa3tcw 5 1 4 0 27.1kb 13.5kb
green open .monitoring-kibana-6-2018.08.31 2HOpoZWmTjm5HWdc2zhRrQ 1 1 4107 0 2.5mb 1.2mb
green open my_index 4IF4kHhFTHibyI4uaTs88Q 5 1 1 0 8.3kb 4.1kb
green open logvehere-stats-2018.06.13 KJftsoLgTv23xkdgFoShsA 5 1 8 0 119kb 59.5kb
green open logvehere-flows-2018.06.15 XXrb2zC7QSep7ZoSAupyow 5 1 7138739 0 32gb 16gb
green open .monitoring-kibana-6-2018.09.03 G9huT6oXRrC46s8bHrTBJg 1 1 136 0 336.4kb 175.3kb
green open .monitoring-kibana-6-2018.08.29 JeG_uXDzQuKn5u6CcVl0qw 1 1 1163 0 916.3kb 458.1kb
green open logvehere-stats-2018.06.15 cvzBA-j1Q-m_i9uea_AC7g 5 1 60 0 524.9kb 262.4kb
green open .monitoring-es-6-2018.08.30 XtSfIMugQWaUFvomjKBYRw 1 1 30539 360 40.9mb 20.4mb
green open logvehere-stats-2018.06.14 BCsqZHCQT6S9srYUWySJdQ 5 1 12 0 140.1kb 70kb
green open .monitoring-es-6-2018.08.29 M9Xu3y9XRHy6k76ZsUngtw 1 1 25282 116 31.6mb 15.7mb
green open .monitoring-es-6-2018.09.03 JfJmMNokTUqrit4F9VcbPw 1 1 4788 0 5mb 2.4mb
green open .monitoring-kibana-6-2018.08.30 zS9wV4LOTRmF2mvm7Dol9Q 1 1 1301 0 841.1kb 427.5kb
green open .kibana tgrIHSh7RZ6uAb4XCDAKEg 1 1 0 0 522b 261b

==================================================================

And the result of POST .kibana/_search?

{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}

==================================================================

Thanks,

Hi @Stacey_Gammon,

Any Update??

Hi,

We are unable to create any index pattern. The below is there all the time.

message blocked by: [FORBIDDEN/8/index write (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/8/index write (api)];

Did you use the same username and password in your curl commands as the username and password that you have configured in your kibana yml file?

Did you restart Kibana?

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