backup was working, now it is not
SQL Backup job failed with exitcode: 5240 SQL error code: 0 [SQLSTATE 42000] (Error 50000). The step failed.
The problem seems to have started after they had an incomplete backup due to a power failure. The restore job on the secondary server never completed because of this and left the DB on the secondary server in the loading state. SQL server was restarted and the DB was restored from the last good backup. Since this time, the backup on the primary server keeps failing. They also do a regular SQL Server backup in the middle of the night. That backup is running with no problems.