Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

ChefDK Installation fails on Windows 10 #1061

Closed
vladvasiliu opened this issue Oct 26, 2016 · 6 comments
Closed

ChefDK Installation fails on Windows 10 #1061

vladvasiliu opened this issue Oct 26, 2016 · 6 comments
Labels
Expeditor: Skip Changelog Used to skip built_in:update_changelog.

Comments

@vladvasiliu
Copy link

Description

Cannot install chefdk version 0.19.6 on Windows 10.
After asking for administrator credentials, installer starts working, and a few moments later I get the error message :

Chef DK v0.19.6 Setup Wizard ended prematurely because of an error.

ChefDK Version

ChefDK 0.19.6. Same thing happens with 0.18.30, 0.18.26 and 0.17.17.

Platform Version

Windows 10 :

> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

Replication Case

Attempt to install ChefDK from the package on https://downloads.chef.io/chef-dk/windows/

Stacktrace

Windows Installer log here

@PatrickWalker
Copy link

The error seems to be on extracting a zip

Starting extraction
MSI (s) (D8!34) [15:30:24:245]: Closing MSIHANDLE (9) of type 790531 for thread 11316
MSI (s) (D8!34) [15:30:24:348]: Creating MSIHANDLE (10) of type 790531 for thread 11316
Exception thrown by custom action:
MSI (s) (D8!34) [15:30:24:349]: Closing MSIHANDLE (10) of type 790531 for thread 11316
MSI (s) (D8!34) [15:30:24:353]: Creating MSIHANDLE (11) of type 790531 for thread 11316
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: 1 is not a supported code page.
Parameter name: codepage
at System.Text.Encoding.GetEncoding(Int32 codepage)
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(Stream stream)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)
at CustomActionFastMsi.CustomActions.FastUnzip(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
MSI (s) (D8!34) [15:30:24:353]: Closing MSIHANDLE (11) of type 790531 for thread 11316
CustomAction FastUnzip returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (D8:B0) [15:30:24:365]: Closing MSIHANDLE (2) of type 790536 for thread 11120
Action ended 15:30:24: InstallFinalize. Return value 3.

@PatrickWalker
Copy link

I just had a complete install there of version 1.0.3

PS C:\Users\user> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

@vladvasiliu
Copy link
Author

I have just tried version 1.0.3. I still get the same behaviour.

@AdamMcChesney
Copy link

Just had the same issue when running the installer. Tried chefdk-1.2.22-1 and 1.3.10-1 both with the same error. It however did leave a zip at c:\opscode and after manually unzipping it i am getting access denied errors unzipping the ruby gem thor-0.19.1\spec files.
opscode_chefdk

@gusztavvargadr
Copy link

To me the same error occurred with all the 1.x versions of the Chef DK with the same stack trace as @PatrickWalker mentioned (Windows 10 build 15063). After changing all the regional and language options back to en-US and rebooting, version 1.4.3 installed correctly, maybe it helps someone.

I'd also try checking for the installed .NET Framework versions, the underlying ICSharpCode.SharpZipLib.dll might have an old version included. I had both .NET 4.7 and .NET 3.5 installed.

@cheeseplus
Copy link
Contributor

Even though this one is older, merging with #1290 since we've gotten further into what the root problems seem to be.

@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
@tas50 tas50 added Expeditor: Skip Changelog Used to skip built_in:update_changelog. and removed Expeditor: Exclude From Changelog labels Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Expeditor: Skip Changelog Used to skip built_in:update_changelog.
Development

No branches or pull requests

6 participants