# How to resolve Aerospike error, Operation not allowed at this time?

**URL:** <https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087>\
**Category:** General Discussion\
**Created:** [January 28, 2020, 5:15am UTC](https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087 "2020-01-28T05:15:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yash\_Tandon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/yash_tandon/32/1354_2.png) [@Yash\_Tandon](https://discuss.aerospike.com/u/Yash_Tandon)\
**Post date:** [January 28, 2020, 5:15am UTC](https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087/1 "2020-01-28T05:15:41Z")

</div>

> <https://stackoverflow.com/questions/59942249/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time>

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [February 6, 2020, 9:06pm UTC](https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087/2 "2020-02-06T21:06:07Z")

</div>

Resolved on StackOverflow:

* * *

You are most likely exceeding the default limit related to queries. First, see the definition for [error code 22](https://www.aerospike.com/docs/dev_reference/error_codes.html):

> For scans with server 4.7 or later, no threads available ([`scan-threads-limit`](https://www.aerospike.com/docs/reference/configuration/#scan-threads-limit) reached).

Based on your [other question](https://stackoverflow.com/questions/59948952/why-are-reads-sec-very-less-in-aerospike-then-as-compared-to-write-sec), you’re doing scans rather than a [query](https://www.aerospike.com/docs/guide/query.html) with a [secondary index](https://www.aerospike.com/docs/architecture/secondary-index.html). You’ll need to increase that limit, as suggested in the ‘Additional Information’. However, you have a pretty weak system in terms of CPU, so you should adjust that value and benchmark, comparing performance before and after with the same workload. In a real production system you’d have multiple nodes, probably want more than two CPU cores, and similarly tune the scan threads as needed.

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [August 31, 2020, 11:37pm UTC](https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087/3 "2020-08-31T23:37:01Z")

</div>

A post was split to a new topic: [Resolve AerospikeException: Error 22](https://discuss.aerospike.com/t/resolve-aerospikeexception-error-22/7800)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [November 23, 2020, 11:37pm UTC](https://discuss.aerospike.com/t/how-to-resolve-aerospike-error-operation-not-allowed-at-this-time/7087/4 "2020-11-23T23:37:10Z")

</div>

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