for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Installation fails: The Server service is not started.

Open markbaas opened this issue 7 years ago • 37 comments

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [-] I have uploaded Diagnostics Docker isn't even installed.

Expected behavior

Docker Edge 2.1.5.0 installs

Actual behavior

Crashes

Information

Problem appears only on edge since wsl2 backend was implemented. WSL2 Tech preview worked fine.

  • Windows Version: Windows Build 19023
  • Docker Desktop Version: 2.1.5.0

Steps to reproduce the behavior

Start the installer.

https://docs.docker.com/docker-for-windows/troubleshoot/ image

Log

The Server service is not started.

at System.DirectoryServices.DirectoryEntry.RefreshCache() at System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit() at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue) at System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext context, String identityValue) at CommunityInstaller.CreateGroupAction.b__33_0() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CommunityInstaller.InstallWorkflow.d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CommunityInstaller.InstallWorkflow.d__24.MoveNext()

markbaas avatar Nov 15 '19 14:11 markbaas

Same issue with Docker Desktop 2.2.0

Error Docker

HabibMAALEM avatar Jan 22 '20 08:01 HabibMAALEM

Thanks for reporting this, could you guys look in the Windows Event Viewer to see if any error is being reported by the DockerService?

image

mat007 avatar Jan 22 '20 10:01 mat007

not really sure what happen tho i try to install it also to my desktop im not running windows server. running in windows 10 build 18362 and hyper-v enabled. and still cannot install docker desktop. thank you!

jdanas avatar Jan 23 '20 01:01 jdanas

Any Update on this issue. It seems to be consistent for me.

devanshujoshi avatar Jan 27 '20 23:01 devanshujoshi

@devanshujoshi do you have anything showing up in the Windows Event Viewer?

mat007 avatar Jan 28 '20 08:01 mat007

how can i install this on my desktop instead? not running a windows server on my side. i want to use docker for windows in localhost development thank you

jdanas avatar Jan 28 '20 09:01 jdanas

Hello,

I got the same error here. In the event log I have the following error 10016 :

"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {D63B10C5-BB46-4990-A94F-E40B9D520160} and APPID {9CA88EE3-ACB7-47C8-AFC4-AB702511C276} to the user ************* SID (*************) from address LocalHost (using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool. " Below a link from Microsoft that explains the error https://support.microsoft.com/en-us/help/4022522/dcom-event-id-10016-is-logged-in-windows

nabilgasri avatar Jan 28 '20 10:01 nabilgasri

Exactly the same issue here :

Le service Serveur n’a pas démarré.

à System.DirectoryServices.DirectoryEntry.RefreshCache() à System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit() à System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() à System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() à System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) à System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue) à System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext context, String identityValue) à CommunityInstaller.CreateGroupAction.b__33_0() à System.Threading.Tasks.Task.Execute() --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée --- à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() à CommunityInstaller.InstallWorkflow.d__29.MoveNext() --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée --- à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) à CommunityInstaller.InstallWorkflow.d__24.MoveNext()

Did someone found a workaround ?

AnicetR avatar Jan 30 '20 14:01 AnicetR

@nabilgasri after reading the information at the link you provided I’m not sure this is the culprit:

These events can be safely ignored because they do not adversely affect functionality and are by design. This is the recommend action for these events.

Is there anything else in the Event Viewer?

mat007 avatar Jan 30 '20 14:01 mat007

@mat007 It was the only event int eventviewer The link says it can be ignored but I think that the Docker Installer is trying to access the User/Group information from the entreprise directory which is forbidden and this generates the 10016 error event.

nabilgasri avatar Jan 31 '20 09:01 nabilgasri

By the way the installation of the version 2.1.0.5 works fine https://download.docker.com/win/stable/40693/Docker%20Desktop%20Installer.exe

nabilgasri avatar Jan 31 '20 10:01 nabilgasri

I had the same issue, the problem was because the windows service "Server" was disabled. Enabling and starting it up fixed for me. image

vgmello avatar Jan 31 '20 10:01 vgmello

thanks @vgmello this helps installing the 2.2.0 version

nabilgasri avatar Jan 31 '20 10:01 nabilgasri

Nice catch @vgmello ! I’ll create an internal ticket to see how we can fix the service dependencies. Thanks!

mat007 avatar Jan 31 '20 12:01 mat007

Hi @vgmello ,

It may be elementary of me but where can i find this setting ?

SumanthShetty avatar Feb 06 '20 12:02 SumanthShetty

Hi @vgmello ,

It may be elementary of me but where can i find this setting ?

Press Windows + R, type services.msc, look for a service with a name of Server and try to start it. If it is disabled you will need to enable it first by going to the service properties and changing the startup type from disabled to Manual or Automatic

Detailed Instructions: https://computerstepbystep.com/server-service-windows-7.html (this very similar on Win10)

vgmello avatar Feb 06 '20 13:02 vgmello

Hi @vgmello , It may be elementary of me but where can i find this setting ?

Press Windows + R, type services.msc, look for a service with a name of Server and try to start it. If it is disabled you will need to enable it first by going to the service properties and changing the startup type from disabled to Manual or Automatic

Detailed Instructions: https://computerstepbystep.com/server-service-windows-7.html (this very similar on Win10)

Additional bonus question: Why this Server service only appears on the services.msc but not on the Task Manager service tab?

Wyulliam avatar Feb 13 '20 10:02 Wyulliam

With the release of Docker for Desktop 2.2.x the Server service (a.k.a. lanmanserver) shouldn't be needed anymore to my knowledge (see release notes). The installer should then not try to start that service, if it's not needed. Some companys prevent from using lanmanserver, so it would be of great help if it would be removed from the installer

mryserb avatar Feb 14 '20 12:02 mryserb

i am facing the same error? Any resolutions?

mknarula avatar Feb 27 '20 13:02 mknarula

@mknarula we have fixed this in our master branch, it will be available in the next Edge release in a few days (and much later in Stable). When I say fixed it’s actually that we’re now checking for the Server service in a prerequisite step in the installer and correctly report an error if we fail to start it.

A workaround has been explained in this issue: manually start the service if need before running the installer.

mat007 avatar Feb 27 '20 16:02 mat007