Pascal_Netenvie
Regular Pleskian
Perhaps this could be auto fixed by Plesk repair tool or during Plesk upgrade process ...
root@mail:/# mv /etc/sw/keys/registry.xml /root/
root@mail:/# service sw-engine restart
root@mail:/# plesk repair fs -system -y
Checking Linux system files ......................................... [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0
root@mail:/# /usr/local/psa/bin/license --retrieve
Updating Plesk license key: Done
root@mail:/#
They recommended to test the result with the command:
root@mail:/#plesk daily
Result of interface implementation call: failure: SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: Licenses.id, query was: INSERT INTO "Licenses" ("id", "description", "vendor", "nextUpdate") VALUES (?, ?, ?, ?)
| 2024-04-21 00:00:10 | ERR | panel [1239739:66243aea0ac8b] | Unable to get key: Repository is not opened |
The issue is a known bug with ID #EXTPLESK-4926 for the Support SSH Access extension and will be fixed in a future version of the extension.
1.2.6 (29 Nov 2024)
- The default SSH access period is extended to 14 days to prevent expiration during support ticket investigations.
- [-] Updates to license keys no longer cause tasks with "Integrity constraint violation" error to appear in task manager. (EXTPLESK-4926)
It is another bug; it has not been fixed yet.[...] Unable to get key: Repository is not opened [...]
Plesk Obsidian 18.0.68 4, March 2025
[...]
- The /var/log/plesk/panel.log file no longer contains the “Unable to get key: Repository is not opened” errors that were generated daily under specific circumstances. (PPP-59722)