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:594Explanation
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-limitnumber of scans are running. For server versions prior to 4.7.0 - check if thescan-max-activeconfiguration 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.