question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS 11 & 12: connections fail trying to execv non-existent path

See original GitHub issue
  • Which version of Ansible are you running:

    ansible 2.10.4
    config file = /Users/dwt/Code/Projekte/sntl/provisioning/ansible/ansible.cfg
    configured module search path = ['/Users/dwt/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /Users/dwt/.virtualenvs/sntl-provisioning/lib/python3.9/site-packages/ansible
    executable location = /Users/dwt/.virtualenvs/sntl-provisioning/bin/ansible
    python version = 3.9.1 (default, Jan  4 2021, 20:49:26) [Clang 12.0.0 (clang-1200.0.32.28)]
    
  • Is your version of Ansible patched in any way? no

  • Are you running with any custom modules, or module_utils loaded? yes, self written modules to extract local facts

  • Have you tried the latest master version from Git? yes

  • Mention your host and target OS and versions: host: macos 11.1, target: cents 7.9

  • Mention your host and target Python versions host: 2.7 and 3.9 (both tested)

  • If reporting a crash or hang in Ansible, please rerun with -vvv and include 200 lines of output around the point of the error, along with a full copy of any traceback or error text in the log: ansible.log

  • If reporting any kind of problem with Ansible, please include the Ansible version along with output of “ansible-config dump --only-changed”.

    ANSIBLE_PIPELINING(/path/to/ansible/ansible.cfg) = True
    ANSIBLE_SSH_CONTROL_PATH(/path/to/ansible/ansible.cfg) = %(directory)s/%%C
    CACHE_PLUGIN(/path/to/ansible/ansible.cfg) = jsonfile
    CACHE_PLUGIN_CONNECTION(/path/to/ansible/ansible.cfg) = ./.fact_cache/
    CACHE_PLUGIN_TIMEOUT(/path/to/ansible/ansible.cfg) = 86400
    DEFAULT_FORKS(/path/to/ansible/ansible.cfg) = 500
    DEFAULT_GATHERING(/path/to/ansible/ansible.cfg) = smart
    DEFAULT_HASH_BEHAVIOUR(/path/to/ansible/ansible.cfg) = merge
    DEFAULT_HOST_LIST(/path/to/ansible/ansible.cfg) = ['/path/to/ansible/inventory']
    DEFAULT_MANAGED_STR(/path/to/ansible/ansible.cfg) = This file is managed by Ansible. Don't make changes here, they will be overwritten.
    DEFAULT_ROLES_PATH(/path/to/ansible/ansible.cfg) = ['/path/to/ansible/roles', '/path/to/ansible/vendor/icinga2-ansible', '/path/to/ansible/vendor/ansible-icinga-monitoring', '/path/to/ansible/vendor/ansible-elasticsearch']
    DEFAULT_STDOUT_CALLBACK(/path/to/ansible/ansible.cfg) = yaml
    DEFAULT_STRATEGY(/path/to/ansible/ansible.cfg) = mitogen_linear
    DEFAULT_STRATEGY_PLUGIN_PATH(/path/to/ansible/ansible.cfg) = ['/path/to/ansible/vendor/mitogen/ansible_mitogen/plugins/strategy']
    DEFAULT_VAULT_PASSWORD_FILE(/path/to/ansible/ansible.cfg) = /path/to/ansible/scripts/open_the_vault.sh
    TRANSFORM_INVALID_GROUP_CHARS(/path/to/ansible/ansible.cfg) = ignore
    

The error I’m seeing is that a synchronize action fails because it seems to try to execl() a non-existent path on my local machine. The error is contained in the above linked file, but in shortened it is this:

Python(mitogen:dwt@nathan.fritz.box:29674): execv: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python(mitogen:dwt@nathan.fritz.box:29674): No such file or directory

This looks a lot like some bootstrap code, but I’m not sure why it tries to connect to the local machine - or am I missing something?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
opoplawskicommented, Dec 20, 2021

Any chance that this could be fixed on the 0.2-release branch as well for those of us still on ansible 2.9? Thanks.

1reaction
moreaticommented, Dec 6, 2021

Thank you, I’ve merged the branch

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac OS X Manual Page For intro(2)
This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual...
Read more >
execve(2) - Linux manual page
execve () executes the program referred to by pathname. This causes the program that is currently being run by the calling process to...
Read more >
no such file or directory when using execv()
I start by getting the PATH variable like this to later pass it on to the execv() function. const char *name = "PATH";...
Read more >
Changelog — Python 3.11.1 documentation
Paths are no longer encoded to UTF-8/strict to avoid encoding errors if it contains surrogate characters (bytes paths are decoded with the surrogateescape...
Read more >
Bug listing with status RESOLVED with resolution INVALID as ...
ERROR : app-office/gnumeric-1.0.12 failed. ... Bug:15076 - "emerge rsync hangs during install, and the only way to 'advance' it is to initiate a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found