# Too Many Scroll Context ERROR but found no active scroll context

**URL:** <https://discuss.elastic.co/t/too-many-scroll-context-error-but-found-no-active-scroll-context/256598>\
**Category:** Elasticsearch\
**Created:** [November 25, 2020, 4:36am UTC](https://discuss.elastic.co/t/too-many-scroll-context-error-but-found-no-active-scroll-context/256598 "2020-11-25T04:36:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zchar](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zchar](https://discuss.elastic.co/u/zchar)\
**Post date:** [November 25, 2020, 4:36am UTC](https://discuss.elastic.co/t/too-many-scroll-context-error-but-found-no-active-scroll-context/256598/1 "2020-11-25T04:36:23Z")

</div>

Hi team,

Recently, I upgraded my ES cluster from 7.4.2 to 7.6.2. Then I found "Too Many Scroll Context ..." error always occurred and scroll search is not available on my cluster.

I followed the exception tips and turned "search.max\_open\_scroll\_context" settings to 10000, 100000. However, this issue still here. I used node stats api to check the context count on my cluster, but I found 0 scroll\_current is active. Is this a bug or some mistake for my configuration?

Please help to check whether this is an opened ISSUE or how could I solve?

Thanks!

**Detailed exception info:**

GET /.kibana\_1/\_search?size=100&scroll=1m&pretty  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "exception",  
"reason" : "Trying to create too many scroll contexts. Must be less than or equal to: [100000]. This limit can be set by changing the [search.max\_open\_scroll\_context] setting."  
}  
],  
"type" : "search\_phase\_execution\_exception",  
"reason" : "all shards failed",  
"phase" : "query",  
"grouped" : true,  
"failed\_shards" : [  
{  
"shard" : 0,  
"index" : ".kibana\_1",  
"node" : "ggndr9-pQG2xpOSmljpcjg",  
"reason" : {  
"type" : "exception",  
"reason" : "Trying to create too many scroll contexts. Must be less than or equal to: [100000]. This limit can be set by changing the [search.max\_open\_scroll\_context] setting."  
}  
}  
]  
},  
"status" : 500  
}

* * *

**Detailed nodes stat info:**

