title | description | ms.reviewer | ms.date | ms.prod | ms.custom |
---|---|---|---|---|---|
Error 1069 when starting SQL Server Service |
Provides resolutions for the error 1069 when starting the SQL Server or the SQL Server Agent service. The resolutions for event ID 7041 and event ID 7038 are different. |
pijocoder |
12/15/2022 |
sql |
sap:Administration and Management |
Error 1069 occurs when you start SQL Server Service
You receive error 1069 when starting the SQL Server Service, which results in a logon failure. This article provides resolutions for error 1069 related events.
Original product version: SQL Server
Original KB number: 282254
Symptoms
When you try to restart Microsoft SQL Server or the SQL Server Agent, the service doesn’t start, and you receive the following error messages, depending on how you try to start the service:
-
By using the Services applet:
Windows could not start the SQL Server service on Local Computer.
Error 1069: The service did not start due to a logon failure. -
By using a command prompt:
System error 1069 has occurred.
The service did not start due to a logon failure.
You may find messages with event id 7041 or 7038 logged in the System Event Log.
Cause
This problem occurs because there’s an issue either with the service account itself or the information that is currently saved for the service account.
Resolution for event ID 7041
The entry with event ID 7041 in the System Event log may contain the following error message:
Logon failure: the user has not been granted the requested logon type at this computer.
The complete message entry in event log resembles the following one:
Log Name: System
Source: Service Control Manager
Date: <Datetime>
Event ID: 7041
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Server name>
Description:
The MSSQLSERVER service was unable to log on as NT ServiceMSSQLSERVER with the currently configured password due to the following error:
Logon failure: the user has not been granted the requested logon type at this computer.
Service: MSSQLSERVER
Domain and account: <AccountName>
This service account does not have the required user right "Log on as a service."
User Action
Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this.
If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.
If you have already assigned this user right to the service account, and the user right appears to be removed,
check with your domain administrator to find out if a Group Policy object associated with this node might be removing the right.
To fix this issue, check which user rights are assigned to the SQL Server service account.
-
Start the Local Security Policy app (Start -> Secpol.msc).
-
Expand Local Policy, then choose User Rights Assignment
-
Verify the required user rights are assigned to the service account following Windows Privileges and Rights. Manually assign any missing permissions.
-
Check if the service account was assigned any Deny* permissions. Remove any Deny* permissions from the SQL Service service account and then retest.
For example, if the service account was assigned Deny log on as a service
SeDenyServiceLogonRight
along with Log on as a serviceSeServiceLogonRight
, revoke theSeDenyServiceLogonRight
right for the logon and restart SQL Server.
Resolution for event ID 7038
In the log entries that are event ID 7038 related, you may find the following error messages:
- This user can’t sign in because this account is currently disabled.
- The user’s password must be changed before signing in.
- The user name or password is incorrect.
- The referenced account is currently locked out and may not be logged on to.
This user can’t sign in because this account is currently disabled
The complete message entry in event log resembles the following one:
Log Name: System
Source: Service Control Manager
Date: <Datetime>
Event ID: 7038
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Server name>
Description:
The MSSQLSERVER service was unable to log on as .sqlsrvlogin with the currently configured password due to the following error:
This user can't sign in because this account is currently disabled.
To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC).
To fix this issue, use one of the following methods based on your scenario:
-
If SQL Server Startup account is a Local User Account on the computer, open Computer Management (compmgmt.msc) and verify that the service account is disabled in Local Users & Groups. If it’s disabled, enable the account and restart the SQL Server Service.
-
If SQL Server Startup account is a Windows Domain Account, check whether the account is disabled in Active Directory Users and Computers. If it’s disabled, enable the account, and restart the SQL Server Service.
The user’s password must be changed before signing in
The complete message entry in event log resembles the following one:
Log Name: System
Source: Service Control Manager
Date: <Datetime>
Event ID: 7038
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Server name>
Description:
The MSSQLSERVER service was unable to log on as .sqlsrvlogin with the currently configured password due to the following error:
The user's password must be changed before signing in.
To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC).
To fix this issue, use one of the following methods based on your scenario:
-
If the SQL Server Startup account is a Local User Account on the computer:
- Open Computer Management (compmgmt.msc).
- Select Local Users and Groups, then select Users to locate the account.
- Double-click on the user account to open its Properties.
- Clear the User must change password at next logon property for SQL Server Startup Account and press OK.
- Restart the SQL Server Service.
-
If the SQL Server Startup account is a Windows Domain Account:
- Open Active Directory Users and Computers on a Domain Controller.
- Select Users under the correct domain.
- Double-click the domain account that’s used as a SQL Server service account to open its Properties.
- Go to the Account tab to check if User must change password at next logon is enabled.
- If the option is enabled, either clear this option or sign in interactively to a Windows client machine, and then set a new password.
- If you changed the password, update the new password for the SQL Server Service by using the tool SQL Server Configuration Manager.
The user name or password is incorrect
For an incorrect password issue, the complete message entry in event log resembles the following one:
Log Name: System
Source: Service Control Manager
Date: <Datetime>
Event ID: 7038
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Server name>
Description:
The MSSQLSERVER service was unable to log on as .sqlsrvlogin with the currently configured password due to the following error:
The user name or password is incorrect.
To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC).
To fix this issue, follow these steps:
Scenario 1: Incorrect password
The error message entry indicates that the current login name or password set is incorrect. To verify and solve the issue, follow these steps:
-
Use the
runas
option to test the service account credentials:-
Open a Windows Command Prompt.
-
Run the following command:
runas /user:<localmachine><SQLSerivceAccount> cmd
-
-
If the command succeeds, carefully type the same credentials in SQL Server Configuration Manager, Services, SQL Server service, and This account.
-
If the command fails and reports the same issue, you must reset the password for the Windows logon.
-
If the SQL Server Startup account is a Local User Account on the computer, open Computer Management (compmgmt.msc), and reset the password of the local user.
-
If the SQL Server Startup account is a Windows Domain Account, open Active Directory Users and Computers, and then update the password for the account under Users. After the credentials are updated, return to the SQL Server Configuration Manager, Services, SQL Server and enter the same credentials.
-
Restart the SQL Server service.
To type the correct password in the SQL Server Service account on the SQL Server host computer, follow the procedures from SCM Services — Change the Password of the Accounts Used.
Scenario 2: gMSA IsManagedAccount Flag is set improperly
If you’re using a group Managed Service Accounts (gMSA) account to run the SQL Server Service and the IsManagedAccount flag for the given service is set to false, you may receive a Service Control Manager event ID 7038 as soon as the cached secret is invalid.
To identify and resolve the issue, follow these steps:
-
Verify the account you’re using is a gMSA account. Proceed only after confirming gMSA.
- If the following command succeeds against the account, you’re using a gMSG account.
- If it fails with
Cannot find an object with identity: 'account'
, the service account isn’t a gMSA account.
Get-ADServiceAccount -Identity 'yourGmsaName' -Properties PasswordLastSet
For more information, see Check the gMSA account.
-
Run the following command in Command Prompt and check the status of IsManagedAccount. The desired outcome is true. If false, proceed further.
sc qmanagedaccount <YourSQLServiceName>
An example for a SQL Server named instance SQLPROD:
sc qmanagedaccount MSSQL$SQLPROD
-
Set the flag to true as is desired.
sc managedaccount <YourSQLServiceName> TRUE
An example for a SQL Server named instance SQLPROD:
sc managedaccount MSSQL$SQLPROD TRUE
-
Attempt to start the service again.
The referenced account is currently locked out and may not be logged on to
The complete message entry in event log resembles the following one:
Log Name: System
Source: Service Control Manager
Date: <Datetime>
Event ID: 7038
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <Server name>
Description:
The MSSQLSERVER service was unable to log on as .sqlsrvlogin with the currently configured password due to the following error:
The referenced account is currently locked out and may not be logged on to.
To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC).
To fix this issue, use one of the following methods based on your scenario:
-
If the SQL Server Startup account is a Local User Account on the computer:
- Open Computer Management (compmgmt.msc) and go to Local Users and Groups, then Users.
- Clear the Account is Locked Out checkbox for the SQL Server Startup Account under Local Users & Groups and press OK.
- Restart the SQL Server Service.
-
If the SQL Server Startup account is a Windows Domain Account:
- Open Active Directory Users and Computers on the Domain controller.
- Under Users, double-click on the SQL Server startup account and go to the Account tab.
- Check if the account is marked as locked.
- If the account is locked, check the Unlock account box and select OK, set a strong password.
- Then use same credentials for the SQL Server service account configuration in SQL Server Configuration Manager, Services, and SQL Server.
- Restart the SQL Server service.
An error message such as SQL error 1069: a service that did not start due to a logon failure is a common error that occurs when fail to start the service while restarting Microsoft SQL Server or SQL Server Agent.
Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.
Today we’ll take a look at the cause for this error and see how to fix it.
Reasons to occur SQL error 1069
Often, Windows customers report that they are experiencing an SQL error while restarting Microsoft SQL Server or SQL Server Agent?
The error looks like,
Error 1069: The service did not start due to a logon failure.
This error happens when the service fails to start with the following error message:
Do you ever think why the SQL server service doesn’t start?
Here s the reasons,
- This error arises due to the incorrect password of the SQL Server startup service account or the SQL Server Agent startup service account. Whenever change the password for the account, it is necessary to update for the SQL Server service or the SQL Server Agent service.
- whenever the SQL Server is set to an account type other than the Local System account.
So, let’s see how our Support Engineers fix this error.
Remedies for SQL error 1069
Now, we can see how to fix this error.
In order to fix the error, our Support Engineers set up the Microsoft SQL Server service account with the right password on the SQL Server host computer.
For example, let’s see how to correct the password in Microsoft Windows 2000 Server and Microsoft Windows XP:
1. Initially, we click Start > Settings > click Control Panel> double-click Administrative Tools > double-click Services.
2. Then, for a default instance of SQL Server, we double-click MSSQLServer > go to Log On tab.
tab.
3. Next, we double-click SQLAgent, and then click the Log On tab.
4. Finally, we enter the correct password in the Password and Confirm password textbox, and then click OK.
At last, we start the SQL Server Service and the SQL Server Agent.
[Need any further assistance in fixing SQL errors? – We’re available 24*7]
Conclusion
In short, this SQL error 1069 arises when SQL Server service fails to start while restarting Microsoft SQL Server or SQL Server Agent. Today, we saw the reasons and how our Support Engineers fix this error.
I installed SQL Server 2014 on this laptop. I installed it with defaults right out of the box for the Logons running the servers (NT ServiceMSSQL$MSSQL_2014 ). This worked fine for several days. Suddenly today I start getting this error
Windows could not start the SQL Server (MSSQL_2014) service on the Local Computer. Error 1069: The service did not start due to a logon failure.
This is very strange. I have never seen such an error, and I’ve been installing and working with SQL Server SS 7.0 in 1998.
Every thread I’ve seen says to open the service and retype in the password for the user running the service. However, the user was selected and installed by Installation process not me I was never asked to provide a password nor was I provided one.
Fine!! So I open computer management. and the only users I am permitted to see are XAdministrator and XGuest. Do not see any of the NT Service users at all.
I don’t know why this password would have changed nor why the machine is hiding the users from me, (I have developer writes which gives me most admin rights). So I can’t change the password and I can’t retype in the password because I don’t know it.
Does anyone have any ideas of how to get around this?
Addendum: I ran the start up from computer management’s SQL Server Configuration Manager’s SQL Server Services folder’s listing for this instance of SQL Server. It report «The request failed or the service did not respond in a timely manner.
Consult the event log or other application error logs for details. So I went to the System Error Log and found the following message.
The MSSQL$MSSQL_2014 service was unable to log on as NT ServiceMSSQL$MSSQL_2014 with the currently configured password due to the following error: Logon failure: the user has not been granted the requested logon type at this computer. Service: MSSQL$MSSQL_2014 Domain and account: NT ServiceMSSQL$MSSQL_2014 This service account does not have the required user right "Log on as a service." User Action Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is
assigned to the Cluster service account on all nodes in the cluster. If you have already assigned this user right to the service account,
and the user right appears to be removed, check with your domain administrator to find out if a Group
Policy object associated with this node might be removing the right.
I checked the local security policyLocal PoliciesUser Rights AssignmentLog on as a server listing.
It showed that there was no one in the group and I was not permitted to add or remove users from the group. I interpret the lack of users in the group as due to my lack of rights to see them (one of the rights not permitted developers but permitted
administrators perhaps). I see no where else to make these changes.
Edward R. Joell MCSD MCDBA
-
Edited by
Tuesday, September 13, 2016 8:39 PM
additional efforts
Error 1069: The SQL service did not start due to a logon failure. (Legacy KB ID CNC TS21931 )
calendar_today
Updated On:
Products
CA eHealth
Endpoint Protection
Issue/Introduction
When you restart Microsoft SQL Server or SQL Server Agent, the service may fail to start with the following error message:
Error 1069: The service did not start due to a logon failure.
Related Issues/Questions:
SQL Server startup failure: Error 1069: The service did not start due to a logon failure.
Problem Environment:
eHealth for Voice
Microsoft SQL Server Startup failure
(Legacy KB ID CNC TS21931 )
Environment
Release:
Component: EVEHCN
Cause
This problem occurs because the password for the SQL Server startup service account or the SQL Server Agent startup service account is not correct. This problem can occur when the password for the account is changed but the password information was not updated for the SQL Server service or the SQL Server Agent service.
Resolution
To solve this problem, type the correct password in the Microsoft SQL Server service account on the SQL Server host computer.
To correct the password follow these steps:
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click System and Security.
- This step does not apply for Microsoft Windows 2000 Server and Microsoft Windows XP
3. Double-click Administrative Tools, and then double-click Services.
4. Use one of the following steps based on your instance type:
-
For a default instance of SQL Server, double-click MSSQLServer, and then click the Log On tab.
-
For a named instance of SQL Server, double-click MSSQL$YourInstanceName, and then click the Log On tab. Replace YourInstanceName with the actual name of the SQL Server instance.
-
For a default instance of SQL Server Agent, double-click SQLAgent, and then click the Log On tab.
- For a named instance of SQL Server Agent, double-click SQLAgent$YourInstanceName, and then click the Log On tab. Replace YourInstanceName with the actual name of the SQL Server instance.
5. Type the correct password in the Password and Confirm password textbox, and then click OK.
6. Start up the SQL Server Service
7. Startup the SQL Server Agent
Feedback
thumb_up
Yes
thumb_down
No
An error message such as SQL error 1069: a service that did not start due to a logon failure is a common error that occurs when fail to start the service while restarting Microsoft SQL Server or SQL Server Agent.
Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.
Today we’ll take a look at the cause for this error and see how to fix it.
Reasons to occur SQL error 1069
Often, Windows customers report that they are experiencing an SQL error while restarting Microsoft SQL Server or SQL Server Agent?
The error looks like,
Error 1069: The service did not start due to a logon failure.
This error happens when the service fails to start with the following error message:
Do you ever think why the SQL server service doesn’t start?
Here s the reasons,
- This error arises due to the incorrect password of the SQL Server startup service account or the SQL Server Agent startup service account. Whenever change the password for the account, it is necessary to update for the SQL Server service or the SQL Server Agent service.
- whenever the SQL Server is set to an account type other than the Local System account.
So, let’s see how our Support Engineers fix this error.
Remedies for SQL error 1069
Now, we can see how to fix this error.
In order to fix the error, our Support Engineers set up the Microsoft SQL Server service account with the right password on the SQL Server host computer.
For example, let’s see how to correct the password in Microsoft Windows 2000 Server and Microsoft Windows XP:
1. Initially, we click Start > Settings > click Control Panel> double-click Administrative Tools > double-click Services.
2. Then, for a default instance of SQL Server, we double-click MSSQLServer > go to Log On tab.
tab.
3. Next, we double-click SQLAgent, and then click the Log On tab.
4. Finally, we enter the correct password in the Password and Confirm password textbox, and then click OK.
At last, we start the SQL Server Service and the SQL Server Agent.
[Need any further assistance in fixing SQL errors? – We’re available 24*7]
Conclusion
In short, this SQL error 1069 arises when SQL Server service fails to start while restarting Microsoft SQL Server or SQL Server Agent. Today, we saw the reasons and how our Support Engineers fix this error.
- Remove From My Forums
-
Question
-
Hello Dear All
Strange problem here
In one of our computer (Windows 10, domain user with local admin privileges) we have a software that requires sql express (2014) to run
it was working fine until some days ago, now the service is not running and if I try to start it says Error 1069
the user is «NT ServiceMSSQL$SQLEXPRESSASSALU» and password is unknown (long line o dots)
sombody on another thread suggested to remove the long line of dots, is this alright? or will I risk to lose db?
I also checked (read on another thread) that this can be possible because of a GPO: Computer Configuration->Windows Settings->Security Settings->Local Policies->User Rights Assignment -> Log on as a service it says in Explain tab that is Default
setting:nonecan somebody help?
- Remove From My Forums
-
Question
-
Hello Dear All
Strange problem here
In one of our computer (Windows 10, domain user with local admin privileges) we have a software that requires sql express (2014) to run
it was working fine until some days ago, now the service is not running and if I try to start it says Error 1069
the user is «NT ServiceMSSQL$SQLEXPRESSASSALU» and password is unknown (long line o dots)
sombody on another thread suggested to remove the long line of dots, is this alright? or will I risk to lose db?
I also checked (read on another thread) that this can be possible because of a GPO: Computer Configuration->Windows Settings->Security Settings->Local Policies->User Rights Assignment -> Log on as a service it says in Explain tab that is Default
setting:nonecan somebody help?
- Remove From My Forums
-
Question
-
Hi All,
We seem to be being plagued by the error below by our SQL Server agent. This happens almost everytime we restart the server that has been running for a day or two.
Our SQL Server Agent uses a none expiring domain credential. I understand that this problem only happens when the profile being used by the SQL Servr Agent has changed (password change). What puzzles me is that the login is A ok and no changes has been made to it’s password.
We always resolve this problem by changing the login used in the SQL Server Agent to local and after that, returning it back to it’s original domain login. Unfortunately, we cant always do this everytime something goes wrong.
Can anyone please help us shed a light on this? We’re using SQL2k with SP3a. Thanks!
Error:
An error 1069 — )The service did not start due to logon failure) occurred while performing this service operation on the SQLServerAgent service.
Regards,
Joseph
Answers
-
I was getting the same error since I had changed the password. I found a work around for it to connect to SQL server.
Go to Run—>services.msc—> MSSQLSERVER . On the «log on as» tab right click and check your login information. i suggest delete the password and retype it again. It works !!
- Proposed as answer by
Wednesday, February 1, 2012 8:03 PM
- Marked as answer by
Joseph Ollero
Wednesday, July 18, 2012 7:42 AM
- Proposed as answer by
-
- Edited by
John Guilbert
Monday, December 12, 2011 10:06 AM - Proposed as answer by
John Guilbert
Tuesday, January 10, 2012 9:12 AM - Marked as answer by
Joseph Ollero
Wednesday, July 18, 2012 7:43 AM
- Edited by
I installed SQL Server 2014 on this laptop. I installed it with defaults right out of the box for the Logons running the servers (NT ServiceMSSQL$MSSQL_2014 ). This worked fine for several days. Suddenly today I start getting this error
Windows could not start the SQL Server (MSSQL_2014) service on the Local Computer. Error 1069: The service did not start due to a logon failure.
This is very strange. I have never seen such an error, and I’ve been installing and working with SQL Server SS 7.0 in 1998.
Every thread I’ve seen says to open the service and retype in the password for the user running the service. However, the user was selected and installed by Installation process not me I was never asked to provide a password nor was I provided one.
Fine!! So I open computer management. and the only users I am permitted to see are XAdministrator and XGuest. Do not see any of the NT Service users at all.
I don’t know why this password would have changed nor why the machine is hiding the users from me, (I have developer writes which gives me most admin rights). So I can’t change the password and I can’t retype in the password because I don’t know it.
Does anyone have any ideas of how to get around this?
Addendum: I ran the start up from computer management’s SQL Server Configuration Manager’s SQL Server Services folder’s listing for this instance of SQL Server. It report «The request failed or the service did not respond in a timely manner.
Consult the event log or other application error logs for details. So I went to the System Error Log and found the following message.
The MSSQL$MSSQL_2014 service was unable to log on as NT ServiceMSSQL$MSSQL_2014 with the currently configured password due to the following error: Logon failure: the user has not been granted the requested logon type at this computer. Service: MSSQL$MSSQL_2014 Domain and account: NT ServiceMSSQL$MSSQL_2014 This service account does not have the required user right "Log on as a service." User Action Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is
assigned to the Cluster service account on all nodes in the cluster. If you have already assigned this user right to the service account,
and the user right appears to be removed, check with your domain administrator to find out if a Group
Policy object associated with this node might be removing the right.
I checked the local security policyLocal PoliciesUser Rights AssignmentLog on as a server listing.
It showed that there was no one in the group and I was not permitted to add or remove users from the group. I interpret the lack of users in the group as due to my lack of rights to see them (one of the rights not permitted developers but permitted
administrators perhaps). I see no where else to make these changes.
Edward R. Joell MCSD MCDBA
- Изменено
13 сентября 2016 г. 20:39
additional efforts
От неожиданного зависания до раздражающих уведомлений в Windows 10 есть такие маленькие особенности, но вы можете исправить их с некоторой помощью. Например, когда вы устанавливаете или запускаете служебное приложение в Windows, отображается сообщение об ошибке со следующим описанием —
Windows не может запустить службу на локальном компьютере.
Ошибка 1069: служба не запускалась из-за сбоя входа в систему.
Проблема обычно возникает, когда происходит одно из следующих событий.
- Пользователь вводит неверный пароль учетной записи при настройке вашей службы, или
- Пользователь изменил пароль учетной записи, используемой службой, но не смог обновить информацию в службе.
Чтобы исправить это, вам необходимо выполнить следующие действия.
- Оснастка «Службы».
- Щелкните правой кнопкой мыши службу, в которой возникла проблема.
- Выберите «Свойства».
- Перейдите на вкладку «Вход в систему».
- Проверьте, выбран ли переключатель Локальная системная учетная запись.
- Измените его на эту учетную запись.
- Введите правильный пароль.
- Нажмите ОК.
Давайте рассмотрим вышеперечисленные шаги более подробно!
Тип services.msc в поле поиска Windows 10 и выберите опцию Services, чтобы открыть Услуги оснастка.
Найдите имя службы, в которой возникла проблема. Когда найдете, щелкните его правой кнопкой мыши и выберите Характеристики вариант.
Затем под листом свойств службы переключитесь на Войти в систему таб.
Здесь проверьте, отмечен ли переключатель учетной записи локальной системы. Если да, вам нужно отменить выбор.
После этого проверьте ‘Этот аккаунт‘ переключатель.
Введите правильный пароль.
Когда закончите, нажмите кнопку ОК, чтобы сохранить изменения и перезагрузить компьютер.
В дальнейшем, когда вы пытаетесь запустить службу, вы не должны видеть ‘Служба не запустилась из-за сбоя входа в систему‘снова в Windows 10.
Надеюсь, поможет!
СОВЕТ. Более общие предложения по устранению неполадок служб Windows не запускают проблемы.
.
На чтение 5 мин. Просмотров 10.8k. Опубликовано 03.09.2019
Когда вы страдаете от того, что служба не запускается из-за ошибки входа в систему, особенно при перезапуске сервера Windows, проблема обычно связана с изменением пароля для профиля, используемого агентом SQL Server.
Однако иногда пароль может оставаться прежним, и вы уверены, что не вносили никаких изменений.
В дополнение к этому вы устали менять используемое имя входа и возвращать его обратно в исходное доменное имя, которое вы не можете делать каждый раз, когда что-то идет не так.
Выше может произойти из-за:
- Смена пароля для учетной записи, с которой служба настроена для входа
- Данные пароля повреждены (в реестре)
- Право на вход в систему в качестве службы было отменено для указанной учетной записи пользователя
Не нужно беспокоиться об этом, поскольку у нас есть только правильные решения для решения проблем, при которых служба не запускалась из-за ошибки входа в систему, ознакомьтесь с приведенными ниже решениями.
Содержание
- Как исправить сервис не запускался из-за ошибки входа в систему
- Решение 1. Настройте службу на использование встроенной системной учетной записи.
- Решение 2. Измените пароль для указанной учетной записи пользователя, чтобы он совпадал с текущим паролем для того же пользователя.
- Решение 3. Восстановите право пользователя на вход в систему в качестве службы
Как исправить сервис не запускался из-за ошибки входа в систему
- Настройте службу для использования встроенной системной учетной записи
- Измените пароль для указанной учетной записи пользователя, чтобы он соответствовал текущему паролю для того же пользователя.
- Восстановить право пользователя на вход в систему как сервис
Решение 1. Настройте службу на использование встроенной системной учетной записи.
Если служба не запустилась из-за ошибки входа в систему, настройте ее на запуск со встроенной системной учетной записью, выполнив следующие действия:
- Нажмите клавишу Windows + R, чтобы открыть командную строку с повышенными правами Выполнить .
- Введите services.msc и нажмите Enter.
- Найдите службу Идентификация приложения , щелкните ее правой кнопкой мыши и откройте Свойства .
- Откройте вкладку Войти .
- Нажмите Учетная запись локальной системы .
- Не устанавливайте флажок Разрешить взаимодействовать с рабочим столом .
- Нажмите Применить
- Перейдите на вкладку Общие .
- Нажмите Пуск , чтобы перезапустить службу.
- Закройте инструмент Services.
Примечание. . При попытке открыть свойства службы с помощью средства «Службы» на панели управления компьютер может перестать отвечать на запросы и получить сообщение об ошибке: Сервер RPC недоступен. .
Это может произойти, если служба RPC не запущена из-за сбоя входа в систему со службой или службы зависимостей, поскольку некоторым приходится ждать запуска своих служб зависимостей, прежде чем они сами запустятся.
- ТАКЖЕ ЧИТАЙТЕ: экран входа в систему Windows 10 медленный, завис, заморожен [FIX]
Решение 2. Измените пароль для указанной учетной записи пользователя, чтобы он совпадал с текущим паролем для того же пользователя.
Вот как настроить пароль для указанной учетной записи пользователя, чтобы он соответствовал текущему паролю для этого пользователя:
- Снова перейдите к Сервисам, следуя инструкциям предыдущего решения.
- В поле поиска введите Администрирование и нажмите на него
- Нажмите Услуги
- Щелкните правой кнопкой мыши по нужному сервису и выберите «Свойства».
- Нажмите вкладку Вход в систему
- Измените пароль и нажмите Применить .
- Перейдите на вкладку Общие .
- Нажмите Пуск , чтобы перезапустить службу.
- Нажмите ОК и закройте инструмент «Службы».
ТАКЖЕ ПРОЧИТАЙТЕ: лучшее программное обеспечение для восстановления паролей в Windows 7, которое сэкономит вам время
Решение 3. Восстановите право пользователя на вход в систему в качестве службы
Если право на вход в систему в качестве службы аннулировано для учетной записи пользователя, восстановите его на контроллере домена или рядовом сервере (автономно) в зависимости от вашей ситуации.
Как восстановить права пользователя на контроллере домена
Вот как это сделать, если пользователь находится в домене Active Directory:
- Нажмите правой кнопкой мыши Пуск .
- Нажмите Панель управления
- Введите Администрирование и выберите его
- Нажмите Пользователи Active Directory и Компьютеры .
- Щелкните правой кнопкой мыши организационную единицу, в которой предоставлено право пользователя на вход в систему в качестве службы (по умолчанию организационная единица контроллеров домена)
- Нажмите правой кнопкой мыши нужный контейнер и выберите Свойства .
- Перейдите на вкладку Групповая политика .
- Нажмите Политика контроллеров домена по умолчанию .
- Нажмите Изменить , чтобы запустить диспетчер групповой политики.
- Разверните Конфигурация компьютера .
- Разверните Настройки Windows .
- Разверните Настройки безопасности .
- Разверните Локальные политики .
- Нажмите Назначение прав пользователя .
- Нажмите правой кнопкой мыши Войти в систему как сервис на правой панели.
- Нажмите Добавить пользователя или группу .
- Введите имя, которое вы хотите добавить в политику, в поле Имена пользователей и групп .
- Нажмите OK .
- Выход из диспетчера групповой политики
- Закрыть свойства групповой политики,
- Выход из оснастки «Active Directory – пользователи и компьютеры» консоли управления (MMC)
Как восстановить права пользователя на рядовом сервере (автономно)
Вот как это сделать, если пользователь является участником автономного рядового сервера:
- Запустите оснастку MMC «Локальные параметры безопасности».
- Разверните Локальные политики.
- Нажмите Назначение прав пользователя .
- Нажмите правой кнопкой мыши Войти в систему как сервис на правой панели.
- Нажмите Добавить пользователя или группу .
- Введите имя, которое вы хотите добавить в политику, в поле Имена пользователей и групп .
- Нажмите OK .
- Закройте оснастку MMC «Локальные параметры безопасности».
Помогло ли какое-либо из приведенных выше решений исправить службу, не запущенную из-за ошибки входа в систему? Дайте нам знать ваш опыт в разделе комментариев ниже.
Примечание редактора . Этот пост был первоначально опубликован в декабре 2017 года и с тех пор был полностью переработан и обновлен для обеспечения свежести, точности и полноты.
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
1 |
|
23.10.2013, 04:58. Показов 54800. Ответов 20
Всем привет!! Оч прошу помогите разобраться.
__________________ 0 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
23.10.2013, 10:04 |
2 |
У вас имя машины «.»? 1 |
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
23.10.2013, 10:26 [ТС] |
3 |
У вас имя машины «.»? Спасибо 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
23.10.2013, 10:36 |
4 |
У вас имя машины «.»? . значит локальная машина. 1 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
23.10.2013, 10:38 |
5 |
Какой путь? 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
23.10.2013, 10:40 |
6 |
ТС надо в свойствах службы назначить учётную запись LOCAL_SYSTEM (либо отметить галочуой соответствующую учётную запись — от версии винды зависит), либо осознанно указать имя и пароль учётной записи, от которой должна работать служба SQLSERVER (SQLEXPRESS) 0 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
23.10.2013, 10:59 |
7 |
. значит локальная машина. В терминах MSSQL «.» озаначает локальный сервер. Насчет такого обозначения локальной учетной записи — в первый раз слышу. Более того, это не работает. Может есть пруфлинк?
ТС надо в свойствах службы назначить учётную запись LOCAL_SYSTEM А если ТСу требуется из сиквела обращаться к сетевым ресурсам? 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
23.10.2013, 11:06 |
8 |
При чём тут термины MSSQL, если речь идёт об авторизации заапуска службы. Вообще-то я прямо сейчас с этими вещами работаю и спорить не собираюсь. Пусть ТС попробует и напишет чем кончилось. 0 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
23.10.2013, 11:26 |
9 |
Вообще-то я прямо сейчас с этими вещами работаю и спорить не собираюсь. Ну тогда Вас наверное не затруднит привести воспроизводимый пример работы с учетками вида «.Имя»? 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
23.10.2013, 12:12 |
10 |
Воспроизводимый в каком виде? виртуалку сдампить? ) запись вида .Имя делается для того, чтобы отличить Принтскрин ошибки позволяет предполодить, что на момент установки на машине ТС была локальная учётка Admin, и в процессе настройки этот админ решил стартовать службу сервера от себя, а потом админскую учётку заблокировал либо удалил либо пароль сменил. 0 |
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
23.10.2013, 12:31 [ТС] |
11 |
Вот дополнительно скрины самой службы. Может что-топо может. 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
25.10.2013, 07:02 |
13 |
Я вроде уже говорил, что надо поменять ваторизацию запуска. 0 |
624 / 495 / 43 Регистрация: 05.07.2010 Сообщений: 1,589 |
|
25.10.2013, 07:04 |
14 |
В вашем случае надо положить шарик в дырочку слева от «встроенную учётную запись» и выбрать LOCAL_SYSTEM в вываливающемся списке, расположенном под указанной надписью. 0 |
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
25.10.2013, 07:22 [ТС] |
15 |
Я пробовал менять авторизацию, но пи запуске службы выдает сообщение «Не удалось запустить службу SQL Server (SQLEXPRESS) на Локальный компьютер. Дополнительные сведения содержатся в журнале системных событий. Если эта служба разработана не в Microsoft, обратитесь к разработчику службы и сообщите специфический для этой службы код ошибки 1814» Добавлено через 4 минуты 0 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
25.10.2013, 09:07 |
16 |
Покажите журнал самого сиквела. Он должен лежать примерно тут: C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGErrorlog 1 |
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
25.10.2013, 10:01 [ТС] |
17 |
Код 2013-10-25 12:09:39.29 Server Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86) Jul 9 2008 14:43:34 Copyright (c) 1988-2008 Microsoft Corporation Express Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3) 2013-10-25 12:09:39.37 Server (c) 2005 Microsoft Corporation. 2013-10-25 12:09:39.37 Server All rights reserved. 2013-10-25 12:09:39.37 Server Server process ID is 2516. 2013-10-25 12:09:39.37 Server Authentication mode is WINDOWS-ONLY. 2013-10-25 12:09:39.37 Server Logging SQL Server messages in file 'C:Program FilesMicrosoft SQL ServerMSSQL10.SQLEXPRESSMSSQLLogERRORLOG'. 2013-10-25 12:09:39.39 Server This instance of SQL Server last reported using a process ID of 1484 at 25.10.2013 10:48:34 (local) 25.10.2013 1:48:34 (UTC). This is an informational message only; no user action is required. 2013-10-25 12:09:39.39 Server Registry startup parameters: -d C:Program FilesMicrosoft SQL ServerMSSQL10.SQLEXPRESSMSSQLDATAmaster.mdf -e C:Program FilesMicrosoft SQL ServerMSSQL10.SQLEXPRESSMSSQLLogERRORLOG -l C:Program FilesMicrosoft SQL ServerMSSQL10.SQLEXPRESSMSSQLDATAmastlog.ldf 2013-10-25 12:09:39.49 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required. 2013-10-25 12:09:39.49 Server Detected 2 CPUs. This is an informational message; no user action is required. 2013-10-25 12:09:41.35 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required. 2013-10-25 12:09:42.98 Server Node configuration: node 0: CPU mask: 0x00000003 Active CPU mask: 0x00000003. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required. 2013-10-25 12:09:43.54 spid7s Starting up database 'master'. 2013-10-25 12:09:43.82 spid7s 1 transactions rolled forward in database 'master' (1). This is an informational message only. No user action is required. 2013-10-25 12:09:43.89 spid7s 0 transactions rolled back in database 'master' (1). This is an informational message only. No user action is required. 2013-10-25 12:09:43.89 spid7s Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required. 2013-10-25 12:09:44.53 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'SQLEXPRESS'. 2013-10-25 12:09:45.04 spid7s SQL Trace ID 1 was started by login "sa". 2013-10-25 12:09:45.12 spid7s Starting up database 'mssqlsystemresource'. 2013-10-25 12:09:45.14 spid7s The resource database build version is 10.00.1600. This is an informational message only. No user action is required. 2013-10-25 12:09:45.48 spid10s Starting up database 'model'. 2013-10-25 12:09:45.48 spid10s Error: 17204, Severity: 16, State: 1. 2013-10-25 12:09:45.48 spid10s FCB::Open failed: Could not open file e:sql10_main_tsqlmkmastrdatabasesobjfrei386model.mdf for file number 1. OS error: 3(Системе не удается найти указанный путь.). 2013-10-25 12:09:45.56 spid7s Server name is 'WWWMMSQLEXPRESS'. This is an informational message only. No user action is required. 2013-10-25 12:09:45.59 spid10s Error: 5120, Severity: 16, State: 101. 2013-10-25 12:09:45.59 spid10s Unable to open the physical file "e:sql10_main_tsqlmkmastrdatabasesobjfrei386model.mdf". Operating system error 3: "3(Системе не удается найти указанный путь.)". 2013-10-25 12:09:45.68 spid10s Error: 17207, Severity: 16, State: 1. 2013-10-25 12:09:45.68 spid10s FileMgr::StartLogFiles: Operating system error 2(Не удается найти указанный файл.) occurred while creating or opening file 'e:sql10_main_tsqlmkmastrdatabasesobjfrei386modellog.ldf'. Diagnose and correct the operating system error, and retry the operation. 2013-10-25 12:09:45.73 spid10s File activation failure. The physical file name "e:sql10_main_tsqlmkmastrdatabasesobjfrei386modellog.ldf" may be incorrect. 2013-10-25 12:09:45.73 spid7s Informational: No full-text supported languages found. 2013-10-25 12:09:45.75 spid10s Error: 945, Severity: 14, State: 2. 2013-10-25 12:09:45.75 spid10s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details. 2013-10-25 12:09:45.75 spid10s Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized. 2013-10-25 12:09:45.76 spid10s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required. 2013-10-25 12:09:45.76 spid7s Starting up database 'msdb'. Добавлено через 18 минут
‘e:sql10_main_tsqlmkmastrdatabasesobjfrei386 modellog.ldf’ В строке (например) «35» Прописан адрес на диске e: 0 |
3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
|
25.10.2013, 10:05 |
18 |
У вас сервер не может найти файлы системной БД model (model.mdf и modellog.ldf), которые должны быть в e:sql10_main_tsqlmkmastrdatabasesobjfrei386 Добавлено через 4 минуты 1 |
0 / 0 / 0 Регистрация: 19.10.2013 Сообщений: 26 |
|
25.10.2013, 10:16 [ТС] |
19 |
По инструкции с программой и по порядку выполнения действий, Но диск «е» ни где не указывал. Это где то было по умолчанию прописано. Средство проверки конфигурации ни чего не выявило: 0 |
invm 3317 / 2027 / 722 Регистрация: 02.06.2013 Сообщений: 4,972 |
||||||||
25.10.2013, 10:42 |
20 |
|||||||
Waler, чудес не бывает. Либо пути указаны при установке, либо была подменена БД master.
Для каждого неверно расположенного файла установите правильное раположение инструкцией
1 |