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

error when asking host questions from cron could be more clear #3841

Closed
mpdehaan opened this issue Aug 14, 2013 · 2 comments
Closed

error when asking host questions from cron could be more clear #3841

mpdehaan opened this issue Aug 14, 2013 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@mpdehaan
Copy link
Contributor

If running ansible playbook from cron and it asks a host key question there is no stdin, as such, we need to make this error message better and suggest how to work around the problem (and/or just be cool if no stdin)

fatal: [127.0.0.1] => {'msg': 'FAILED: argument must be an int, or have a fileno() method.', 'failed': True}

@alisaifee
Copy link

I've just started encountering the same issue. However, in my case I'm not executing the playbook via cron, its directly from the shell. The problem has started occurring right after i changed the ssh port of a target host.

Subsequently I was able to recover from this state by ssh'ing manually to the host on the new port and then running ansible.

@jimi-c
Copy link
Member

jimi-c commented Aug 22, 2013

As noted in #3902, the issue was a failure to dupe stdin when forks == 1. The above patch should correct the problem for you and will be included in 1.3. Thanks!

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants