The Error "A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot." is an NSS-related error that affects CURL HTTPS requests to the DirectAdmin API. Older versions of the "nss" package can cause this error during your backups in DirectAdmin.
If you see the following errors during your backups:
[01/Aug/2022 11:09:09 +0000] [PID 29175] [ERROR] Failed making API call to directadmin. Error: A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. (Status Code: )
[01/Aug/2022 11:09:09 +0000] [PID 29175] Backup Failed
Please try checking that your nss package is updated to the latest version available for your OS distribution. You may also wish to ensure all other packages are updated as well.
# Update the nss package
yum clean all
yum update nss
# Update your server
yum clean all
yum update