Docker Desktop Installation failed 4.7.0 (Manifest extraction failed: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe) - docker

Docker Desktop 4.7.0 installation fails instantly, log file below.
If I try to download an older version <4.5, then the download will start but after bootup the same error comes to light. My guess is that something is wrong with the System.Runtime.CompilerServices.Unsafe assembly file.
Any ideas what might actually be causing this and what are possible fixes?
Log file:
"Version: 4.7.0 (77141)
Sha1:
Started on: 2022/04/10 15:38:12.555
Resources: C:\Users\Me\Downloads\resources
OS: Windows 10 Home
Edition: Core
Id: 2009
Build: 19044
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\ProgramData\DockerDesktop\install-log-admin.txt
CommandLine: "C:\Users\Kaur\Downloads\Docker Desktop Installer4.7ERROR.exe"
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[2022-04-10T15:38:12.821384600Z][ManifestAndExistingInstallationLoader][Info ] No install path specified, looking for default installation registry key
[2022-04-10T15:38:12.837008100Z][Installer ][Info ] No installation found
[2022-04-10T15:38:13.061938200Z][InstallWorkflow ][Info ] Cancel pending background download
[2022-04-10T15:38:13.061938200Z][BackgroundTransfer][Info ] Cancel current background transfer job
[2022-04-10T15:38:17.390107900Z][InstallWorkflow ][Info ] Using package: res:DockerDesktop
[2022-04-10T15:38:17.390107900Z][InstallWorkflow ][Info ] Downloading
[2022-04-10T15:38:18.922416300Z][InstallWorkflow ][Info ] Extracting manifest
[2022-04-10T15:38:19.029412900Z][InstallWorkflow ][Error ] Installation failed System.Exception: Manifest extraction failed: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest. ---> System.BadImageFormatException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
at System.Span`1.Create(T[] array, Int32 start)
at SharpCompress.Compressors.LZMA.LzmaStream..ctor(Byte[] properties, Stream inputStream, Int64 inputSize, Int64 outputSize, Stream presetDictionary, Boolean isLzma2)
at SharpCompress.Compressors.LZMA.LzmaStream..ctor(Byte[] properties, Stream inputStream, Int64 inputSize, Int64 outputSize)
at SharpCompress.Compressors.LZMA.DecoderRegistry.CreateDecoderStream(CMethodId id, Stream[] inStreams, Byte[] info, IPasswordProvider pass, Int64 limit)
at SharpCompress.Compressors.LZMA.DecoderStreamHelper.CreateDecoderStream(Stream inStream, Int64 startPos, Int64[] packSizes, CFolder folderInfo, IPasswordProvider pass)
at SharpCompress.Common.SevenZip.ArchiveReader.ReadAndDecodePackedStreams(Int64 baseOffset, IPasswordProvider pass)
at SharpCompress.Common.SevenZip.ArchiveReader.ReadDatabase(IPasswordProvider pass)
at SharpCompress.Archives.SevenZip.SevenZipArchive.LoadFactory(Stream stream)
at SharpCompress.Archives.SevenZip.SevenZipArchive.<LoadEntries>d__11.MoveNext()
at SharpCompress.LazyReadOnlyCollection`1.LazyLoader.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at CommunityInstaller.ExtractManifestStep.<DoAsync>d__39.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.<DoHandleD4WPackageAsync>d__29.MoveNext()
--- End of inner exception stack trace ---
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()
[2022-04-10T15:38:19.032411200Z][InstallWorkflow ][Info ] Rollbacking component CommunityInstaller.DownloadStep
[2022-04-10T15:38:19.889337800Z][Installer ][Warning] Failed to track the installer started event
"

Related

Docker 4.16.1 installation

Anyone faced this error while trying to install docker 4.16.1?
Component CommunityInstaller.EnableFeaturesAction failed: at CommunityInstaller.InstallWorkflow.d__30.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__23.MoveNext()
tried this one.
Docker Windows 10 installation Error Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited

Is anyone else experiencing this issue when installing Docker Desktop on Windows 10?

I'm attempting to install Docker Desktop on my Windows 10 Pro 21H2 system, but getting the following error:
Component CommunityInstaller.EnableFeaturesAction failed: Not found
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.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()
C:\ProgramData\DockerDesktop contains an install-log-admin.txt, I'll provide the output here

Docker Windows Installation Failed / Library not registered [Windows 10 Pro]

I am trying to install Docker for Windows 10 Pro. I have downloaded the Docker Desktop Installer.exe and when I run it with Administrator role I got the follwing error when it starts the installation, just after downloading and unpackaging the files.
Installation failed
Library not registered.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
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.<DoAsync>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.<HandleD4WPackageAsync>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.<ProcessAsync>d__24.MoveNext(
I have changed my Windows user Group to Administrators and I also updated Windows 10.
Any help would be appreciated
Regards

Docker for Windows: Drive sharing failed for an unknown reason

ENV:
`Windows 10 Enterprise 1809 17763.864
Docker Desktop Community 2.1.0.5
Tried sharing drive from D drive
docker run -it -v d:/srv/busybox/demo:/var/log busybox
daemon throw errors as Drive sharing failed for an unknown reason
when checked for docker logs
[17:07:54.721][Moby ][Info ] [ 866.663149] CIFS VFS: SMB3 encryption not supported yet
[17:07:54.757][Moby ][Info ] [ 866.698107] CIFS VFS: SMB3 encryption not supported yet
[17:07:54.797][Moby ][Info ] [ 866.729911] CIFS VFS: SMB signature verification returned error = -13
[17:07:54.835][Moby ][Info ] [ 866.770682] CIFS VFS: SMB signature verification returned error = -13
[17:07:54.841][SambaShare ][Error ] Unable to mount D drive: unexpected error: System.AggregateException: One or more errors occurred. ---> Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.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 Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Docker.Backend.LifecycleClient.Mount(MountRequest req)
at Docker.Backend.SambaShare.MountInMoby(String drive, Credential cred, UserNameAndDomain info, String options, String ip)
---> (Inner Exception #0) Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.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 Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()<---
Suggestion from communities tried
Creating a local user with RWX rights to drive
Sharing the drive
Restarting the computer :-P
Resetting the docker for Windows
Switching from and to Windows and Linux containers
Reinstalling Docker for windows
Disabling Firewall/Antivirus Software
but nothing helped!
The culprit was SAMBA encryption. With encryption disabled it works great
Bug: Unable to share C drive #1637 https://github.com/docker/for-win/issues/1637
Bug: Encryption disabling is not an option nor SMB below 3 #5342 https://github.com/docker/for-win/issues/5342
But it's not recommended so in current edge releases of Docker for windows has moved away from SAMBA.
so installing Docker for Windows Edge 2.1.7.0(41536) or later resolved the issue.
You might face switching to edge channel from stable 2.1.0.5 (current)
Bug: Docker Desktop on Windows unable to switch to Edge #4672 https://github.com/docker/for-win/issues/4672 (OPEN)
You can uninstall the stable release and download the edge release from https://docs.docker.com/docker-for-windows/edge-release-notes/
for me installing Docker for Windows Edge 2.1.7.0(41536) solved the issue.

Build agent is unable to download available workspaces

We recently upgraded TFS from TFS 2015 to TFS 2018. We changed build agent in our infrastructure to new agent version 2.122.1
When developers commit their changesets or planed build is executed, sometimes build is processed as expected, but sometimes we receive an strange error upon retrieving sources from TFS repository.
In build log they are logged as:
2018-01-03T15:01:25.6074314Z Querying workspace information.
2018-01-03T15:01:26.5136788Z ##[error]There is an error in XML document (1, 1).
If I open agent detailed log, I got an following information:
[2018-01-03 15:01:25Z INFO ProcessInvoker] Starting process:
[2018-01-03 15:01:25Z INFO ProcessInvoker] File name: 'tf'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Arguments: 'vc workspaces
/format:xml /collection:http://servername:8080/tfs/ProjectCollection/
/loginType:OAuth /login:.,******** /noprompt'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Working directory:
'C:\Agent2017\_work\10\s'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Require exit code zero:
'True'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Encoding web name:
windows-1252 ; code page: '1252'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Force kill process on
cancellation: 'False'
[2018-01-03 15:01:25Z INFO ProcessInvoker] Process started with
process id 3524, waiting for process exit.
[2018-01-03 15:01:25Z INFO JobServerQueue] Try to append 1 batches web
console lines, success rate: 1/1.
[2018-01-03 15:01:25Z INFO JobServerQueue] Try to upload 1 log files
or attachments, success rate: 1/1.
[2018-01-03 15:01:26Z INFO ProcessInvoker] Finished process with exit
code 0, and elapsed time 00:00:00.5240505.
[2018-01-03 15:01:26Z ERR StepsRunner] Caught exception from step:
System.InvalidOperationException: There is an error in XML document
(1, 1). ---> System.Xml.XmlException: Data at the root level is
invalid. Line 1, position 1. at
System.Xml.XmlTextReaderImpl.Throw(Exception e) at
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at
System.Xml.XmlTextReaderImpl.ParseDocumentContent() at
System.Xml.XmlTextReaderImpl.Read() at
System.Xml.XmlReader.MoveToContent() at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTFWorkspaces.Read5_Workspaces()
--- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, Object events) at
System.Xml.Serialization.XmlSerializer.Deserialize(TextReader
textReader) at
Microsoft.VisualStudio.Services.Agent.Worker.Build.TFCommandManager.d__31.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
Microsoft.VisualStudio.Services.Agent.Worker.Build.TfsVCSourceProvider.d__3.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
Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.d__17.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
Microsoft.VisualStudio.Services.Agent.Worker.JobExtensionRunner.d__20.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
Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.d__1.MoveNext()
[2018-01-03 15:01:26Z INFO StepsRunner] Step result: Failed
It seems that agent is trying to get list of available workspaces, but it fails. If I try to execute command under appropriate permissions at computer, where agent is running, I get proper list of workspaces.
Try to queue build with system.debug = true, and you'll get more information in the log. Check the log to get detailed error message.
Remove all the workspaces created by the build process like the following name: ws_1_2 in VS/Team Explorer, and set the clean option in the Get Source task to true, then try to run the build again.
Finally I found an answer to my problem here.
Problem was caused by cached agent information and when I manually executed vc workspaces /format:xml /collection:http://servername:8080/tfs/ProjectCollection/ command at build machine, sometimes I got workspace list, but sometimes I got warning plus workspace list (result is not expected to be same after each call dependent on cache usage). Due to warning like
Local path C:\Agent2017_work\10\s is mapped both in workspace ws_11_09;ProjectCollection Build Service on server http://rwstfs:8080/tfs/ProjectCollection/ and workspace ws_09_10;ProjectCollection Build Service on server http://rwstfs:8080/tfs/ProjectCollection/. Removing workspace ws_09_10;ProjectCollection Build Service on server http://rwstfs:8080/tfs/ProjectCollection/ from the cache. Please remove conflicting mappings.
agent is not able to parse xml document, because it is preceded by non-sgml part.
So I went to
%LocalAppData%\Microsoft\Team Foundation\7.0\Cache
directory, deleted cache content and problem was gone.
EDIT:
Alternative way could be delete cached workspaces using command
tf workspaces /remove:*

Resources