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) ***

Solarwinds

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)

Solarwinds
, , ,
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

3 Comments. Leave new

  • I had a similar experience with the standard virtual accunts, that were provided by the installer by default. Directly after installation everything was fine. After a server reoboot the services wouldn’t start.A required privelege is not…. the GPO revoked the privelege login as a service from the virtual account. Well…

    Reply
  • Venkata Shashank Kalki
    July 23, 2018 9:20 pm

    I have a similar issue but Agent account is already set with password never expires. Log shipping copy job exactly runs successfully for 4 hours and fails automatically with this error. Once I restart SQL Server agent, copy job runs fine again for next 4 hours. Can some one guide if possible.

    Reply

Leave a Reply

Menu