windows-installers icon indicating copy to clipboard operation
windows-installers copied to clipboard

Elasticsearch 7.15.0 installer throwing Exception during custom action ElasticsearchSetBootstrapPassword

Open coderjoe opened this issue 4 years ago • 2 comments

Environment

Windows 10 based in the US both on corporate VPN and not. Fresh install of 7.15.0.

Expected Behaviour

Elasticsearch should install without failing due to unexpected exceptions.

Actual Behaviour

Installer log file: MSI1a543.LOG

Elasticsearch begins to install but appears to fail with the following stack trace:

Calling custom action Elastic.Installer.Msi!Elastic.Installer.Msi.Elasticsearch.CustomActions.Immediate.ElasticsearchSetBootstrapPasswordAction.ElasticsearchSetBootstrapPassword
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Elastic.InstallerHosts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.
   at Elastic.Installer.Msi.Elasticsearch.CustomActions.Immediate.ElasticsearchSetBootstrapPasswordAction.ElasticsearchSetBootstrapPassword(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)
CustomAction ElasticsearchSetBootstrapPasswordAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 18:00:26: ElasticsearchSetBootstrapPasswordAction. Return value 3.

Steps to reproduce the behaviour

Fresh install of 7.15.0

  1. Download the Elasticsearch 7.15.0 install MSI
  2. Run the installer user interface
  3. Choose all default options and begin the install
  4. Installer hangs at the verification stage and eventually fails

coderjoe avatar Sep 23 '21 22:09 coderjoe

Hello @coderjoe, unfortunately I was not able to repro the issue. To give you some background on what happens at this step: MSI starts ES process and tries to ping an endpoint to bootstrap passwords. This might be a network issue.

ghost avatar Nov 01 '21 15:11 ghost

From the exception I was presuming it was just an assembly binding issue. If there's anything I can help to do to triage the problem please do let me know. My co-workers and I are all having the issue so it may very well be based on our corporate setup.

coderjoe avatar Nov 01 '21 18:11 coderjoe

We've migrated our environment and are no longer facing this issue. We've also long since migrated to later versions. Any objections to just closing this since it is not reproduceable?

coderjoe avatar Oct 27 '22 22:10 coderjoe

Closing as there was no objection for a few months.

coderjoe avatar Dec 07 '22 01:12 coderjoe