Skip to main content
Answer

sql error

  • November 10, 2021
  • 4 comments
  • 125 views

Forum|alt.badge.img+1

While backing up SQL workloads, the job returned an error saying “Unable to truncate Microsoft SQL Server transaction logs. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate SQL server transaction logs for instances:  . See guest helper log. .” 

what could be the reason for this?

In the sql settings, I enabled “backups logs periodically” and specified retention period. does these settings have something to do with the error?

Best answer by Chris.Childerhose

This could be SQL was too busy at the time of the backup or maybe the SQL VSS writer is not in a good state.  Also if you have SQL native backup or other jobs running this can interfere as well.  Best to check the job logs to see for sure.

4 comments

Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • Answer
  • November 10, 2021

This could be SQL was too busy at the time of the backup or maybe the SQL VSS writer is not in a good state.  Also if you have SQL native backup or other jobs running this can interfere as well.  Best to check the job logs to see for sure.


Mildur
Forum|alt.badge.img+12
  • Influencer
  • November 10, 2021

You will find the mentioned logs from @Chris.Childerhose on the sql server you try to backup in this location:

C:\ProgramData\Veeam\Backup\VeeamGuestHelper_DATE.log

Look the logs for sql related errors. 


vNote42
Forum|alt.badge.img+12
  • On the path to Greatness
  • November 10, 2021

Iams3le
Forum|alt.badge.img+11
  • Veeam Legend
  • November 10, 2021

Just like @vNote42 mentioned, this looks like a permission issue to me. Here are some guides that can help you.
https://www.veeam.com/kb2027
https://helpcenter.veeam.com/docs/backup/agents/protection_group_computers.html?ver=110

 

It is imperative that you take a look at the log as there could be other issues as suggested by @Mildur