Replies: 1 comment 3 replies
-
I think I have seen such hangs before, but unfortunately I don't remember what the problem was or how it was resolved.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First I want to say I don't think this is a problem with the action, but I have run out of troubleshooting steps and hope opening a discussion might help me find an answer.
It's a strange problem: the GitHub runner completely locks up and stops responding (as far as I can tell from actions interface) when running certain Ansible commands in WSL, but only in Debian, and only on Windows 2022.
When I say it completely locks up, what I mean is that all output ceases, the step never finishes. If I cancel the workflow, the cancel operation will also not be responded to, and the cancel request will timeout (at which point some higher level process takes care of forcing it to stop).
timeout-minutes
directives in the workflow have no effect.Using the
timeout
command inbash
/wsl-bash
has no effect.Debug logging has not given me anything useful either.
One interesting thing is that it seems like the commands that lock up the system do run, but the next step is never reached.
The output from those commands can be seen, but you must have the page open to that command to see the output. If you try to go back to it after it has locked up, the output will not be shown. It is also not included in the downloadable logs.
Using the
update
flag to run uodates in the distro also did not help.Another interesting point is that the wrapper script changes things a little bit, for example using
shell: wsl-bash
, it locks up even just runningansible --version
, however if I useshell: cmd
and runwsl.exe ansible --version
it will work (a few other commands work too), butansible-galaxy collection install ...
will lock up with either method.My workflow: https://github.com/briantist/gha-junk/blob/try/.github/workflows/wsl.yml
Workflow runs: https://github.com/briantist/gha-junk/actions/workflows/wsl.yml
Here's output from `wsl-bash`
Here's some output using `cmd` and `wsl.exe` (snipped)
I'm really stuck at this point, and would appreciate any tips or ideas.
Beta Was this translation helpful? Give feedback.
All reactions