Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log

I need to restart the MS SQL server service every morning because my web client site can not connect.
However, when I start my services it works. I don't know what is causing the problem. I found this in my error log.

sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"  
for read only access failed with system error 5 (0x00000005): 
"Access is denied. ".  
The open file operation will fail with error -1032 (0xfffffbf8).

sqlservr (3000) 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).

Hope somebody can help me fix this.

like image 419
Jonathan Sameniego Avatar asked Sep 14 '14 07:09

Jonathan Sameniego


1 Answers

Your serviceaccount need access to the folder:

C:\Windows\System32\LogFiles\Sum

Go to the folder and add the account with read/write permissions.

http://support.microsoft.com/kb/2811566

like image 92
Bjørn Christopher Wang Avatar answered Nov 10 '22 12:11

Bjørn Christopher Wang