-
- Novice
- Posts: 8
- Liked: never
- Joined: Mar 15, 2011 8:17 am
- Full Name: Dmitry Chernyavsky
- Contact:
Truncating SQL transaction logs - SUDDENLY trouble
I don`t know support case ID because it`s not my system. It`s more a report than question.
Customer have two (almost identical) VM with Windows 2008R2 and MSSQL 2008R2, backed up by VBR 8 (unknown build). Everything was ok until some time (dec 2014 - jan 2015, as i investigate) - SQL logs stop truncating by backup job. To be clear - job reports OK, no errors was found in VBR, only Windows Eventlog and MSSQL Error Log report on truncating: "Login failed for user 'DOMAIN\backup-admin'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. CLIENT: <local machine>".
Looks like log was backed up, but size remain the same.
I had a limited time and just disabled UAC on server - SUDDENLY it helped, errors are gone and after manual shrink log size returned to initial.
BUT WHAT WAS THAT?(c) AFAIK all VBR operations is not running in interactive session and cannot be affected by UAC.
Customer have two (almost identical) VM with Windows 2008R2 and MSSQL 2008R2, backed up by VBR 8 (unknown build). Everything was ok until some time (dec 2014 - jan 2015, as i investigate) - SQL logs stop truncating by backup job. To be clear - job reports OK, no errors was found in VBR, only Windows Eventlog and MSSQL Error Log report on truncating: "Login failed for user 'DOMAIN\backup-admin'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. CLIENT: <local machine>".
Looks like log was backed up, but size remain the same.
I had a limited time and just disabled UAC on server - SUDDENLY it helped, errors are gone and after manual shrink log size returned to initial.
BUT WHAT WAS THAT?(c) AFAIK all VBR operations is not running in interactive session and cannot be affected by UAC.
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Dmitry, any chance that Patch 1 was installed prior to this problem starts to occur?
-
- Novice
- Posts: 8
- Liked: never
- Joined: Mar 15, 2011 8:17 am
- Full Name: Dmitry Chernyavsky
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Yes, it may be a reason, they said something about Patch 1.
But in my case backup user is already admin of MSSQL (he is a member of Domain Admins, MSSQL 2008R2 have BUILTIN\Administrators in permission).
And why turning off UAC is making sense?
But in my case backup user is already admin of MSSQL (he is a member of Domain Admins, MSSQL 2008R2 have BUILTIN\Administrators in permission).
And why turning off UAC is making sense?
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Despite this fact, the account was not able to impersonate on SQL Server. In the upcoming Update 2, however, Veeam B&R will failover to using Local System account in this case (that was also used prior installing Patch 1).TrK wrote:But in my case backup user is already admin of MSSQL (he is a member of Domain Admins, MSSQL 2008R2 have BUILTIN\Administrators in permission).
-
- Expert
- Posts: 123
- Liked: 3 times
- Joined: Nov 11, 2014 11:03 pm
- Full Name: Michael
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
I installed patch 2 for v8 on the 17th, as of the 16th all SQL backups were completing just fine. After installing patch 2, all SQL backups are showing warnings that logs unable to be truncated, because of permissions. We haven't changed any SQL permissions, and the day after the patch was installed, all of the warnings are showing up.
Support is moving to Tier 2. Case # 00886036
Support is moving to Tier 2. Case # 00886036
-
- Expert
- Posts: 221
- Liked: 16 times
- Joined: May 28, 2010 10:25 am
- Full Name: Seb
- Contact:
Re: Unable to truncate transaction logs.
Running v8 Update 2, getting warnings (that did not happen with Patch1)
Failed to finalize guest processing. Details: Failed to process 'TruncateSQLLog' command.
Failed to truncate SQL server transaction logs for instances: MSSQLSERVER. Check permissions for account Domain\Administrator.
Ofcourse the user is sysadmin on the server
Seb
Failed to finalize guest processing. Details: Failed to process 'TruncateSQLLog' command.
Failed to truncate SQL server transaction logs for instances: MSSQLSERVER. Check permissions for account Domain\Administrator.
Ofcourse the user is sysadmin on the server
Seb
-
- Chief Product Officer
- Posts: 31814
- Liked: 7302 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Mike, Seb - we've seen this in support a few times from people who have upgraded to Update 2, and have investigated most cases by now. The main reason is that we are now reporting issues with failed log truncation that we incorrectly did not report before Update 2 (even though they existed).
In most cases (out of just a few, really) so far the inability to truncate logs was caused by permissions problem. In a couple of cases, it was caused by corrupted transaction log on the production SQL Server, which prevents native SQL backup process from truncating it. And in one other case, the issue was caused by database state not being available through API, but this one we are able to fix from our side.
Thanks!
In most cases (out of just a few, really) so far the inability to truncate logs was caused by permissions problem. In a couple of cases, it was caused by corrupted transaction log on the production SQL Server, which prevents native SQL backup process from truncating it. And in one other case, the issue was caused by database state not being available through API, but this one we are able to fix from our side.
Thanks!
-
- Novice
- Posts: 6
- Liked: 1 time
- Joined: Apr 27, 2012 6:59 am
- Full Name: Massimo Dalla Giustina
- Contact:
[MERGED] Re: Unable to truncate transaction logs.
Yesterday applied Update2 and now I got the same message: "...Failed to process 'TruncateSQLLog' command..."
Before update 2 no problems...
Max
Before update 2 no problems...
Max
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Massimo, please refer to Anton's post above and the following note in Update 2 release notes:
Improved issues reporting. Backup job now detects and reports more issues around transaction log processing, such as failure to truncate logs. This may result in the appearance of a new warning after the update, simply because existing issues were not previously reported.
-
- Novice
- Posts: 6
- Liked: 1 time
- Joined: Apr 27, 2012 6:59 am
- Full Name: Massimo Dalla Giustina
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Hi Alexander,
thanks for your answer but the situation is not so clear.
I found also the KB2027 http://www.veeam.com/kb2027 and this messages on the logs:
but veeambkuser is already sysadmin for this SQL server and also local administrator so the problem cannot be permission....
thanks for your answer but the situation is not so clear.
I found also the KB2027 http://www.veeam.com/kb2027 and this messages on the logs:
Code: Select all
4/29/2015 11:12:39 AM 1064 Truncate statistics.
4/29/2015 11:12:39 AM 1064 Using account domain\veeambkuser
4/29/2015 11:12:39 AM 1064 Instance: MSSQLSERVER Failed. Error: OpenFromInitializationString failed. [[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.]
4/29/2015 11:12:39 AM 1064 Using account NT AUTHORITY\SYSTEM
4/29/2015 11:12:39 AM 1064 Instance: MSSQLSERVER Failed. Error: OpenFromInitializationString failed. [[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.]
4/29/2015 11:12:39 AM 1064 Truncating SQL logs. Failed.
4/29/2015 11:12:39 AM 1064 INFO RPC: truncation SQL logs.. Failed.
-
- Chief Product Officer
- Posts: 31814
- Liked: 7302 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
As you can see from the debug logs, the issue is pretty clear. Feel free to open a support case in case you need assistance in fixing your SQL Server access issue! Thanks.
-
- Novice
- Posts: 6
- Liked: 1 time
- Joined: Apr 27, 2012 6:59 am
- Full Name: Massimo Dalla Giustina
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Ok Anton,
the ticket was already opened (case #00885385) but you are more responsive than support
However consider that the job backups two Windows 2012 R2 servers forming a Windows Cluster where running SQL server 2014.
IMHO the connection problem you see on the debug log is because Veeam is trying to connect directly to the server instead of the clustered instance.
the ticket was already opened (case #00885385) but you are more responsive than support
However consider that the job backups two Windows 2012 R2 servers forming a Windows Cluster where running SQL server 2014.
IMHO the connection problem you see on the debug log is because Veeam is trying to connect directly to the server instead of the clustered instance.
-
- Novice
- Posts: 3
- Liked: never
- Joined: Nov 27, 2014 11:12 pm
- Full Name: Min
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
I'm getting the same warnings since updating. on check, 3 of the servers have SQL Express installed but their SQL services are not running. It'd be good if Veeam can check for SQL service status before trying to truncate logs or suppress warnings in those instances.
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Silently suppressing warnings on such instances does not look to be a good idea, I will check whether we could give more information (regarding service status) in such cases.
-
- Influencer
- Posts: 12
- Liked: 1 time
- Joined: Aug 18, 2014 8:54 pm
- Full Name: SanketB
- Contact:
[MERGED] Re: Unable to truncate transaction logs.
After applying update 2 i started getting this error.
Anyone else getting similar error?
EDIT: never mind, i found my answerhere.
Code: Select all
5/4/2015 6:48:11 PM :: Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command.
Failed to truncate transaction logs for SQL instances: SQLSERVER. Possible reasons: lack of permissions, or transaction log corruption.
EDIT: never mind, i found my answerhere.
-
- Influencer
- Posts: 24
- Liked: 2 times
- Joined: Jan 01, 2006 1:01 am
- Contact:
Re: Unable to truncate transaction logs.
We are also experiencing this on ALL our VMs that are running SQL Server including SQL 2008 and 2008 R2 and it started AFTER we applied Update 2 so I don't understand Gostevs comment in the other thread where he states that this issue is addressed by Update 2.
Have FUN!
Michael Pozar
Have FUN!
Michael Pozar
-
- Service Provider
- Posts: 28
- Liked: 5 times
- Joined: Apr 26, 2011 7:36 am
- Full Name: Stefan Brun | Streamline AG
- Location: Switzerland
- Contact:
Re: Unable to truncate transaction logs.
Here also the same Problem after Patch 2 (after Patch 1 i had no problems at all) my only Problems concerns Small Business Server 2003 - 2011 with the Following Databases: SBSMonitoring, Sharepoint, Microsoft##SSEE and MSSQLServer.
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Guys, I've merged your posts to a more appropriate topic. Please see Anton's post above for details on getting the observed errors after applying Update 2.
-
- Novice
- Posts: 5
- Liked: 1 time
- Joined: May 07, 2015 6:27 pm
- Contact:
[MERGED] Problem with SQL Server B&R8 U2
Hi
since the update today to U2 from U1 of B&R8 we get some error with backups of server who have a SQL Server installed:
07.05.2015 20:42:31 :: Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command.
Failed to truncate transaction logs for SQL instances: MICROSOFT##SSEE. Possible reasons: lack of permissions, or transaction log corruption.
That message appear on all server with any art of SQL Server (Internal Database, SQL Express, SQL Standard 2005/2008/2008r2/2010/2012), i have double check the credentials but they are correct. We have restart the VEEAM Server but nothing help. Any idea how to fix that?
Veeam Version 8.0.0.2021
Server: 2008R2 (DELL R510)
VMWare: 5.5
Greetings
since the update today to U2 from U1 of B&R8 we get some error with backups of server who have a SQL Server installed:
07.05.2015 20:42:31 :: Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command.
Failed to truncate transaction logs for SQL instances: MICROSOFT##SSEE. Possible reasons: lack of permissions, or transaction log corruption.
That message appear on all server with any art of SQL Server (Internal Database, SQL Express, SQL Standard 2005/2008/2008r2/2010/2012), i have double check the credentials but they are correct. We have restart the VEEAM Server but nothing help. Any idea how to fix that?
Veeam Version 8.0.0.2021
Server: 2008R2 (DELL R510)
VMWare: 5.5
Greetings
-
- Enthusiast
- Posts: 78
- Liked: 9 times
- Joined: Mar 04, 2013 2:41 pm
- Contact:
[MERGED] Re: Unable to truncate transaction logs.
Hi,
in our case, we got the warning
"Failed to finalize guest processing. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate transaction logs for SQL instances: DATEV_DBENGINE. Possible reasons: lack of permissions, or transaction log corruption."
when backing up DATEV-VMs since updating to Patch 2. Before, everything was fine.
Someone else?
Regards
in our case, we got the warning
"Failed to finalize guest processing. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate transaction logs for SQL instances: DATEV_DBENGINE. Possible reasons: lack of permissions, or transaction log corruption."
when backing up DATEV-VMs since updating to Patch 2. Before, everything was fine.
Someone else?
Regards
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Dec 02, 2014 1:40 pm
- Full Name: Randy Reklaitis
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
We are getting the same error after installing Patch 2.
Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate transaction logs for SQL instances: EPOSERVER. Possible reasons: lack of permissions, or transaction log corruption.
Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate transaction logs for SQL instances: EPOSERVER. Possible reasons: lack of permissions, or transaction log corruption.
-
- Influencer
- Posts: 12
- Liked: 1 time
- Joined: Aug 18, 2014 8:54 pm
- Full Name: SanketB
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Verify these permissions, hope this help.
-
- Novice
- Posts: 5
- Liked: 1 time
- Joined: May 07, 2015 6:27 pm
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Hi
in the case of the error message for "MICROSOFT##SSEE" Error: setting the service to start type = auto and start the service,
That fix the error. You don't have to edit the settings of the Windows Internal Database (like permission, connection type ...).
For other MSSQL Database services / server see the reference on http://www.veeam.com/kb2027, it is enough to give user for the veeam backup "BACKUPOPERATOR" in the MSSQL security settings.
You can settings up the service settings of the internal database quick with cmd (Domain Admin rights required)
Maybe you can use a script that runs on all server automaticly
in the case of the error message for "MICROSOFT##SSEE" Error: setting the service to start type = auto and start the service,
That fix the error. You don't have to edit the settings of the Windows Internal Database (like permission, connection type ...).
For other MSSQL Database services / server see the reference on http://www.veeam.com/kb2027, it is enough to give user for the veeam backup "BACKUPOPERATOR" in the MSSQL security settings.
You can settings up the service settings of the internal database quick with cmd (Domain Admin rights required)
Code: Select all
sc \\<servername> config MICROSOFT##SSEE start=auto
sc \\<servername> start MICROSOFT##SSEE
-
- Service Provider
- Posts: 17
- Liked: 5 times
- Joined: Mar 30, 2015 2:51 pm
- Full Name: Constantin
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Hi Randy,
This particular message is logged when the recovery model is simple but "Truncate Logs" is checked.
At least this was the solution in my case for this message.
This particular message is logged when the recovery model is simple but "Truncate Logs" is checked.
At least this was the solution in my case for this message.
rreklaitis wrote:We are getting the same error after installing Patch 2.
Unable to truncate SQL server transaction logs. Details: Failed to process 'TruncateSQLLog' command. Failed to truncate transaction logs for SQL instances: EPOSERVER. Possible reasons: lack of permissions, or transaction log corruption.
-
- Veteran
- Posts: 361
- Liked: 109 times
- Joined: Dec 28, 2012 5:20 pm
- Full Name: Guido Meijers
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
We also have the lack of permissions error since this morning. We upgraded to patch 2 lask week, there were however around 6 or 7 successfull jobs.
Permissions are ok so i guess i will also need to open a ticket.
Permissions are ok so i guess i will also need to open a ticket.
-
- VP, Product Management
- Posts: 7081
- Liked: 1511 times
- Joined: May 04, 2011 8:36 am
- Full Name: Andreas Neufert
- Location: Germany
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Just an Idea...
SQL2012 rights are too low, to allow truncation.
Please test it with the following.
SQL Management Studio - SQL-Secuity - Logins - NT Authority\system - Server Roles - Enable "sysadmin"
SQL2012 rights are too low, to allow truncation.
Please test it with the following.
SQL Management Studio - SQL-Secuity - Logins - NT Authority\system - Server Roles - Enable "sysadmin"
-
- Veteran
- Posts: 361
- Liked: 109 times
- Joined: Dec 28, 2012 5:20 pm
- Full Name: Guido Meijers
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Will test this evening, thx. But as said was working flawlessy until Patch 2 came.
-
- Enthusiast
- Posts: 96
- Liked: 25 times
- Joined: Aug 16, 2013 5:44 pm
- Full Name: Matt B
Re: Truncating SQL transaction logs - SUDDENLY trouble
This solved our problem with the SQL truncation error and "lack of permissions".Andreas Neufert wrote:Just an Idea...
SQL2012 rights are too low, to allow truncation.
Please test it with the following.
SQL Management Studio - SQL-Secuity - Logins - NT Authority\system - Server Roles - Enable "sysadmin"
We use a service acct to run backups. I added the account to SQL logins, gave it the sysadmin role and the error disappeared on the very next backup.
-
- VP, Product Management
- Posts: 7081
- Liked: 1511 times
- Joined: May 04, 2011 8:36 am
- Full Name: Andreas Neufert
- Location: Germany
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
Thanks for the feedback.sbbots wrote: This solved our problem with the SQL truncation error and "lack of permissions".
We use a service acct to run backups. I added the account to SQL logins, gave it the sysadmin role and the error disappeared on the very next backup.
-
- Veteran
- Posts: 361
- Liked: 109 times
- Joined: Dec 28, 2012 5:20 pm
- Full Name: Guido Meijers
- Contact:
Re: Truncating SQL transaction logs - SUDDENLY trouble
We added NT Authority\system to sysadmin and the error also dissapeared for us. So something in Patch 2 "needs this".
Ps. we run SQL2014
Ps. we run SQL2014
Who is online
Users browsing this forum: Semrush [Bot] and 60 guests