docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.84k stars 281 forks source link

Docker Desktop 4.7.1 fails install 'unpacking failed: Data Error' #12680

Open mattjwarren opened 2 years ago

mattjwarren commented 2 years ago

Actual behavior

Install fails with;

Unpacking failed: Data Error at CommunityInstaller.InstallWorkflow.d29.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.d23.MoveNext()

Expected behavior

Install completes

Information

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

& : The term 'C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:3

Steps to reproduce the behavior

  1. download docker installer for windows
  2. run it

I have tried multiple times with a fresh download each time, same issue.

Katylar commented 2 years ago

Exact same issue on my end.

philoUK commented 2 years ago

Exact issue here

buts101 commented 2 years ago

same issue with 4.9.1... unpacking is taking way too long time but extracting it via 7zip is quick.

wmanka commented 2 years ago

I also have this issue with version 4.9.1

smartwombat commented 1 year ago

Similar issue with 4.10.0 (82025)

install-log-admin.txt

drakor007 commented 1 year ago

Similar issue with 4.12.0 (85629) Unpacking failed: File does not exist: C:\Users\dklem\AppData\Local\Temp\DockerDesktop\2zxk1ix4nxa v CommunityInstaller.InstallWorkflow.d30.MoveNext() --- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka --- v System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) v CommunityInstaller.InstallWorkflow.d23.MoveNext()

Nimmo89 commented 1 year ago

Similar issue with 4.13.0 (89412) Unpacking failed: Data Error в CommunityInstaller.InstallWorkflow.d30.MoveNext() --- Конец трассировка стека из предыдущего расположения, где возникло исключение --- в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) в CommunityInstaller.InstallWorkflow.d23.MoveNext()

PoteminIvan commented 1 year ago

Similar issue with 4.15.0 (93002) Unpacking failed: Data Error в CommunityInstaller.InstallWorkflow.d30.MoveNext() --- Конец трассировка стека из предыдущего расположения, где возникло исключение --- в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) в CommunityInstaller.InstallWorkflow.d23.MoveNext()

BlueAlder commented 1 year ago

Getting the same issue with 4.16.1 (95567)

Unpacking failed: Data Error at CommunityInstaller.InstallWorkflow.d30.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.d23.MoveNext()

LucaMaurelliC commented 1 year ago

Same issue on Windows 10 Pro, Docker 4.17.0

mavega998 commented 1 year ago

I have the same issue with Windows 11 Pro. Docker 4.17.1

[2023-04-03T01:29:36.828448900Z][InstallWorkflow][E] Installation failed System.Exception: Unpacking failed: Data Error ---> SharpCompress.Compressors.LZMA.DataErrorException: Data Error
   at SharpCompress.Compressors.LZMA.Decoder.Code(Int32 dictionarySize, OutWindow outWindow, Decoder rangeDecoder)
   at SharpCompress.Compressors.LZMA.LzmaStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.ReadByte()
   at SharpCompress.Compressors.LZMA.Bcj2DecoderStream.<Run>d__20.MoveNext()
   at SharpCompress.Compressors.LZMA.Bcj2DecoderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCompress.IO.ReadOnlySubStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCompress.Common.EntryStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCompress.Utility.TransferTo(Stream source, Stream destination, Entry entry, IReaderExtractionListener readerExtractionListener)
   at SharpCompress.Readers.AbstractReader`2.Write(Stream writeStream)
   at SharpCompress.Readers.AbstractReader`2.WriteEntryTo(Stream writableStream)
   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.UnpackArtifactsStep.<DoAsync>d__37.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__30.MoveNext()
   --- End of inner exception stack trace ---
   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()
[2023-04-03T01:29:36.830448300Z][InstallWorkflow][I] Rollbacking component CommunityInstaller.ExtractManifestStep
[2023-04-03T01:29:36.831448200Z][InstallWorkflow][I] Rollbacking component CommunityInstaller.DownloadStep
AppleNorris commented 11 months ago

I probably have found a fix. Applicable only if you have this error: "CommunityInstaller.InstallWorkflow.d__30.MoveNext()" Open admin PowerShell, run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned. It's the same policy that doesn't allow to install Chocolatey, really, though you probably don't need to bypass it.

sharkymcdongles commented 4 weeks ago

I fixed this by uninstalling docker desktop fully. Deleting all docker folders in program files / program data / appdata for all users. Shutting down wsl via wsl --shutdown. Installing latest version as admin. Running this in powershell as admin:

wsl --unregister docker-desktop
wsl --unregister docker-desktop-data

Then starting docker desktop.