GET /\_nodes/stats/indices/search?pretty  
"nodes" : {  
"VQHhX9lxRDKjjgvb-zK-Vg" : {  
"timestamp" : 1606274771999,  
"name" : "node-1",  
"indices" : {  
"search" : {  
"open\_contexts" : 150,  
"query\_total" : 129395667,  
"query\_time\_in\_millis" : 46486283,  
"query\_current" : 7,  
"fetch\_total" : 41178198,  
"fetch\_time\_in\_millis" : 21162191,  
"fetch\_current" : 0,  
"scroll\_total" : 7035,  
"scroll\_time\_in\_millis" : 14025,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"QmDzWzslTf2w2Vy4rhsHJg" : {  
"timestamp" : 1606274771997,  
"name" : "node-2",  
"indices" : {  
"search" : {  
"open\_contexts" : 155,  
"query\_total" : 3186800204,  
"query\_time\_in\_millis" : 877948462,  
"query\_current" : 6,  
"fetch\_total" : 904340329,  
"fetch\_time\_in\_millis" : 379070859,  
"fetch\_current" : 3,  
"scroll\_total" : 11602,  
"scroll\_time\_in\_millis" : 30711,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"7LCXTuDrQBedpV4VNyWQVA" : {  
"timestamp" : 1606274771996,  
"name" : "node-3",  
"indices" : {  
"search" : {  
"open\_contexts" : 175,  
"query\_total" : 3345935363,  
"query\_time\_in\_millis" : 775661713,  
"query\_current" : 6,  
"fetch\_total" : 964843391,  
"fetch\_time\_in\_millis" : 353861601,  
"fetch\_current" : 3,  
"scroll\_total" : 1239,  
"scroll\_time\_in\_millis" : 1393,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"iPftIDNuRbaNUK9sS\_TiuA" : {  
"timestamp" : 1606274771997,  
"name" : "node-4",  
"indices" : {  
"search" : {  
"open\_contexts" : 140,  
"query\_total" : 17843768,  
"query\_time\_in\_millis" : 7387810,  
"query\_current" : 11,  
"fetch\_total" : 5822120,  
"fetch\_time\_in\_millis" : 2959936,  
"fetch\_current" : 2,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"v16oQZwaSSqbEMHHA\_aSPw" : {  
"timestamp" : 1606274771997,  
"name" : "node-5",  
"indices" : {  
"search" : {  
"open\_contexts" : 136,  
"query\_total" : 3365704567,  
"query\_time\_in\_millis" : 799540998,  
"query\_current" : 2,  
"fetch\_total" : 967083736,  
"fetch\_time\_in\_millis" : 355821602,  
"fetch\_current" : 3,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"UKVzTMVVSf2JKboCyovYGQ" : {  
"timestamp" : 1606274771997,  
"name" : "node-6",  
"indices" : {  
"search" : {  
"open\_contexts" : 0,  
"query\_total" : 0,  
"query\_time\_in\_millis" : 0,  
"query\_current" : 0,  
"fetch\_total" : 0,  
"fetch\_time\_in\_millis" : 0,  
"fetch\_current" : 0,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"BamvBHzDR46-UJP3baSQrQ" : {  
"timestamp" : 1606274771998,  
"name" : "node-7",  
"indices" : {  
"search" : {  
"open\_contexts" : 172,  
"query\_total" : 10097236,  
"query\_time\_in\_millis" : 3679491,  
"query\_current" : 5,  
"fetch\_total" : 3154781,  
"fetch\_time\_in\_millis" : 1460012,  
"fetch\_current" : 2,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"2NKZEoHgSouDpxg7hXinog" : {  
"timestamp" : 1606274771997,  
"name" : "node-8",  
"indices" : {  
"search" : {  
"open\_contexts" : 132,  
"query\_total" : 3288442014,  
"query\_time\_in\_millis" : 735619798,  
"query\_current" : 5,  
"fetch\_total" : 930825770,  
"fetch\_time\_in\_millis" : 336368026,  
"fetch\_current" : 3,  
"scroll\_total" : 1,  
"scroll\_time\_in\_millis" : 6,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"eou4gX6sTGiIoMPbJi0cLw" : {  
"timestamp" : 1606274771998,  
"name" : "node-9",  
"indices" : {  
"search" : {  
"open\_contexts" : 131,  
"query\_total" : 8981811,  
"query\_time\_in\_millis" : 3889592,  
"query\_current" : 3,  
"fetch\_total" : 2861921,  
"fetch\_time\_in\_millis" : 1514770,  
"fetch\_current" : 1,  
"scroll\_total" : 24,  
"scroll\_time\_in\_millis" : 296,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
},  
"aBRYWGpHQdywvPKW7yU-oQ" : {  
"timestamp" : 1606274771997,  
"name" : "node-10",  
"indices" : {  
"search" : {  
"open\_contexts" : 154,  
"query\_total" : 3258517489,  
"query\_time\_in\_millis" : 752056319,  
"query\_current" : 1,  
"fetch\_total" : 940633748,  
"fetch\_time\_in\_millis" : 338807924,  
"fetch\_current" : 2,  
"scroll\_total" : 471,  
"scroll\_time\_in\_millis" : 1251,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![zchar](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zchar](https://discuss.elastic.co/u/zchar)\
**Post date:** [November 26, 2020, 3:34am UTC](https://discuss.elastic.co/t/too-many-scroll-context-error-but-found-no-active-scroll-context/256598/2 "2020-11-26T03:34:33Z")

</div>

Anyone help? Tks

---

<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:** [December 24, 2020, 3:34am UTC](https://discuss.elastic.co/t/too-many-scroll-context-error-but-found-no-active-scroll-context/256598/3 "2020-12-24T03:34:40Z")

</div>

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