- Newest
- Most votes
- Most comments
The error you're seeing is likely related to a scheduled job or maintenance activity on your RDS SQL Server instance. Since it occurs consistently at 2:00am PST, it suggests an automated process.
To investigate this issue, you can:
- Check the SQL Server error logs more thoroughly using the following command:
EXEC rdsadmin.dbo.rds_read_error_log @index = 0, @type = 1, @search_str1= 'Unauthorized job';
- Look for any CloudWatch logs that might contain more detailed information. Since RDS for SQL Server publishes error logs to CloudWatch, you can:
- Go to the CloudWatch console
- Under "Logs" in the navigation pane, choose "Log groups"
- Find the log group for your SQL Server instance (typically named
/aws/rds/instance/your-db-instance-name/error) - Check the log streams around the time the error occurs
-
Verify if your user has the appropriate permissions. The error might be occurring because a scheduled job is trying to run with insufficient permissions. You may need to add your user to the appropriate role (like 'db_backupoperator') for specific databases.
-
Check if this is related to RDS Custom for SQL Server compatibility. Your engine version (15.00.4073.23.v1) appears to be a classic RDS Custom for SQL Server engine version, which might have specific limitations or requirements.
Common SQL Server error codes to look for in conjunction with this error include 1105 (space allocation issues), 3041 (backup failures), 9002 (transaction log full), and others that might provide context to the main error.
Sources
Set up proactive monitoring for Amazon RDS for SQL Server with real-time Slack notifications | AWS Database Blog
I want to backup microsoft SQL database to RDS. I have setup all prerequisites now I am having error while msdb.dbo.rds_backup_database command | AWS re:Post
Troubleshooting DB issues for Amazon RDS Custom for SQL Server - Amazon Relational Database Service
Viewing server logs - SQL Server to Aurora PostgreSQL Migration Playbook
DownloadDBLogFilePortion - Amazon Relational Database Service
