I have set up transaction log shipping between 2 SQL 2014 Servers, everything seems to setup correctly but when the restore happens it seems to fail if the .trn is really small eg 7k.
Not sure if that has any bearing on it but it the only thing that is different.
Here are the logs from the restore job.
Date 25/04/2016 22:59:24 Log Job History (LSRestore_IRIS_WebStock)
Step ID 1 Server HERA Job Name LSRestore_IRIS_WebStock Step Name Log shipping restore log job step. Duration 00:00:04 Sql Severity 0 Sql Message ID 0 Operator Emailed Operator Net sent
Operator Paged Retries Attempted 0Message 2016-04-25 22:59:28.71 Error: Could not apply log backup file 'E:\ShippingLogs\WebStock\WebStock_20160425033000.trn' to secondary database 'WebStock'.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.71 Error: An error occurred while processing the log for database 'WebStock'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log. An error occurred during recovery, preventing the database 'WebStock' (12:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
RESTORE LOG is terminating abnormally. Processed 0 pages for database 'WebStock', file 'WebStock' on file 1. Processed 1 pages for database 'WebStock', file 'WebStock_log' on file 1.(.Net SqlClient Data Provider) 2016-04-25 22:59:28.71 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Skipping log backup file 'E:\ShippingLogs\WebStock\WebStock_20160425033000.trn' for secondary database 'WebStock' because the file could not be verified. 2016-04-25 22:59:28.73 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: Could not apply log backup file 'E:\ShippingLogs\WebStock\WebStock_20160425034500.trn' to secondary database 'WebStock'.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Skipping log backup file 'E:\ShippingLogs\WebStock\WebStock_20160425034500.trn' for secondary database 'WebStock' because the file could not be verified. 2016-04-25 22:59:28.73 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) 2016-04-25 22:59:28.73 Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) 2016-04-25 22:59:28.73 Error: Could not apply log backup file 'E:\ShippingLogs\WebStock\WebStock_20160425040000.trn' to secondary database 'WebStock'.(Microsoft.SqlServer.Management.LogShipp
If I remove that log and run the restore again it works until it finds another log that is really small.
Would the restore fail if the log was empty?