Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2010 Redistributeable install hangs. #453

Closed
javadevmtl opened this issue May 17, 2016 · 9 comments
Closed

Visual Studio 2010 Redistributeable install hangs. #453

javadevmtl opened this issue May 17, 2016 · 9 comments

Comments

@javadevmtl
Copy link

Hi using 2015.8.8.2

I reported the issue here: https://groups.google.com/forum/#!topic/salt-users/Y3aeRDb4Rqs

Using salt on Ubuntu 14.04 to manage some Windows 2008 and 2012 servers.

Everything is setup and running correctly I managed to do some IIS stuff, I even installed firefox as per the docs. But when I run...

sudo salt '*' pkg.install ms-vcpp-2010-sp1-mfc-redist_x64

The command seems to hang. Looking at the minion logs...

2016-05-16 16:27:53 [salt.loaded.int.module.cmdmod][INFO    ] Executing command 'Powershell -NonInteractive "Import-Module ServerManager"' in directory 'C:\\Windows\\system32\\config\\systemprofile'
2016-05-16 16:27:53 [salt.minion    ][INFO    ] Starting a new job with PID 2812
2016-05-16 16:27:53 [salt.minion    ][INFO    ] Returning information for job: 20160516162749915989
2016-05-16 16:27:54 [salt.loaded.int.module.cmdmod][INFO    ] Executing command ['c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\download.microsoft.com\\download\\1\\6\\5\\165255E7-1014-4D0A-B094-B6A430A6BFFC\\vcredist_x64.exe', '/qn', '/norestart'] in directory 'c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\download.microsoft.com\\download\\1\\6\\5\\165255E7-1014-4D0A-B094-B6A430A6BFFC'
2016-05-16 16:28:03 [salt.minion    ][INFO    ] Starting a new job with PID 2012
2016-05-16 16:28:03 [salt.minion    ][INFO    ] Returning information for job: 20160516162759925343
2016-05-16 16:28:12 [salt.minion    ][INFO    ] Starting a new job with PID 3024

And it goes for ever. I then press ctrl-c get the job id and eventually kill the job manually.

According to this: How to perform a silent install of the Visual C++ 2010 redistributable packages there is no n flag.

  1. Modified the ms-vcpp-2010-sp1-mfc-redist_64.sls file from /qn to /q
  2. Updated the minion repo packages.
  3. sudo salt '*' pkg.install ms-vcpp-2010-sp1-mfc-redist_x6

The result

mywinminion:
    ----------
    _comment:
        Software not found in the registry.
        Could be a problem with the Software
        definition file. Verify the full_name
        and the version match the registry exactly.
        Failed after 10 tries.
    vcredist2010_x64:
        ----------
        new:
            10.0.40219
        old:

It seems to be installing but with some error?

@twangboy
Copy link
Collaborator

@javadevmtl It's not really an error, it's either a timing or a registry refresh issue... it's looking for the software in the registry. If it doesn't find in after 10 tries, it throws this error... I believe this is fixed in 2016.3

@TheBigBear
Copy link
Contributor

@twangboy the 'n' flag is a mistake and at least this version of the MS redistributable installer does not support that flag. So I removed that from winrepo and winrepo-ng for both cpuarchs.
When I tested it here, it finished with a error 3010 (successful but machine needs restart. that is possibly the 'error' @javadevmtl is seeing. (same as reported here saltstack/salt#33298 and here #141 )

It is definitely a problem that winrepo does not handle exit codes and easily allows windows admins to handle these sort of error codes that are quite common in the windows world.

@twangboy
Copy link
Collaborator

@TheBigBear Loren Gorden has submitted a PR addressing this issue.
saltstack/salt#33321

@morganwillcock
Copy link
Contributor

I think this particular package also has a mistake in the full_name, I've submitted a PR.
#455

@javadevmtl
Copy link
Author

One more thing to add:

sudo salt 'myminion' pkg.remove ms-vcpp-2010-sp1-mfc-redist_x64
myminion:
    ----------
    ms-vcpp-2010-sp1-mfc-redist_x64:
        ----------
        current:
            not installed

It doesn't think it's installed...

@morganwillcock
Copy link
Contributor

Have you updated today, to pick up the corrected name?

Microsoft Visual C++ 2010  x64 Redistributable - 10.0.40219

...there's a double space after 2010 which needs to be there.

You can confirm what is mismatched vs. not installed with pkg.get_name_map

@javadevmtl
Copy link
Author

Oh no I haven't pulled the latest repo... only what I applied to figure this issue.

@TheBigBear
Copy link
Contributor

TheBigBear commented May 18, 2016

@javadevmtl can you please confirm that we can close this issue now. I believe all the fixes for this pkg are now merged and up to date? thanks for taking the time to report this, much appreciated.

TheBigBear added a commit that referenced this issue Jul 10, 2016
Merge pull request #536 from TheBigBear/master
@TheBigBear
Copy link
Contributor

no feedback to the contrary received. closing this as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants