SQL SERVER – Log Shipping Copy Job Failure – The Password for This Account Has Expired

SQL
3 Comments

Working as freelancer gives an opportunity to see various kinds of error and having fun to fix them. Recently, one of my blog readers sent an email and asked assistance on the log shipping issue. He said that log shipping copy job is failing.

As usual, I asked him error message and he shared below piece from copy job history.

Message
2016-09-27 17:22:23.33  *** Error: The password for this account has expired.
(mscorlib) ***
2016-09-27 17:22:24.01  *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***

The error message was descriptive enough. I asked him to follow below blog and share the output. SQL SERVER – How to Find Out When Your SQL Login Will Expire?

As expected, the password was expired. I asked him to put the right password for the service account for Agent because SQL Agent is used to perform the copy operation.

Once he put the right password the issue was resolved, but as a follow-up he asked me ways to avoid this in future.

SOLUTION/WORKAROUND

  1. Put the right password for the service account for SQL Agent on secondary.
  2. Make sure below property is checked so that it is not expired next time.

SQL SERVER - Log Shipping Copy Job Failure - The Password for This Account Has Expired ls-copy-01

Have you encountered the same issue in production?

Reference: Pinal Dave (https://blog.sqlauthority.com)

Log Shipping, , SQL Password, SQL Server Security
Previous Post
SQL SERVER – Error – Disallowing page allocations for database ‘DB’ due to insufficient memory in the resource pool
Next Post
SQL SERVER – Fix Connection Error – [Microsoft][ODBC SQL Server Driver][DBNETLIB][ConnectionOpen(Connect())

Related Posts

Leave a Reply