# Kibana or elastic url not working after applying xpack -- redirected you too many times

**URL:** <https://discuss.elastic.co/t/kibana-or-elastic-url-not-working-after-applying-xpack-redirected-you-too-many-times/79099>\
**Category:** Kibana\
**Created:** [March 17, 2017, 9:53pm UTC](https://discuss.elastic.co/t/kibana-or-elastic-url-not-working-after-applying-xpack-redirected-you-too-many-times/79099 "2017-03-17T21:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Metelsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_metelsky/32/11387_2.png) [@Bob\_Metelsky](https://discuss.elastic.co/u/Bob_Metelsky)\
**Post date:** [March 17, 2017, 9:53pm UTC](https://discuss.elastic.co/t/kibana-or-elastic-url-not-working-after-applying-xpack-redirected-you-too-many-times/79099/1 "2017-03-17T21:53:33Z")

</div>

4 node physical cluster running redhat 6.5

all components 5.2 from elastics repository

Installing xpack from this guide  
[https://www.elastic.co/downloads/x-pack](https://www.elastic.co/downloads/x-pack)

installed xpack on ES - seemed clean  
installed xpack on kibana - seemed clean

used bootstrap.system\_call\_filter: false  
in the elasticsearch.yml to bypass the kernel check

ES and kibana start fine

if I use [http://myhostname:9200](http://myhostname:9200)  
I set a htaccess like dialog box for username and password  
if I use elastic and changeme - the dialog box just pops up again

when I go [http://myhostname:5601](http://myhostname:5601)  
I get the too many redirects error

googling show many people with that error but no solution.

Also I did a full restart for teh cluster  
currently I have ES and kibana running on one host only

kibana log shows alot of requests from my browser .216

{"type":"response","@timestamp":"2017-03-17T21:36:53Z","tags":[],"pid":2016,"method":"get","statusCode":302,"req":{"url":"/login?next=%2F","method":"get","headers":{"host":"nn775:5601","connection":"keep-alive","cache-control":"max-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,_/_;q=0.8","dnt":"1","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.1.216","userAgent":"192.168.1.216"},"res":{"statusCode":302,"responseTime":6,"contentLength":9},"message":"GET /login?next=%2F 302 6ms - 9.0B"}

on 9200 port after the httaccess dialog box fails I get

{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2017, 2:48am UTC](https://discuss.elastic.co/t/kibana-or-elastic-url-not-working-after-applying-xpack-redirected-you-too-many-times/79099/2 "2017-03-18T02:48:20Z")

</div>

I moved your question to #x-pack

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```
````

---

<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:** [April 15, 2017, 2:49am UTC](https://discuss.elastic.co/t/kibana-or-elastic-url-not-working-after-applying-xpack-redirected-you-too-many-times/79099/3 "2017-04-15T02:49:00Z")

</div>

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