Unable to install Docker Desktop 3.0.0 onto Windows Server 2019 DataCenter - windows

I have downloaded the latest release of Docker Desktop from the official source and I'm trying to install onto a new production server. The install seems to fail when creating the service, although when I check the Docker Desktop service is present however wont start (because Docker Desktop removes all installed files once install fails).
There is basically no information that I can see on why this is failing. As far as I am aware I have all pre-requisites installed. Below is the install log from the last failed attempt:
Started on: 2020/12/18 13:20:52.776
File: C:\Users\willc\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Users\willc\Desktop\Docker Desktop Installer.exe"
[13:20:52.792][ManifestAndExistingInstallationLoader] No install path specified, looking for default installation registry key
[13:20:52.792][Program] No installation found
[13:20:52.886][InstallWorkflow] Using package: res:DockerDesktop
[13:20:52.886][InstallWorkflow] Downloading
[13:21:02.214][InstallWorkflow] Extracting manifest
[13:21:04.132][InstallWorkflow] Manifest found: version=50684, displayVersion=3.0.0, channelUrl=https://desktop.docker.com/win/stable/appcast.xml
[13:21:04.133][InstallWorkflow] Checking prerequisites
[13:21:05.110][InstallWorkflow] Prompting for optional features
[13:21:11.067][InstallWorkflow] Unpacking artifacts
[13:23:27.010][InstallWorkflow] Deploying component CommunityInstaller.CreateGroupAction
[13:23:27.121][InstallWorkflow] Deploying component CommunityInstaller.AddToGroupAction
[13:23:27.130][InstallWorkflow] Deploying component CommunityInstaller.EnableFeaturesAction
[13:23:29.224][InstallWorkflow] Deploying component CommunityInstaller.ServiceAction
[13:23:29.228][InstallWorkflow-ServiceAction] Removing service
[13:23:29.234][InstallWorkflow-ServiceAction] Creating service
[13:23:59.288][InstallWorkflow] Installation failed
Exception type: System.Exception, Exception message: Component CommunityInstaller.ServiceAction failed: Failed to start service: The service did not respond to the start or control request in a timely fashion, StackTrace:
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__29.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.<DoProcessAsync>d__23.MoveNext()
[13:23:59.292][InstallWorkflow] Rollbacking component CommunityInstaller.EnableFeaturesAction
[13:23:59.294][InstallWorkflow] Rollbacking component CommunityInstaller.AddToGroupAction
[13:23:59.296][InstallWorkflow] Rollbacking component CommunityInstaller.CreateGroupAction
[13:23:59.298][InstallWorkflow] Rollbacking component CommunityInstaller.UnpackArtifactsStep
[13:23:59.307][FileSystem] Deleting C:\Program Files\Docker\Docker
[13:23:59.703][FileSystem] Deleted C:\Program Files\Docker\Docker successfully
[13:23:59.704][InstallWorkflow] Rollbacking component CommunityInstaller.ExtractManifestStep
[13:23:59.705][InstallWorkflow] Rollbacking component CommunityInstaller.DownloadStep
Has anyone experience anything similar?

So the answer is simple, Docker Desktop cannot be installed onto windows server, it took me a while to find this info on the official website.
Our remaining options were Docker Enterprise or Azure Docker.

Related

Unable to start RabbitMq Service after uninstalling and then Re-installing RabbitMQ

I uninstalled rabbitMq using this guide: https://support.bioconnect.com/hc/en-us/articles/115011178868-How-to-Uninstall-RabbitMQ
uninstalled RabbitMq and Erlang
ended empd.exe in task manager
deleted the directories for rabbitMQ and erlang
deleted HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ericsson from 'regedit'
removed the service from services
I also deleted the C:\Windows.erlang.cookie and C:\Users[username]/.erlang.cookie.
After I tried reinstalling using this other guide: https://cmatskas.com/getting-started-with-rabbitmq-on-windows/
installed Erlang
downloaded and installed rabbitMQ
Navigate to the sbin directory of the RabbitMQ Server installation directory. 'C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.3.4\sbin'
and ran 'rabbitmq-plugins.bat enable rabbitmq_management'
I navigated to http://localhost:15672/ and the site was unreachable. I opened up services to make sure that the rabbitMq service was on and it was not even created. I tried running the command 'rabbitmq-service install' as admin and got the following back
RabbitMQ service is already present - only updating service parameters
C:\Program Files\erl9.2\erts-9.2\bin\erlsrv: Warning, could not set correct interactive mode. RabbitMQ
Error: The handle is invalid.
C:\Program Files\erl9.2\erts-9.2\bin\erlsrv: Warning, could not set correct service description (comment) RabbitMQError: The handle is invalid.
I am wondering if i missed a step somewhere. Cant get rabbit to work.
I also ran into this problem recently.
These simple steps solved the issue for me:
Open Regedit.exe
Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
Remove that key
Now running rabbitmq-service.bat install is successful.
Try to remove the service and reinstall it using the following steps:
Open CMD as administrator and navigate to the sbin folder (Mine is C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin)
Remove RabbitMQ service by:
rabbitmq-service.bat remove
Reinstall it by:
rabbitmq-service.bat install
Start the service by:
rabbimq-service.bat start

