# Not whitelisted in reindex.remote.whitelist

**URL:** <https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070>\
**Category:** Elasticsearch\
**Created:** [December 11, 2017, 10:51am UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070 "2017-12-11T10:51:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael\_gadaev](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@michael\_gadaev](https://discuss.elastic.co/u/michael_gadaev)\
**Post date:** [December 11, 2017, 10:51am UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/1 "2017-12-11T10:51:16Z")

</div>

hi all ..  
please help me with my strange issue ;

I want to reindex my old data from 2.3 cluster to 6.0  
I tried 2 ways :

1. with reindex.remote.whitelist ::  
I put my remote host in yaml :  
reindex.remote.whitelist: '[es-xxx.xxx.com:9200](http://es-xxx.xxx.com:9200)'

u see it in \_cluster/settings?pretty&include\_defaults :

```auto
"reindex" : { "remote" : { "whitelist" : ["es-xxx.xxx.com:9200"] } },

```

but wen I try :

> POST \_reindex  
> {  
> "source": {  
> "remote": {  
> "host": "[https://es-xxx.xxx.com:9200](https://es-xxx.xxx.com:9200)",  
> "username": "admin",  
> "password": "ssdsdwD"  
> },  
> "index": "reind\_v4"
> 
> },  
> "dest": {  
> "index": "reind\_v4"  
> }  
> }

I always get :

> "type": "illegal\_argument\_exception",  
> "reason": "[[es-xxx.xxx.com:9200](http://es-xxx.xxx.com:9200)] not whitelisted in reindex.remote.whitelist"

1. the second way is via snapshot restore  
I tried :

```auto
PUT _snapshot/prod_bak
{
  "type": "s3",
  "settings": {
    "bucket": "elastic-bucket"
  }
}

```

but when I check:

> GET /\_snapshot/prod\_bak/\_all

I got an empty array of snapshots :

```auto
{
  "snapshots": []
}

```

and when I do it with command line (aws s3 ls elastic-bucket) , I can see all my old snapshots :

what should I do that restore work??

---

<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:** [December 11, 2017, 2:32pm UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/2 "2017-12-11T14:32:08Z")

</div>

Please try to format properly your posts.

Did you restart the nodes after you added the `reindex.remote.whitelist`?

In case you did not read it, here is the documentation for this: [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/reindex-upgrade-remote.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/reindex-upgrade-remote.html)

---

<div class="post-metadata">

**Author:** ![michael\_gadaev](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@michael\_gadaev](https://discuss.elastic.co/u/michael_gadaev)\
**Post date:** [December 11, 2017, 4:13pm UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/3 "2017-12-11T16:13:52Z")

</div>

Hi David.. Thank you for reply..  
yes... I restart node after added reindex.remote.whitelist on .yml file...  
but anyway got

> ```
> "type": "illegal_argument_exception",
> "reason": "[[es-xxx.xxx.com:9200](http://es-xxx.xxx.com:9200/)] not whitelisted in 
> reindex.remote.whitelist"
> 
> ```

☹

---

<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:** [December 11, 2017, 6:32pm UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/4 "2017-12-11T18:32:46Z")

</div>

Did you do that on all nodes?

---

<div class="post-metadata">

**Author:** ![michael\_gadaev](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@michael\_gadaev](https://discuss.elastic.co/u/michael_gadaev)\
**Post date:** [December 12, 2017, 7:24am UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/5 "2017-12-12T07:24:25Z")

</div>

yes....

---

<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:** [December 12, 2017, 7:41am UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/6 "2017-12-12T07:41:13Z")

</div>

Hmmm. That's weird.

Could you share the exact `elasticsearch.yml` file you have and the exact reindex request you sent? You can send it via PM if you don't want to share that in public.

cc @nik9000 in case it rings a bell...

---

<div class="post-metadata">

**Author:** ![michael\_gadaev](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@michael\_gadaev](https://discuss.elastic.co/u/michael_gadaev)\
**Post date:** [December 12, 2017, 9:28am UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/7 "2017-12-12T09:28:49Z")

</div>

thank you..  
send you via PM

---

<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:** [December 12, 2017, 5:13pm UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/8 "2017-12-12T17:13:52Z")

</div>

Copying here my private answer in case someone else gets the same:

In the config file, there is:

```auto
    xpack.security.authc.accept_default_password: false

reindex.remote.whitelist: 'xxxx:9200'

```

The indentation is wrong and I suspect this is causing some troubles.  
Also I found some duplicated entries like:

```auto
network.host: IP
network.publish_host: NAME

network.host: IP
network.publish_host: NAME

```

---

<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:** [January 9, 2018, 5:14pm UTC](https://discuss.elastic.co/t/not-whitelisted-in-reindex-remote-whitelist/111070/9 "2018-01-09T17:14:00Z")

</div>

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