salt icon indicating copy to clipboard operation
salt copied to clipboard

Windows 2016.11.4 minion installer silent mode issue

Open lomeroe opened this issue 9 years ago • 15 comments

Description of Issue/Question

Salt minion installer running in silent mode with a PATH environment variable > 1024 will hang. When run in non-silent mode, a message box is displayed stating "PATH not updated, original length XXXX > 1024" (i.e. the cause of the apparent hang)

After clicking through the message box salt seems to run/function as expected.

  1. Is the message a warning or an error that will affect something?
  2. Should the /S switch continue on or fail the install instead of hanging

Setup

Windows server with PATH environment variable longer than 1024 characters

Steps to Reproduce Issue

install salt-minion in silent or non-silent mode

Versions Report

lomeroe avatar May 05 '17 17:05 lomeroe

@twangboy can you take a look at this?

Thanks, Daniel

gtmanfred avatar May 05 '17 17:05 gtmanfred

This is a limitation with the NSIS installer. It is unable to handle variables larger than 1024. If the installer encounters this situation, it simply does not make changes to the path. Salt will function normally. If you need to run salt commands from the command line, you may need to add C:\salt to your path by hand. Otherwise you can ignore this.

I'll have to look at this for Silent Mode....

twangboy avatar May 05 '17 23:05 twangboy

@cachedout Maybe a priority to get this fixed

twangboy avatar May 05 '17 23:05 twangboy

I wonder if I've been running into this also. I have not for the life of me been able to get salt 2016.11 (any version) to install silently in appveyor for CI testing of salt formulas. It just hangs on the install step. Works fine (seemingly) everywhere else I've tried it. Also, 2016.3 is fine in appveyor, so I've had to pin my CI tests to older versions. Been driving me crazy.

lorengordon avatar May 06 '17 15:05 lorengordon

We may need to build our own version of the NSIS installer so that it will support strings up to 8192.

http://nsis.sourceforge.net/Special_Builds

twangboy avatar May 08 '17 22:05 twangboy

ZD-1418

rickh563 avatar May 09 '17 23:05 rickh563

@cachedout We now have a ZD issue related to this.... 1418

twangboy avatar May 10 '17 16:05 twangboy

@rickh563 Just patched the 2016.11.5 installer to include this fix...

twangboy avatar May 10 '17 18:05 twangboy

@twangboy got a link? i don't see it in the repo yet, http://repo.saltstack.com/windows/. i'd be happy to test against appveyor really quick to see if this really is the same issue i was running into...

lorengordon avatar May 10 '17 18:05 lorengordon

@lorengordon It's in staging since we haven't officially released... https://repo.saltstack.com/staging/windows

twangboy avatar May 10 '17 19:05 twangboy

@twangboy Yep! That fixes the issue I was experiencing with appveyor! The install hangs when using 2016.11.4, and 2016.11.5 completes fine. 💥 🎆

lorengordon avatar May 10 '17 19:05 lorengordon

@lorengordon Excellent! The PR has been merged and 2016.11.5 should be released sometime this week or next. Thanks for testing!

twangboy avatar May 10 '17 21:05 twangboy

Tested the 'Salt-Minion-2016.11.5-AMD64-Setup.exe' on Helios10 (known issue with the PATH). Here are the results

INSTALLATION Manual install still shoots prompt, the prompt however is now worded: "You may add C:\salt to the %PATH% for convenience when issuing local salt commands from the command line" Clicking on the 'OK' button, finishes the installation, but the PATH variable is unchanged. (No salt addition) Silent install completes with no pop-up, but PATH variable is unchanged. (No salt addition)

UNINSTALL Both manual and Silent uninstall correctly

gaoweisgp avatar May 12 '17 14:05 gaoweisgp

@gaoweisgp That is the intended behavior.

twangboy avatar May 12 '17 15:05 twangboy

@twangboy Thanks for the clarification

gaoweisgp avatar May 12 '17 17:05 gaoweisgp