Azure Pack Service Bus - Windows Fabric Missing

Recieve this error when configuring service bus before joining it to WAPAdmin Portal.
How can i install Windows Fabric which should contain FabricHostSrv manually. I cannot find a standalone installer for this.
[Error] [12/15/2017 10:05:47 AM]:
System.Management.Automation.CmdletInvocationException: Service
FabricHostSvc was not found on computer '.'. --->
System.InvalidOperationException: Service FabricHostSvc was not found
on computer '.'. --->
System.ComponentModel.Win32Exception: The
specified service does not exist as an installed service
--- End of inner exception stack trace ---
Run this command from PS window:
WebpiCmd.exe /offline /products:WindowsFabric /Path:c:\temp\OfflineCache
More info: https://rakibism.wordpress.com/2015/11/09/sharepoint-2013-workflow-manager-configuration-error-service-fabrichostsvc-was-not-found-on-computer/

System.PlatformNotSupported exception with service stack

I am trying to run a service stack application, it works fine on my dev machine when deployed on another box, I get System.PlatformNotSupported exception.
Stack trace below:
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Net.HttpListener..ctor()
at ServiceStack.Host.HttpListener.HttpListenerBase.Start(IEnumerable`1 urlBases, WaitCallback listenCallback)
at ServiceStack.Host.HttpListener.HttpListenerBase.Start(String urlBase)
at ExcaliburAppHost.Program.Main(String[] args)
I am trying to build a Restful app with self hosting (with no IIS support on the other box).
var listeningOn = args.Length == 0 ? "http://*:8090/" : args[0];
var appHost = new AppHost()
.Init()
.Start(listeningOn);
error occurs in AppHost().Start() method
If you have any unmanaged .dlls e.g. sqlite3.dll you may need to set the Platform Target of your project as x86.
You can also try running the Console App as Administrator / sudo in-case it's a permissions issue.
To whom facing with exception "System.PlatformNotSupportedException: ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems." - in my case I had to add "System.ServiceProcess.ServiceController" NuGet package to my .net 5 Worker Service project and issue is gone.
For me, I was building a .NET 6 worker service in a Docker container on a Linux host, building a Windows service to run on Windows Server 2016. My csproj file has the following properties set, but I was receiving the same PlatformNotSupportedException as the OP:
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Exe</OutputType>
<InvariantGlobalization>true</InvariantGlobalization>
<PublishSingleFile>false</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PublishReadyToRun>false</PublishReadyToRun>
I was able to resolve this by specifying the runtime option (-r win-x64) directly to the dotnet publish command in my Dockerfile.
Now the application builds from a Docker container running on a Linux host, but the resulting binaries run fine on the Windows Server 2016 platform.

SonarQube installation failing to start service

I'm installing sonarqube on Windows Server 2012.
I have followed the following steps:
Downloaded sonarqube4.4 and extracted to C:\Sonarqube
Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7
Installed Windows SDK 7 and .NET Framework 4
Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and Ihad to hot ctrl- Z to break
I then ran \windows-x86-64\InstallNTService.bat as an administrator and I am seeing the sonarQube services was launched, but failed to start.
Not sure what the problem is.
I believe you first ran \windows-x86-64\InstallNTService.bat successfully and then StartSonar.bat unsuccessfully (the inverse order of what you describe).
You probably have [this problem]: http://qualilogy.com/fr/wp-content/uploads/sites/2/2013/09/Sonar_ServiceLaunchError2.jpg
Windows could not start the Sonar service on Local Computer.
Error 1067: The process terminated unexpectedly.
In that case, the solution is to change the user/rights to launch the Sonar service: https://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/
Go to the Services window, find the Sonar service, and open the Properties windows to change the user it logs on as to one with sufficient permissions.
I was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\
The Log-File will show only
--> Wrapper Started as Service
Cleaning or creating >temp directory C:\Program Files (x86)\SonarQube\sonarqube\temp
<-- Wrapper Stopped
The SonarQube service was launched, but failed to start.
After a long search, I came up to this site http://zen-and-art-of-programming.blogspot.de/2013/03/installing-and-running-sonar-source.html.
Solution:
Navigate to C:\Windows\system32\config\systemprofile\AppData\Local\ and create the directory Temp
2: Set the user rights to full access
3: Run the StartNTService.bat

How to run jenkins slave on windows 2012 r2 x64?

We want to use jenkins to build some specific software on Windows 2012 R2 x64.
But when I trying to run it, master node fails whis this error:
Connecting to 192.168.1.27
Checking if Java exists
C:\Program Files\Java\jdk1.6.0_30\bin\java.exe -version returned 1.6.0.
Installing the Jenkins slave service
ERROR: Message not found for errorCode: 0xC00000AC
org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC00000AC
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:102)
at hudson.util.jna.DotNet.isInstalled(DotNet.java:77)
at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:292)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: jcifs.smb.SmbException: All pipe instances are busy.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:563)
at jcifs.smb.SmbTransport.send(SmbTransport.java:664)
at jcifs.smb.SmbSession.send(SmbSession.java:238)
at jcifs.smb.SmbTree.send(SmbTree.java:119)
at jcifs.smb.SmbFile.send(SmbFile.java:775)
at jcifs.smb.SmbFile.open0(SmbFile.java:989)
at jcifs.smb.SmbFile.open(SmbFile.java:1006)
at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
at jcifs.smb.TransactNamedPipeOutputStream.<init>(TransactNamedPipeOutputStream.java:32)
at jcifs.smb.SmbNamedPipe.getNamedPipeOutputStream(SmbNamedPipe.java:187)
at rpc.ncacn_np.RpcTransport.attach(RpcTransport.java:91)
at rpc.Stub.attach(Stub.java:104)
at rpc.Stub.call(Stub.java:109)
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:100)
and I don't know what is wrong.
Yes, I've read this carefully.
upd. ok. I removed server from domain. Now jenkins says:
Connecting to 192.168.1.27
Checking if Java exists
C:\Program Files\Java\jdk1.6.0_30\bin\java.exe -version returned 1.6.0.
Installing the Jenkins slave service
Copying jenkins-slave.exe
Copying slave.jar
Copying jenkins-slave.xml
Registering the service
Starting the service
Waiting for the service to become ready
ERROR: The service did not respond. Perhaps it failed to launch?
In EventViewer I see:
Service cannot be started. System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at winsw.WrapperService.StartProcess(Process process, String arguments, String executable)
at winsw.WrapperService.OnStart(String[] _)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
I had the same issue on on Windows 2012 R2 x64:
Installing the Jenkins slave service
ERROR: Message not found for errorCode: 0xC00000AC
org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC00000AC
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:102)
at hudson.util.jna.DotNet.isInstalled(DotNet.java:77)
at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:292)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: jcifs.smb.SmbException: All pipe instances are busy.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:563)
at jcifs.smb.SmbTransport.send(SmbTransport.java:664)
at jcifs.smb.SmbSession.send(SmbSession.java:238)
at jcifs.smb.SmbTree.send(SmbTree.java:119)
at jcifs.smb.SmbFile.send(SmbFile.java:775)
at jcifs.smb.SmbFile.open0(SmbFile.java:989)
at jcifs.smb.SmbFile.open(SmbFile.java:1006)
at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
at jcifs.smb.TransactNamedPipeOutputStream.<init>(TransactNamedPipeOutputStream.java:32)
at jcifs.smb.SmbNamedPipe.getNamedPipeOutputStream(SmbNamedPipe.java:187)
at rpc.ncacn_np.RpcTransport.attach(RpcTransport.java:91)
at rpc.Stub.attach(Stub.java:104)
at rpc.Stub.call(Stub.java:109)
at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:100)
... 7 more
and have found out, that jenkins slave to be run as a service requires to have .net 3.x installed (which is not by default on win2012 servers).
After having the 3.5 .net framework installed jenkins slave service got installed without issues (and the server remained in domain).
To not loose time in case you'd hit problems while installing 3.5 framework as I did, refer to this SO answer: Offline installer for .Net 3.5 SP1 not working (disabling the WSUS helped me to get the installation through)
I had this issue:
Service cannot be started. System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at winsw.WrapperService.StartProcess(Process process, String arguments, String executable)
at winsw.WrapperService.OnStart(String[] _)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
And the problem went away when i changed Path to java executable from :
C:\ProgramData\Oracle\Java\javapath\javaw
to
C:\ProgramData\Oracle\Java\javapath\java
I think 'w' is appended by JENKINS anyway.
I have a Windows 8 slave, which does work. Fair chance the Java path is incorrect, mine is set to C:\Program Files (x86)\Java\jre7\bin\java (yes, no .exe or anything, adjust just the Program (x86) Files part if you want to use x64 version) in Jenkins. I also have remote root set (to C:\jenkins) and I have an environment variable HOME set to C:\jenkins\ (yes, one is with \ and the other without), but that's only to make it easy to find the files after installation.
My slave works, appears online and then after a while (of idling mostly) will have connection issues. Disconnecting and reconnecting will then sometimes give the 'All pipe instances are busy' error, in that case I just have to do Launch slave agent a couple of times. Found your question when trying to solve that particular issue...
First thing, you can Go to the slave machine, Go to Jenkins -> Manage -> Manage Nodes and select the Slave and launch via java web start.
by doing this you will download a .jnlp file and launch it using java configured by you.
Make sure you have configured path to javaws.exe in system variable "PATH"(with version 1.6 or higher).
It will launch a window and and display as "Connected".
Now you can click on "File" and install as service.
This fails giving you an exception if the machine does not have .NET 3.x so make sure you have installed it and then try it again.
This works pretty cleanly without any issues.
Hope this helps.
For me this issue was resolved by uninstalling old java.
I encountered a similar issue, when trying to run the slave(agent) from master(jenkins), after making one configuration change as below it worked fine,
the below settings needs to added in the agent node->configure.
JVM option -Djsse.enableSNIExtension=false
At Jenkins->Agent node, for a windows server 2012 slave configuration

Resources