Warning 445 error using SQL Backup 10 with a gMSA
SirRandall
Posts: 12 Bronze 1
Environment:
I have a SQL Backup jobs created to backup SQL transaction logs to the local disk, and then copy that same backup to my network share.
The local backup (r:\mssql\backups\....) runs as expected. No concerns here.
However, copying the backup file to the network share never seems to occur, and the job stops, not reporting success or failure.
The error log on the sql host only shows this at the end of the log entry
...
- SQL Backup 10.1.18.2060 installed on a fresh Windows Server 2019 | SQL Server 2019 Ent instance.
- The SQL Backup service is configured to login as a group-managed-service account (gmsa).
- Attempting to execute backups on an AG Secondary (databases are read-only)
- The gmsa account has sysadmin to the SQL instance, full rights to local (sql-host) storage, and a read/write access to a network share.
I have a SQL Backup jobs created to backup SQL transaction logs to the local disk, and then copy that same backup to my network share.
The local backup (r:\mssql\backups\....) runs as expected. No concerns here.
However, copying the backup file to the network share never seems to occur, and the job stops, not reporting success or failure.
The error log on the sql host only shows this at the end of the log entry
...
3/21/2023 7:49:07 AM: Processed 3 pages for database 'dbName', file 'db_log' on file 1.
3/21/2023 7:49:07 AM: BACKUP LOG successfully processed 3 pages in 0.013 seconds (1.802 MB/sec).
3/21/2023 7:49:07 AM: SQL Backup process ended.
3/21/2023 7:49:07 AM: Deleted msdb entries older than 2/19/2023 7:49:07 AM
3/21/2023 7:49:07 AM: Deleted local history entries older than 2/19/2023 7:49:07 AM
3/21/2023 7:49:07 AM: Warning 445: OLEDB error running parameterised command: attempt to write a readonly database
If I adjust the SQL Backup job to send the initial backup file to the network share (rather than being copied later), it works fine, so I know the gmsa account has the write permission on the network share.
In addition, this exact approach (local backup, copy to network) seems to work as expected for FULL backups. It only appears to be failing when doing transaction log backups.
Looking for advice on the Warning entry in the log and why that seems to stop the rest of the process.
Thanks!
If I adjust the SQL Backup job to send the initial backup file to the network share (rather than being copied later), it works fine, so I know the gmsa account has the write permission on the network share.
In addition, this exact approach (local backup, copy to network) seems to work as expected for FULL backups. It only appears to be failing when doing transaction log backups.
Looking for advice on the Warning entry in the log and why that seems to stop the rest of the process.
Thanks!
Best Answer
-
SirRandall Posts: 12 Bronze 1I figured it out.
The gmsa account didn't have Server Administrator access. Everything cleared up after that.
Issue resolved. Hoping this lengthy ramble helps someone else down the road.
Answers
I'll bet that's it, and it's what I'm working on now.
I'd appreciate any other suggestions.
--update-- Ignore this. There is no SQLBackup repository. I was getting it confused with the SQL Monitor repository.