Skip to content

Instantly share code, notes, and snippets.

@phsteve
Created May 4, 2017 20:24
Show Gist options
  • Save phsteve/9cc0ce14e713de41c7d59c544b9dca00 to your computer and use it in GitHub Desktop.
Save phsteve/9cc0ce14e713de41c7d59c544b9dca00 to your computer and use it in GitHub Desktop.
error after salt upgrade
PS C:\Users\skatz> C:\salt\salt-call.bat --local -l debug psget.avail_modules
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Configuration file path: c:\salt\conf\minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Reading configuration from c:\salt\conf\minion
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf'
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf
[DEBUG ] Determining pillar cache
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded cmd.shell_info
[DEBUG ] LazyLoaded reg.list_keys
[DEBUG ] LazyLoaded psget.avail_modules
[DEBUG ] DSC: Find-Module | ConvertTo-Json -Depth 2
[INFO ] Executing command 'Powershell -NonInteractive -NoProfile "Find-Module | ConvertTo-Json -Depth 2"' in director
y 'C:\Users\skatz'
[ERROR ] Command 'Find-Module | ConvertTo-Json -Depth 2' failed with return code: 1
[ERROR ] stderr: Exception calling "ShouldContinue" with "2" argument(s): "Windows PowerShell is in NonInteractive mod
e. Read and
Prompt functionality is not available."
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7392 char:8
+ if($Force -or $psCmdlet.ShouldContinue($shouldContinueQueryMessag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PSInvalidOperationException
Find-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or
newer version of NuGet provider is installed.
At line:1 char:1
+ Find-Module | ConvertTo-Json -Depth 2
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Find-Module], InvalidOperationException
+ FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Find-Module
[ERROR ] retcode: 1
Traceback (most recent call last):
File "C:\salt\bin\lib\site-packages\salt\cli\caller.py", line 197, in call
ret['return'] = func(*args, **kwargs)
File "C:\salt\bin\lib\site-packages\salt\modules\win_psget.py", line 135, in avail_modules
modules = _pshell(cmd)
File "C:\salt\bin\lib\site-packages\salt\modules\win_psget.py", line 67, in _pshell
raise CommandExecutionError('Issue executing powershell {0}'.format(cmd), info=results)
CommandExecutionError: Issue executing powershell Find-Module | ConvertTo-Json -Depth 2. Additional info follows:
retcode:
1
stderr:
Exception calling "ShouldContinue" with "2" argument(s): "Windows PowerShell is in NonInteractive mode. Read and
Prompt functionality is not available."
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7392 char:8
+ if($Force -or $psCmdlet.ShouldContinue($shouldContinueQueryMessag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PSInvalidOperationException
Find-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' o
r
newer version of NuGet provider is installed.
At line:1 char:1
+ Find-Module | ConvertTo-Json -Depth 2
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Find-Module], InvalidOperationException
+ FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Find-Module
stdout:
Error running 'psget.avail_modules': Issue executing powershell Find-Module | ConvertTo-Json -Depth 2. Additional info f
ollows:
retcode:
1
stderr:
Exception calling "ShouldContinue" with "2" argument(s): "Windows PowerShell is in NonInteractive mode. Read and
Prompt functionality is not available."
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7392 char:8
+ if($Force -or $psCmdlet.ShouldContinue($shouldContinueQueryMessag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PSInvalidOperationException
Find-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' o
r
newer version of NuGet provider is installed.
At line:1 char:1
+ Find-Module | ConvertTo-Json -Depth 2
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Find-Module], InvalidOperationException
+ FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Find-Module
stdout:
PS C:\Users\skatz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment