Articles in this section

Why do clients reports error code 22: AEROSPIKE_ERR_FAIL_FORBIDDEN when doing a scan?

Problem Description

A client (can also be asrestore) reports an error during operation:

Error while storing record - code 22: AEROSPIKE_ERR_FAIL_FORBIDDEN at src/main/aerospike/as_command.c:594

Explanation

This error indicates that the record cannot be written. There can be different situations that cause this issue. The most common causes with solutions if this is seen during a scan are covered below.

Solution

  • If received during scan, check if scan-threads-limit number of scans are running. For server versions prior to 4.7.0 - check if the scan-max-active configuration setting is reached.

    Solution: As a workaround, consider increasing the limit. Otherwise, reduce the number of ongoing scans and re-issue the scan. Refer to the Manage Scans documentation for further details.


Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful