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

Problem: Jobs stuck on SSH-Password-Prompt #70

Open
NiceRath opened this issue Sep 30, 2024 · 13 comments
Open

Problem: Jobs stuck on SSH-Password-Prompt #70

NiceRath opened this issue Sep 30, 2024 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@NiceRath
Copy link

Versions

0.0.24

Scope

Ansible (Job Execution)

Issue

Jobs are stuck on the prompt SSH password: - the other ones work as expected

@NiceRath NiceRath added problem Problem triage Triage labels Sep 30, 2024
@NiceRath
Copy link
Author

@moy804
Copy link

moy804 commented Oct 4, 2024

I'm seeing the same. The jobs are stuck but from the Running command: output there doesn't seem to be a user or credentials passed in:

Capture

@superstes
Copy link

superstes commented Oct 5, 2024

Possible issue with the formatting? Needs to be regex?
ansible/ansible-runner#534

@ansibleguy ansibleguy added bug Something isn't working and removed triage Triage problem Problem labels Oct 5, 2024
@ansibleguy ansibleguy self-assigned this Oct 5, 2024
@ansibleguy
Copy link
Owner

@ansibleguy
Copy link
Owner

Seems it makes no difference if we supply the matches in regex format..
Debugging shows that the ansible-runner actually sends the password, but still nothing happens. At this point in the code the SSH password is sent: https://github.com/ansible/ansible-runner/blob/2.4.0/src/ansible_runner/runner.py#L321

@ansibleguy
Copy link
Owner

Was able to get it working by forking and hotfixing the ansible-runner: https://github.com/ansibleguy/ansible-runner/blob/release_2.4/src/ansibleguy_runner/runner.py#L323
Will create an issue at the ansible-runner repo.. for now we have a fork that should work: https://pypi.org/project/ansibleguy-runner/

@ansibleguy
Copy link
Owner

Related: #72

@ansibleguy
Copy link
Owner

My tests look good.
Please update to the new version an re-test it.

@moy804
Copy link

moy804 commented Oct 6, 2024

I just tried 0.0.24-2 via docker but it doesn't seem to pass the user or credentials to the ansible-playbook statement:
image

Here's the same playbook output on 0.0.23-3:
image

@ansibleguy
Copy link
Owner

ansibleguy commented Oct 7, 2024

Very interesting as the --become-password-file and --connect-password-file are not in the codebase anymore.
Can only think of a issue when building the docker images.. Will check it

@ansibleguy
Copy link
Owner

Have forgot to release the 0.0.24-3 image that has the missing-user fix in it.
Currently uploading..

But also on 0.0.24-2 I was not able to reproduce the behavior seen in your screenshot:
docker run -d --name ansible-webui --publish 127.0.0.1:8000:8000 --volume $(pwd):/play ansible0guy/webui:0.0.24-2
image

@ansibleguy
Copy link
Owner

ansibleguy commented Oct 7, 2024

And with 0.0.24-3 in docker now:
image

@moy804
Copy link

moy804 commented Oct 7, 2024

Looks good to me too. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants