I have a Primary Site & trying to setup a DR site. I created a Log shipping between the two database, Backup & Copy jobs works fine. Restore also works fine for the 1st time however after that restore fails & database goes to Recovery mode (showing restoring) from the Standby Mode.
The Backup & Copy folders have correct permissions & i am using AD account to run the Agent service on both the servers.
Please advise what could be wrong.
Below is the restore log.
Message
current state is closed.(System.Data) ***
2015-01-23 11:50:13.28 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 Skipping log backup file 'E:\foldername\xxxxxxxx.trn' for secondary database 'Databasename' because the file could not be verified.
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 Deleting old log backup files. Primary Database: 'databasename'
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 The restore operation completed with errors. Secondary ID: 'eb149c41-c657-4f42-925c-6cd635addcb9'
2015-01-23 11:50:13.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 ----- END OF TRANSACTION LOG RESTORE -----
Sanjay Mishra