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

sleep: cannot read realtime clock: Invalid argument #114

Closed
AloisJanicek opened this issue Mar 29, 2020 · 2 comments
Closed

sleep: cannot read realtime clock: Invalid argument #114

AloisJanicek opened this issue Mar 29, 2020 · 2 comments

Comments

@AloisJanicek
Copy link

AloisJanicek commented Mar 29, 2020

Describe the issue
I am unable to use ansible to manage configuration of ArchWSL-installed Arch Linux.

To Reproduce
Running ansible localhost -m ping -vvvv to ping ansible's implicit localhost results in following error (full command output):

<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: alois
<127.0.0.1> EXEC /bin/sh -c 'echo ~alois && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/alois/.ansible/tmp/ansible-tmp-1585507687.3522685-86506482941907 `" && echo ansible-tmp-1585507687.3522685-86506482941907="` echo /home/alois/.ansible/tmp/ansible-tmp-1585507687.3522685-86506482941907 `" ) && sleep 0'
localhost | UNREACHABLE! => {
    "changed": false,
    "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 77 && mkdir -p \"` echo /home/alois/.ansible/tmp/ansible-tmp-1585507687.3522685-86506482941907 `\" && echo ansible-tmp-1585507687.3522685-86506482941907=\"` echo /home/alois/.ansible/tmp/ansible-tmp-1585507687.3522685-86506482941907 `\" ), exited with result 1, stdout output: ansible-tmp-1585507687.3522685-86506482941907=/home/alois/.ansible/tmp/ansible-tmp-1585507687.3522685-86506482941907\n, stderr output: sleep: cannot read realtime clock: Invalid argument\n",
    "unreachable": true
}

Expected behavior
Operation should result in SUCCESS

localhost | SUCCESS => {
    "changed": false,
    "invocation": {
        "module_args": {
            "data": "pong"
        }
    },
    "ping": "pong"
}

Enviroment:

  • Windows build number: 10.0.18363.720
  • Security Software: None (Built-in "Virus & threat protection" turned-off)
  • WSL version 1
  • ArchWSL version 20.3.26.0
  • ArchWSL Installer type zip
  • Launcher version 20032600

Additional context
As this issue doesn't appear on Ubuntu (full command output) or OpenSUSE (full command output) installed from Microsoft Store or on Arch Linux running in Virtualbox or installed on machine, there must be some difference in distribution configuration / settings which I was unable to identify.

@AloisJanicek AloisJanicek changed the title Ansible authentication / permission failure on localhost sleep: cannot read realtime clock: Invalid argument Mar 30, 2020
@AloisJanicek
Copy link
Author

stderr output: sleep: cannot read realtime clock: Invalid argument

Upstream issue microsoft/WSL#4898, fix is on its way

@AloisJanicek
Copy link
Author

And thus duplicate of #108.
I will pay more attention next time before posting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants