Bobcares

How to fix Microsoft SQL error 1032

by | Jul 21, 2020

The SQL error 1032 is generally listed in the Event Viewer in the Application Log due to the use of a default account as a service account.

As a part of our Server Management Services, we help our Customers to fix SQL related errors regularly.

Let us today discuss the possible causes and fixes for this error.


 

What is SQL error 1032?

As we discussed earlier the 1032 SQL error triggers when we install Microsoft SQL Server or SQL Server Analysis Services. It happens when we use the default account as a service account for these applications. The services start fine but we see several errors listed in the Event Viewer in the Application Log that relates to Error 1032.

There are at least 3 events logged for Error 1032 from source ESENT with Event ID 455, 489, and 490. For instances of SQL Server (SQLServr.exe),

It logs the Event ID 489, 455, and 490 with the respective descriptions given below.

sqlservr (3472) An attempt to open the file "C:Windowssystem32LogFilesSumApi.log" for read only access failed with system error 5 (0x00000005): "Access is denied. ". The open file operation will fail with error -1032 (0xfffffbf8).Error 1032
sqlservr (3472) Error -1032 (0xfffffbf8) occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log.
sqlservr (1932) An attempt to open the file “C:\Windows\system32\LogFiles\Sum\Api.chk” for read / write access failed with system error 5 (0x00000005): “Access is denied. “. The open file operation will fail with error -1032 (0xfffffbf8).

The instances of SQL Server Analysis Services (Msmdsrv.exe), logs the error as:

msmdsrv (4680) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk" for read / write access failed with system error 5 (0x00000005): "Access is denied. ". The open file operation will fail with error -1032 (0xfffffbf8).
msmdsrv (4680) Error -1032 (0xfffffbf8) occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log.
The system is unable to read Api.chk and Api.log files in C:\Windows\system32\LogFiles\Sum folder. This is a known issue in SQL Server 2012.

 

Causes for SQL error 1032?

The most common reason for the SQL error 1032 is insufficient permissions for the service startup accounts for SQL Server and Analysis Services. It triggers the error messages that we saw earlier while they access the following folder for logging as a part of the Software Usage Metrics feature:

C:\Windows\System32\LogFiles\Sum

How to fix the SQL error 1032?

We can fix the 1032 error by providing read and write permission to the service accounts. This need to be provided for the accounts running SQL Server (sqlservr.exe) and Analysis Services (msmdsrv.exe) on the folder C: \Windows\System32\LogFiles\Sum.

We don’t generally provide full permission for these accounts. This folder is for the Software Usage Metrics (SUM) feature. SUM uses the User Access Logging Service in Windows Server 2012. We need to add the Network Service account to this folder with modify permissions.

If the service account is a Virtual Account “NT SERVICE\MSSQLSERVER”, here is the process:


1.Right-click the file or folder you want to set permissions.
2.Click Properties.
3.Click the Security tab.
4.Click Edit.
5.Click Add.
6.Type NT SERVICE\MSSQLSERVER in the object name box.
7.Click OK.
8.If you get a window to choose from multiple objects that match the name entered, choose MSSQLSERVER account.
9.Add permissions that are needed to the MSSQLSERVER account.

For named instances, the virtual account that needs the folder permissions depends on the named instance name. For example if the named instance is Test, add permissions to following virtual account:

"NT SERVICE\MSSQL$TEST"

[Need any further assistance in fixing SQL errors? – We’re available 24*7]
 

Conclusion

In short, the SQL error 1032 triggers due to insufficient permission of the service accounts during the installation of  Microsoft SQL Server or SQL Server Analysis Services. Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF