Службы компонентов database engine ошибка

Столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новом сервере Windows Server 2012 R2. Установка SQL Server прерывается почти в самом конце с ошибкой «Не найден дескриптор запуска компонента Database Engine» (Could not find the Database Engine startup handle).

ошибка Could not find the Database Engine startup handle при установке SQL Server 2014

В логе установки Summary.txt при этом присутствует ошибка:

Feature: Database Engine Services

Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.

Данная ошибка установки MS SQL Server связана с тем, что используются стандартные настройки установки, при котором служба SQL Server запускается под непривилегированной учетной записью NT ServiceMSSQL$V2014. У данной учетной записи может быть недостаточно полномочий для запуска службы SQL Server, поэтому запустить службу невозможно, и установщик завершается с ошибкой «Could not find the Database Engine startup handle». Также эта ошибка может указывать на то, что ранее на компьютере уже пытались установить SQL Server и не очистили файлы и службы, оставшиеся от предыдущей установки.

Чтобы исправить ошибку установки SQL Server:

  1. Корректно деинсталлируйте все программы, связанные с SQL Server через Панель управления и перезагрузите сервер (проверьте, что не осталось файлов и папок в каталоге C:Program FilesMicrosoft SQL ServerMSSQL12.xxx);
  2. Запустите чистую установку из дистрибутива SQL Server. На вкладке «Server Configuration» убедитесь, что служба SQL Server Database Engine запускается под учетной записью NT ServiceMSSQLSERVER; учетная запись NT ServiceMSSQLSERVER для запуска службы SQL Server Database Engine
  3. Измените эту учетную запись на NT AUTHORITYSYSTEM; запуск установки MSSQLSERVER под NT AUTHORITYSYSTEM
  4. Продолжите установку SQL Server. Ошибка больше не должна появляться.

После окончания установки настоятельно рекомендуем изменить учетную запись, под которой запускается служба SQL Server Database Engine на непривилегированную учетную запись. Эта учетная запись не обязательно должна обладать правами локального администратора сервера (вполне достаточно полномочий внутри SQL Server). Можно использовать аккаунты с правами sysadmin — NT ServiceMSSQLSERVICE или NT ServiceSQLSERVERAGENT. Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите SQL Server Configuration Manager и перейдите в раздел SQL Server Services;
  2. Щелкните по SQL Server (MSSQLSERVER), нажмите кнопку Browse и в поле This account укажите учетную запись, под которой нужно запускать службу или используйте управляемую учетную запись — gMSA (Group Managed Service Accounts). Укажите пароль пользователя и сохраните изменения; измените учетную запись для запуска службы SQL Server (MSSQLSERVER),
  3. Перезапустите службы SQL Server.

Этот способ поможет вам исправить ошибку «Не найден дескриптор запуска компонента Database Engine» при установке любых версий SQL Server (2016, 2014, 2012 или 2008).


Table of Contents

  • Introduction
  • Problem Definition
  • Cause
  • Solution
    • Uninstall
    • Fresh install
  • Looking at SQL Server Errorlog
  • Forum threads related to this issue
  • Suggested Readings
  • See Also

 


Introduction

This article is about how to proceed when you get error message ‘Could not find database engine startup handle ‘ while installing SQL Server 2008 R2/2012 or 2014.

↑ Back to top


Problem Definition

 If you are an active member of
SQL Server Setup and Upgrade forum you must have noticed some users creating a thread with error messages of  ‘Could not find database engine startup handle ‘
while installing SQL Server . This article tries to provide a simple solution to this problem, that many users face during installation of SQL Server 2008 R2, SQL Server 2012 and SQL Server 2014 as well.

Let’s get started. For resources on installing SQL Server 2008/R2/2012/2014; there are lot of good articles which you find in Suggested Readings section .

Its common belief that installation of SQL Server is very easy,  just do *Next, Next * and installation would be complete.

It is correct, it’s simple but internally what all operations go a general user is not aware about it and when he faces issue he feels that SQL Server product is not good ( this is my forum experience where many of Original Poster (OP) get frustrated with
SQL Server installation error). It’s recommend to read below Microsoft articles before proceeding with installation of SQL Server

  1.  Hardware and Software requirement for installing SQL Server
  2.  Install SQL Server from installation wizard
  3.  How to use SQL Server in win 8 and Windows Server environment

Problem is when a user tries to install SQL Server 2012 or 2014 or 2008 R2 during installation error is flashed which says

Could not find database engine startup handle and some Hex error like ‘0x851a0019’ error could also be ‘Wait on the Database Engine recovery handle failed’.

↑ Back to top


Cause

Following can be the reason behind the error message.

  1. The account which user selected on Server Configuration page window ( during installation)  is somehow not able to bring SQL Server database engine services online. Either is lacks privilege or it is corrupted. During installation of database engine services
    SQL Server tries to bring online database services as a internal process but due to startup account either corrupt or not having appropriate privileges it fails to do so and ultimately installation fails.
  2. Other reason is when installation fails first time due to some reason and user uninstall failed installation from add remove program, the un-installation leaves account in broken state so any further attempt to install flashes this error message.
  3. The reason can be also that SQL Server installation was successful in installing SQL Server and its services but due to some other limitation in system or other system related errors SQL Server is not able to come online. The same has been discussed in
    section ‘Looking at SQL Server errorlog’ 

↑ Back to top


Solution

A simple solution to above problem is below.

Uninstall

Uninstall SQL Server completely from add remove program. Make sure no previous failed installation fragments are present on your system. Please use this
link for uninstalling existing instance of SQL Server. If you have SQL Server 2005
use this link.

Below Steps should ONLY be followed if removing SQL Server is giving error and if you have used all means to remove SQL Server and you have failed. If you have doubts about the approach please DONT follow it.

If you are unable to uninstall SQL Server completely because you deleted SQL Server files and un-installation is giving error please follow below method. This method is tested and suggested on

this thread and 
Forum.

Below Solution (about removing reg keys) will work correctly for SQL Server having Just one instance.
If you have multiple instances and you have messed up SQL Server installation please contact Microsoft Support personal to get better guidance on removal of SQL Server. Please DONT use this method if you are new to SQL Server take help of experienced
DBA to locate proper registry keys and remove them if you are not confident at all it would be better calling Microsoft Support.

Note: Removing necessary registry entries might cause SQL Server instance to crash so backup registry before doing changes.

  • 1. Uninstall the existing SQL Server  and all the components from the add remove program.
  • 2.
    Backup the registry.
  • 3. Delete the following keys using regedit:
    • —HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL Server
    • —HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServer
  • 4. Go to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall and delete all the sub-keys referencing SQL Server.
  • 5. Go to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices and delete all the keys referencing SQL Server.
  • 6. Rename all the SQL Server folders in the computer.
  • 7. Reboot the machine.

Fresh install

2. Start a fresh installation. Locate Setup.exe file in SQL Server installable. It would be something like below

Always Right click on Setup file and select Run As Administrator to launch the setup.

After launching the setup and providing necessary details you would reach to Server Configuration page as below. When you reach this page please select startup account for Database Engine services as NT AuthoritySYSTEM which is also called as Local System
account.

Next you need to proceed as normally you do for installation.You will see this will solve the issue.

After installation completes please change Service Account from NT AUTHORITYSYSTEM to a low privileged domain account. Please refer to below Microsoft link about how to configure various accounts for SQL Server and what minimum rights to provide

  • Configure Windows Service Account and Permissions

To get information about Local System account please refer to below link

  • Local System Account

Looking at SQL Server Errorlog

Even after following above method if you still get the error this means that problem is not with SQL Server installation something different is blocking SQL Server installation. The important point to note here with such error is you will see SQL Server
installed but the services are not online( there might be few exception). Please check SQL Server configuration manager and Services.msc to check whether SQL Server services are present or not. If they are present but in stopped state you must look at

log files present at location

Drive:Program FilesMicrosoft SQL ServerMSSQL.nMSSQLLOGERRORLOG and
ERRORLOG.n files.

Where Drive is system drive on which you installed SQL Server. It can be system drive C or any user drive (D,E,F…) . MSSQLn here means version number of SQL Server
n=10 for SQL Server 2008/2008 R2
n= 11 for SQL Server 20012
n=12 for SQL Server 2014.
One such thread with similar issue
is this , The problem was not the SQL Server, services were installed but SQL Server cannot start due to error

Cannot
use file ‘C:Program FilesMicrosoft SQL ServerMSSQL11.MSSQLSERVERMSSQLDB_NAMEmaster.mdf’ because it was originally formatted
with sector size 4096
and is now on a volume
with sector size

Now above error is not related to SQL Server but related to disk drive formatting on which SQL Server master data file resides. Error is beyond the scope of this article hence would not be discussed.

↑ Back to top


Forum threads related to this issue

This article is an outcome of my answer provided to below forum threads which faced issue ‘Could not find Database engine startup handle’. Please have a look

  • Could not find database engine startup handle Thread 1
  • Could Not find database engine startup handle thread 2
  • Database engine startup handle issue
  • Similar Thread  

If you still cannot find solution to your problem please post your question on

SQL Server Setup and Upgrade forum for more assistance. 

↑ Back to top


Suggested Readings

  • How to Identify SQL Server Setup issue using setup log files
  • How to install SQL Server 2014 
  • How To Install SQL Server On Windows 8
  • How to Install SQL
    Server 2012
  • How to find location of setup log files generated after SQL Server Installation
  • Installing SQL Server 2012 with SP1 and Product update in One Go  

See Also

  • SQL Server General & Database Engine Resources on the TechNet Wiki
  • List of articles by Shanky
  • SQL Server 2014 Portal

I can’t install ms sql server 2014 express. At the and get this. Please help me to fix a problem.
enter image description here

Error details: § Error installing SQL Server Database Engine Services Instance Features Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes. Error code: 0x851A001A

 Correia7's user avatar

Correia7

3643 silver badges10 bronze badges

asked Apr 30, 2016 at 15:11

Maria's user avatar

4

Try this:

  1. In the Services.msc console, change the account of the «SQL Server» service to Local System account (in the service properties). Take note of the account name before changing it, you need it at step #3.

  2. Start the service. It should be able to start at this point.

  3. Using the SQL Configuration Manager (you won’t be able to do it using Services.msc), change the account back to NT ServiceMSSQL$

answered Apr 30, 2016 at 20:36

Adam C's user avatar

Adam CAdam C

951 silver badge10 bronze badges

Здравствуйте. У меня такая же проблема. На windosq server 20122 r2 ставлю ms sql 2014 express. Инсталяция заканчивается с ошибками.
Вот сводный журнал
Overall summary:
Final result: Ошибка: дополнительные сведения см. ниже
Exit code (Decimal): -2061893606
Start time: 2016-11-07 09:21:28
End time: 2016-11-07 09:56:15
Requested action: Install

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for RS: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for SQLEngine: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for FullText: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Next step for Replication: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.

Machine Properties:
Machine name: SERVERJKX
Machine processor count: 4
OS version: Windows Server 2012
OS service pack:
OS region: Россия
OS language: русский (Россия)
OS architecture: x64
Process architecture: 64-разрядная версия
OS clustered: Нет

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered Configured

Package properties:
Description: Microsoft SQL Server 2014
ProductName: SQL Server 2014
Type: RTM
Version: 12
SPLevel: 0
Installation location: E:InstallSQL ExpressSQLEXPRADV_x64_RUSx64setup
Installation edition: Express

Product Update Status:
Не обнаружено.

Параметры пользовательского ввода:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: true
AGTSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: <не заполнено>
ASSVCPASSWORD: <не заполнено>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <не заполнено>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: <не заполнено>
CLTRESULTDIR: <не заполнено>
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT: <не заполнено>
CLTSVCPASSWORD: <не заполнено>
CLTWORKINGDIR: <не заполнено>
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE:
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT: <не заполнено>
CTLRSVCPASSWORD: <не заполнено>
CTLRUSERS: <не заполнено>
ENABLERANU: true
ENU: false
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, RS, CONN, BC, SDK, BOL, SSMS, ADV_SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <не заполнено>
FTSVCACCOUNT: NT ServiceMSSQLFDLauncher
FTSVCPASSWORD: <не заполнено>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program Files (x86)Microsoft SQL Server
INSTALLSQLDATADIR: <не заполнено>
INSTANCEDIR: C:Program FilesMicrosoft SQL Server
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITYNetwork Service
ISSVCPASSWORD: <не заполнено>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <не заполнено>
MATRIXNAME: <не заполнено>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT: NT ServiceReportServer
RSSVCPASSWORD: <не заполнено>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: E:BackUpSQL
SQLCOLLATION: Cyrillic_General_CI_AS
SQLSVCACCOUNT: NT ServiceMSSQLSERVER
SQLSVCPASSWORD: <не заполнено>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: LEPELJKX1prog
SQLTEMPDBDIR: <не заполнено>
SQLTEMPDBLOGDIR: <не заполнено>
SQLUSERDBDIR: D:BasesSQL
SQLUSERDBLOGDIR: <не заполнено>
SQMREPORTING: false
TCPENABLED: 0
UIMODE: AutoAdvance
UpdateEnabled: true
UpdateSource: MU
USEMICROSOFTUPDATE: false
X86: false

Configuration file: C:Program FilesMicrosoft SQL Server120Setup BootstrapLog20161107_092126ConfigurationFile.ini

Detailed results:
Feature: Средства управления — полный набор
Status: Завершено

Feature: Средства связи клиентских средств
Status: Завершено

Feature: Пакет SDK клиентских средств
Status: Завершено

Feature: Обратная совместимость клиентских средств
Status: Завершено

Feature: Средства управления — основные
Status: Завершено

