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

Commands fail if in a remote session to Windows #1986

Closed
beechtom opened this issue Jul 13, 2020 · 0 comments
Closed

Commands fail if in a remote session to Windows #1986

beechtom opened this issue Jul 13, 2020 · 0 comments
Labels
Bug Bug reports and fixes.

Comments

@beechtom
Copy link
Contributor

Originally reported as BOLT-1075

Issue

If you are remoted into a Windows machine and attempt to run a command, the command may fail with an Bad file descriptor error.

This was discovered during the Getting Started with Puppet training class.

This issue specifically arose out of entering a remote session with Enter-PSSession and then using the --password CLI option without a password after it, causing Bolt to prompt for the password.

Workaround

Interactive tools fail when run in a remote PowerShell session. For example,
using --password-prompt to prompt for a password when running Bolt triggers an
error. As a workaround, consider putting the password in a configuration file such
as bolt-defaults.yaml or bolt-project.yaml, in an inventory file, or passing the password
on the command line.

@beechtom beechtom added the Bug Bug reports and fixes. label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug reports and fixes.
Projects
None yet
Development

No branches or pull requests

1 participant