Cannot Add Generic S3-Compatible Storage Account to Inventory
Product version: 10.11.3
Last modified: 22 October 2024
Region Codes Problem
When trying to add or edit a Generic S3-compatible Storage account in the NAKIVO Backup & Replication Inventory, the following error message is displayed:
Provided Region Codes are incorrect. Please check the region codes and try again.
Background
When adding a Generic S3-compatible Storage account to the Inventory, NAKIVO Backup & Replication uses the S3 API to discover the account. Specifically, the GetBucketLocation API call is used to confirm the region codes specified by the user. Oftentimes, the region names listed in a storage provider's portal and those returned by the API call do not match, resulting in the error message above.
Solution
If you specified region codes while adding or editing a Generic S3-compatible Storage account in the Inventory, try to add it again while leaving the Region code field blank. This way, the region code(s) will be discovered using only the S3 API.
Invalid Certificate Problem
When trying to add or edit a Generic S3-compatible Storage account in the NAKIVO Backup & Replication Inventory, the following error message is displayed:
Certificate for <endpoint name> doesn't match any of the subject alternative names:
[](SSLPeerUnverifiedException.
Background
The AWS S3 library does not accept invalid certificates.
Solution
To solve the problem, do the following:
-
If the certificate is the CA certificate, contact CA provider to issue the valid certificate.
-
If the certificate is self-signed certificate, regenerate the certificate with opensource tool using the following commands in the specified order:
-
openssl req -new > cert.csr
-
openssl x509 -in cert.csr -out cert.pem -req -signkey key.pem -days 1001
-
cat key.pem>>cert.pem{}
-