Feature: Службы Reporting Services в собственном режиме
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Службы компонента Database Engine
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Произошла ошибка во время процесса установки компонента.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Полнотекстовый и семантический поиск
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Репликация SQL Server
Status: Ошибка. Дополнительные сведения см. в журнале.
Reason for failure: Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
Next Step: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
Component name: Экземпляры служб компонента SQL Server Database Engine
Component error code: 0x851A001A
Error description: Ошибка при ожидании дескриптора восстановления компонента Database Engine. Возможные причины см. в журнале ошибок SQL Server.
Error help link: http://go.microsoft.com/fwlink… 01306%4026

Feature: Браузер SQL
Status: Завершено

Feature: Компоненты документации
Status: Завершено

Feature: Модуль записи SQL
Status: Завершено

Feature: Файлы поддержки программы установки
Status: Завершено

Уже удаляла и ставила по-новому несколько раз с перезагрузкой сервера. Помогите пожалуйста.

Системное администрирование

1
Записи

1
Пользователи

0
Likes

5,633
Просмотры

10-150 Okolokompa Форум

(@dom)

Honorable Member

Присоединился: 4 года назад

Записи: 200

Создатель темы 03/03/2020 5:46 дп  

Я столкнулся с интересной ошибкой при установке MS SQL Server 2014 на новую виртуальную машину под управлением Windows Server 2012 R2. Установка SQL Server была прервана почти в конце с ошибкой « Не удалось найти дескриптор запуска компонента Database Engine ». 

В журнале установки SQL произошла следующая ошибка (файл summary.txt):

Особенность: Услуги СУБД
Статус: Ошибка: подробности см. В журналах.
Причина сбоя: во время процесса установки функции произошла ошибка.
Следующий шаг: используйте следующую информацию для устранения ошибки, удалите эту функцию, а затем снова запустите процесс установки.
Имя компонента: функции экземпляра служб СУБД SQL Server
Код ошибки компонента: 0x851A0019
Описание ошибки: не удалось найти дескриптор запуска компонента Database Engine.

Эта ошибка установки MS SQL Server связана со стандартными параметрами установки, когда SQL Server запускается под непривилегированной учетной записью NT Service MSSQL $ V2014 . Эта учетная запись может не иметь права на запуск службы SQL Server, поэтому она не может быть запущена, и установщик возвращает ошибку «Не удалось найти дескриптор запуска компонента Database Engine». Кроме того, эта ошибка может указывать на то, что кто-то уже пытался установить SQL Server на этот компьютер, а файлы или службы, оставшиеся после установки, не были удалены.

Чтобы исправить ошибку установки SQL Server:

  • Правильно удалите все программы, связанные с SQL Server, из панели управления и перезапустите сервер (убедитесь, что в папке C: Program Files Microsoft SQL Server MSSQL12.xxx нет файлов или папок).
  • Запустите установку из дистрибутива SQL Server с нуля. На вкладке Конфигурация сервера убедитесь, что служба ядра СУБД SQL Server запущена с учетной записью NT Service MSSQLSERVER;
  • Измените эту учетную запись на NT AUTHORITY SYSTEM;
  • Продолжите установку SQL Server. Ошибка не должна появиться снова.

После завершения установки мы настоятельно рекомендуем изменить учетную запись, под которой запускается компонент SQL Server Database Engine, на непривилегированную учетную запись.

Вам не нужно предоставлять этой учетной записи права локального администратора (достаточно предоставить необходимые привилегии в настройках безопасности SQL Server).

Вы можете использовать учетные записи с привилегиями системного администратора: NT Service MSSQLSERVICE или NT Service SQLSERVERAGENT.

Чтобы изменить учетную запись, под которой работает SQL Server:

  1. Запустите диспетчер конфигурации SQL Server и перейдите к службам SQL Server;
  2. Нажмите SQL Server (MSSQLSERVER), затем нажмите кнопку «Обзор» и в поле «Эта учетная запись» укажите учетную запись, под которой должна быть запущена служба, или используйте gMSA (учетная запись группы управляемых служб). Введите пароль пользователя и сохраните изменения;
  3. Перезапустите службы SQL Server.

Этот метод поможет вам исправить ошибку «Не удалось найти дескриптор запуска компонента Database Engine» во время установки любых версий SQL Server (2016, 2014, 2012 или 2008 r2).

Понравилась статья? Поделить с друзьями:
  • Служба защитник windows ошибка 577
  • Служба времени windows ошибка 1290
  • Служба времени windows 7 ошибка 1079
  • Служба виндовс аудио ошибка 1079
  • Служба ведения журнала событий обнаружила ошибку