Symptoms
- In an attempt to configure Microsoft OneDrive Backup in Plesk > Tools & Settings > Backup Manager > Remote Storage Settings > Microsoft OneDrive Backup, the process fails with the error below:
Error: Unable to authorize Microsoft OneDrive Backup: SQLSTATE[HY000]: General error: 8 attempts to write a read-only database. The storage cannot be used until authorization is completed. Authorize.
- With the enabled debug mode, the same error can be found in the
/var/log/plesk/panel.log
file.
Cause
The incorrect ownerships are set for the /usr/local/psa/var/modules/one-drive-backup/settings.sqlite3
file.
Resolution
- Log into the server via SSH.
- Execute the command below to set the correct ownerships for the
/usr/local/psa/var/modules/one-drive-backup/settings.sqlite3
file:# chown psaadm:psaadm /usr/local/psa/var/modules/one-drive-backup/settings.sqlite3