Не удалось запустить службу SQL Server на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки…:
Код ошибки 13
Решение:
При появлении данной ошибки необходимо зайти в Пуск → Microsoft SQL Server → Средства настройки → Диспетчер конфигурации SQL Server / SQL ServerConfiguration Manager → Конфигурация сети SQL Server → Протоколы для SQLEXPRESS и проверить, включены ли протоколы (все протоколы должны быть включены).
Код ошибки 1814
Вариант ошибки на английском:
Windows could not start the SQL Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code — 1814.
Причина: Ошибка возникает, когда по какой-то причине путь к файлам базы по умолчанию не соответствует действительному.
Решение:
Возможно в папке C:Program FilesMicrosoft SQL ServerMSSQL10_50.SQLEXPRESSMSSQLDATA нет необходимых файлов. Необходимо добавить с заменой файлы из папки C:Program FilesMicrosoft SQL ServerMSSQL10_50.SQLEXPRESSMSSQLTemplateData.
Код ошибки 3417
Решение:
Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.
Cкопировать данные из C:Program FilesMicrosoft SQL ServerMSSQLXXXMSSQLTemplate Data в C:Program FilesMicrosoft SQL ServerMSSQLXXXMSSQLDATA
Для 64-разрядных систем — C:Program Files (x86)Microsoft SQL ServerMSSQLXXXMSSQLTemplate Data в C:Program Files (x86)Microsoft SQL ServerMSSQLXXXMSSQLDATA
Если замена файлов не помогла, необходимо дать права на папку Microsoft SQL Server.
Код ошибки 17058
Решение:
Необходимо дать полные права на папки C:Program FilesMicrosoft SQL Server и C:Program Files (x86)Microsoft SQL Server. Если данное решение не поможет — в свойствах службы на вкладке Вход в систему поставьте флаг С системной учетной записью.
Код ошибки 17113
Решение:
Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.
Cкопировать данные из C:Program FilesMicrosoft SQL ServerMSSQLXXXMSSQLTemplate Data в C:Program FilesMicrosoft SQL ServerMSSQLXXXMSSQLDATA
- Remove From My Forums
-
Вопрос
-
Прооблема с запуском службы SQL Server 2008. Служба не запускается и в журнале ошибок выдается сообщение:
Источник: MSSQLSERVER
Категория: Сервер
ID: 17058initerrlog: не удалось открыть файл журнала ошибок «». Ошибка операционной системы = 3(Системе не удается найти указанный путь.). Может кто-нибудь помочь в решении проблемы?
Михаил
Ответы
-
Похоже, наилучее решение в этой ситуации, оставить сервер работать под системной учетной записью. Может я не прав?
Михаил
не совсем…
стартовать сервер под системной записью совсем нехорошо… и небезопасно.
созданную отдельную учетку надо добавить в группы
SQLServer2005MSFTEUser$ИМЯ_СЕРВЕРА$MSSQLSERVER
SQLServer2005MSSQLUser$ИМЯ_СЕРВЕРА$MSSQLSERVER
blog.wadmin.ru
-
Помечено в качестве ответа
17 ноября 2009 г. 9:18
-
Помечено в качестве ответа
- Remove From My Forums
-
Question
-
hi
I am intalling SQL 2008 standard with SP1 on a Windows Server 2003 R2 SP2.
I installed as «local service account» for MSSQLServer (SQL database engine) and SQL agent.
But I want to change to «service account» as [domainsvc_XXX] for MSSQLserver and SQL agent.
I add the [domainsvc_XXX] in local security policy — «Log as a service»
and also add in SSMS — Security — New Login (windows authentication.
When I started the MSSQLserver and SQL agent using the [domainsvc_XXX], I got an error 17058. Initerrlog: could not open error log file.» Operating system error=3 (The system cannot find the path specified).
I don’t know where else to look at..
Also, how do I find the cumulative service pack for SQL server 2008 standard?
thanks
Irene
Hello comunity
After running the setup of sql server 2008 on my HP server with OS Windows server 2008 R2 standard 64 bits,
the setup return errors failed on theses services:
-Database engine services
-Sql Server Replication
-Full text search
-Reporting Services
When i try to start MSSQLSERVER, i receive the following error :
event ID 17058
initerrlog: Could not open error log file ». Operating system error = 3(failed to retrieve text for this error. Reason: 15105).
Curiously, the installation on : C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQL
have only create theses folders : binn, install and upgrade
and also these files:
-sql_engine_core_inst_keyfile.dll
-sql_fulltext_keyfile.dll
Could someone give me some help , because is the first time that i have this problem and i don´t know how to solve them.
Many thanks and best regards
Luis Santos
luissantos
SSCertifiable
Points: 7391
Hello comunity
I solve this problem and for those person that have the same one would should install sql server 2008 not by the autorun option, but you must with right click select : Open and Run setup as administrator.
Also, if you open SSMS and you try to browse server name and nothing appears, you need just to write
the correct server name or instanceservername.
I hope this conclusion help other users with this kind of situation.
Best regards.
Luis Santos:w00t:
julian.hatwell
SSC Veteran
Points: 257
Hello folks — I have a similar problem with my box. This was working fine before the weekend.
The server is a VM, sharing a drive with a number of other VM’s. We had a major windows update pack applied on Saturday. 100’s of patches that had not been applied for a few months. This filled up the physical disc where the servers were running and they all shut down unexpectedly.
We freed up some disc space and restarted the OS, but SQL server services did not start up. Trying to restart them manually gives me this message in the even log:
A file activation error occurred. The physical file name ‘E:MSSQLMSSQL10_50.MSSQLSERVERMSSQLBinnmssqlsystemresource.ldf’ may be incorrect. Diagnose and correct additional errors, and retry the operation.
Trying to start SQL server from cmd: sqlservr -T3608 gives the following message multiple times:
Error: 17058, Severty: 16, State: 1.
initerrlog Could not open error log file ».
Operating system error = 3(failed to retrieve text for this error. Reason 15105).
I have checked and the file exists at: ‘E:MSSQLMSSQL10_50.MSSQLSERVERMSSQLBinnmssqlsystemresource.ldf’ so not sure what I can do about that.
Can anyone help?
julian.hatwell
SSC Veteran
Points: 257
If anyone should follow this up — I found a clue in my trusty Wrox Press SQL Server Admin book «The resource database is only written to during installation or applying a service pack.»
Given my issue happened right after a service pack was applied and we had an unexpected shutdown, I thought the best thing was to re-apply the service pack. This fixed the problem.
jpipia
SSC Enthusiast
Points: 172
I am getting the exact same error. It seems out of the blue though since I didn’t apply any service packs. The only thing I can think of that changed was a bunch of Windows updates a while ago.
The .ldf file is there. Anyone know how I can get it fixed?
Thanks
Judy McNeil
Bipsy
SSCrazy
Points: 2207
Your installation is not fully completed.
try repairing your installation or remove all sql components , reboot your machine and try to install it again.
jpipia
SSC Enthusiast
Points: 172
Thanks. I will try to repair with the CD. The thing is, the installation has been completed and working for over a year.
It is just a development instalation and no one is counting on it at the moment. I just get nervous when things seem to break for no reason. I like to know the reason.
michael_gm
SSC Enthusiast
Points: 106
this is a permission problem!… you must try access the log with the user is running sql server…. orrrr…..only for testing… try adding the user is running sqlserver as admin and you’ll notice that you may start the service….
Michael Guerra.
mxhxr
Mr or Mrs. 500
Points: 551
It’s a permissions problem.
To verify that’s the case in your scenario, give the user that you are running the SQL Server service under administrative rights on the SQL Server machine. Then try to start the service. If it succeeds, you can then start to chip away at the rights to an acceptable point. But try this prior to reinstalling SQL Server or any of the other drastic measures mentioned prior.
j.noruzi
SSC Enthusiast
Points: 115
Hello guys.
I had the same problem.
my problem occurred when i change start-up parameters for sql server 2008r2 service. i had a mistake when changed that parameters.
Mistake => i forgotten putting «;» (semicolon) between each parameter. i corrected this mistake so problem solved.
this is Correct Start-up Parameters :
-dC:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLDATAmaster.mdf;-eC:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG;-lC:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLDATAmastlog.ldf
er_thomas21
SSC Rookie
Points: 39
Dear All
As per the scenario above I also faced the same problem with one of my SQL server 2008 R2 edition. After troubleshooting and cross checking with another instance I found that there are two group accounts which need permission on the ERRORLOG file. i.e
1. SQLServerMSSQLUser$machinename$MSSQLSERVER
2. SQLServerSQLAgentUser$machinename$MSSQLSERVER
if there is some problem the account dont have appropriate permission on the file than you will face the SQL server Error 17058.
So to resolve this issue
MSSQLUSER should have full permission
SQLAgentUser should have read,write,read and execute permission on the file
Best of luck
Thomas(The SQL DBA)
edgar.barrios
SSC Journeyman
Points: 75
I got the same error several times. I decided to run the setup and a repair on my instance to see if that would help the issue. It didn’t. After several tries and changed to my services and log in credentials i went to the «source». Went and looked at my installation folder and found that for some reason one of my folders was missing permissions. I added my local admin local service and network service to it with full rights tried to run the service one more time and that fixed the issue.
It was a simple permissions issue. Hope this helps guys.
ps.- I notices updates where done a couple of nights before so im thinking that had something to do with the change on permissions.
ps2.- My Database and install files are on my VM Data Bank. hope this helps.
This was removed by the editor as SPAM
Grantwilson
Grasshopper
Points: 13
Grantwilson
Grasshopper
Points: 13
Hello guys,
I found the same error just yesterday. Ideally, I should have used NET START to start SQL service via command prompt. In future, I will avoid sqlservr.exe of course.
Permalink
Cannot retrieve contributors at this time
title | description | ms.date | author | ms.author | ms.reviewer |
---|---|---|---|---|---|
Event ID 17058 and SQL Server doesn’t start |
This article provides resolutions for the problem where SQL Server fails to start and event ID 17058 is logged in the Application event log. |
12/17/2021 |
HaiyingYu |
haiyingyu |
ramakoni |
Event ID 17058 and SQL Server doesn’t start
Applies to: SQL Server
Symptoms
If the Microsoft SQL Server service can’t find the path that’s configured to create error logs, the service doesn’t start, and you receive the following error message, depending on how you try to start the service:
-
By using the Services applet:
Windows could not start the SQL Server (MSSQLSERVER) service on Local Computer.
Error 1067: The process terminated unexpectedly. -
By using a command prompt:
The SQL Server (MSSQLSERVER) service is starting.
The SQL Server (MSSQLSERVER) service could not be started.
A service specific error occurred: 13.
More help is available by typing NET HELPMSG 3523.
Resolution
-
Check the Application log, and verify that you see an error message entry that resembles the following:
Log Name: Application Source: MSSQLSERVER Date: <Datetime> Event ID: 17058 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: <Server name> Description: initerrlog: Could not open error log file 'C:Program FilesMicrosoft SQL ServerMSSQL15.MSSQLSERVRMSSQLLogERRORLOG'. Operating system error = 3(The system cannot find the path specified.).
-
Verify the path that’s set for the ErrorLog file by using SQL Server Configuration Manager.
:::image type=»content» source=»media/event-id-17058-start-sql-server/verify-path.png» alt-text=»Screenshot of the Startup Parameters tab of the SQL Server (MSSQLSERVER) Properties dialog box.»:::
You can also verify the path in the following registry entry:
Subkey Data HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL ServerMSSQL15.MSSQLSERVERMSSQLServerParametersSQLArg1
-eC:Program FilesMicrosoft SQL ServerMSSQL15.MSSQLSERVRMSSQLLogERRORLOG -
Try to copy the path, and then manually verify in Windows Explorer or at a command prompt that you can access the target in the path. (Be aware of typos, special characters, and copy-and-paste issues.)
Here’s an incorrect command example that includes a typo:
C:>dir "C:Program FilesMicrosoft SQL ServerMSSQL15.MSSQLSERVRMSSQLLog"
The system cannot find the path specified.
Here’s a correct command:
C:>dir "C:Program FilesMicrosoft SQL ServerMSSQL15.MSSQLSERVERMSSQLLog"
Volume in drive C is Windows
Volume Serial Number is 40B5-7ED1Directory of C:Program FilesMicrosoft SQL ServerMSSQL15.MSSQLSERVERMSSQLLog
<Datetime> <DIR> .
<Datetime> <DIR> ..
<Datetime> 20,640 ERRORLOG
<Datetime> 14,082 ERRORLOG.1 -
Update the path to a valid folder in which the SQL Server startup account has permissions to create, read, write, and update files.
:::image type=»content» source=»media/event-id-17058-start-sql-server/update-path.png» alt-text=»Screenshot of the Startup Parameters tab which shows the folder path can be updated by using the Update button.»:::
-
Restart the SQL Server service.