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

socket path does not exist or cannot be found #631

Open
ekevalo opened this issue Apr 18, 2024 · 4 comments
Open

socket path does not exist or cannot be found #631

ekevalo opened this issue Apr 18, 2024 · 4 comments
Labels
needs_info This issue requires further information. Please answer any outstanding questions.

Comments

@ekevalo
Copy link

ekevalo commented Apr 18, 2024

SUMMARY
ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION

COLLECTION VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

@ekevalo ekevalo changed the title does not exist or cannot be found socket path does not exist or cannot be found Apr 18, 2024
@ekevalo
Copy link
Author

ekevalo commented Apr 18, 2024

2024-04-18 06:28:48,027 p=1833 u=xxxxxx n=ansible | ansible [core 2.16.5]
config file = /home/xxxxxx/yyyyyyy/netconf-test/ansible.cfg
configured module search path = ['/home/xxxxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/xxxxxx/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/xxxxxx/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
2024-04-18 06:28:48,028 p=1833 u=xxxxxx n=ansible | Using /home/xxxxxx/yyyyyyy/netconf-test/ansible.cfg as config file
2024-04-18 06:28:48,029 p=1833 u=xxxxxx n=ansible | setting up inventory plugins
2024-04-18 06:28:48,242 p=1833 u=xxxxxx n=ansible | Loading collection ansible.builtin from
2024-04-18 06:28:48,276 p=1833 u=xxxxxx n=ansible | host_list declined parsing /home/xxxxxx/yyyyyyy/netconf-test/hosts.yml as it did not pass its verify_file() method
2024-04-18 06:28:48,276 p=1833 u=xxxxxx n=ansible | script declined parsing /home/xxxxxx/yyyyyyy/netconf-test/hosts.yml as it did not pass its verify_file() method
2024-04-18 06:28:48,280 p=1833 u=xxxxxx n=ansible | Parsed /home/xxxxxx/yyyyyyy/netconf-test/hosts.yml inventory source with yaml plugin
2024-04-18 06:28:48,333 p=1833 u=xxxxxx n=ansible | Loading callback plugin minimal of type stdout, v2.0 from /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/callback/minimal.py
2024-04-18 06:28:48,366 p=1833 u=xxxxxx n=ansible | Skipping callback 'default', as we already have a stdout callback.
2024-04-18 06:28:48,366 p=1833 u=xxxxxx n=ansible | Skipping callback 'minimal', as we already have a stdout callback.
2024-04-18 06:28:48,366 p=1833 u=xxxxxx n=ansible | Skipping callback 'oneline', as we already have a stdout callback.
2024-04-18 06:28:48,968 p=1833 u=xxxxxx n=ansible | redirecting (type: connection) ansible.builtin.netconf to ansible.netcommon.netconf
2024-04-18 06:28:48,969 p=1833 u=xxxxxx n=ansible | Loading collection ansible.netcommon from /home/xxxxxx/.ansible/collections/ansible_collections/ansible/netcommon
2024-04-18 06:28:48,976 p=1833 u=xxxxxx n=ansible | Loading collection ansible.utils from /home/xxxxxx/.ansible/collections/ansible_collections/ansible/utils
2024-04-18 06:28:49,093 p=1833 u=xxxxxx n=ansible | redirecting (type: netconf) ansible.builtin.default to ansible.netcommon.default
2024-04-18 06:28:49,155 p=1833 u=xxxxxx n=ansible | redirecting (type: modules) ansible.builtin.netconf_get to ansible.netcommon.netconf_get
2024-04-18 06:28:49,158 p=1833 u=xxxxxx n=ansible | redirecting (type: action) ansible.builtin.netconf to ansible.netcommon.netconf
2024-04-18 06:28:49,159 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> Using network group action netconf for netconf_get
2024-04-18 06:28:49,159 p=1833 u=xxxxxx n=ansible | redirecting (type: action) ansible.builtin.netconf to ansible.netcommon.netconf
2024-04-18 06:28:49,167 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> attempting to start connection
2024-04-18 06:28:49,167 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> using connection plugin ansible.netcommon.netconf
2024-04-18 06:28:49,167 p=1833 u=xxxxxx n=ansible | Found ansible-connection at path /usr/bin/ansible-connection
2024-04-18 06:28:49,694 p=1842 u=xxxxxx n=ansible | [DEPRECATION WARNING]: PlayContext.verbosity is deprecated, use
ansible.utils.display.Display.verbosity instead. This feature will be removed
in version 2.18. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
2024-04-18 06:28:49,839 p=1846 u=xxxxxx n=ansible | shutdown complete
2024-04-18 06:28:49,930 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> local domain socket does not exist, starting it
2024-04-18 06:28:49,931 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> control socket path is /home/xxxxxx/.ansible/pc/0cc22c104a
2024-04-18 06:28:49,931 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> 1842 1713436129.69986: trying /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/connection/pycache
1842 1713436129.70022: trying /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/connection
1842 1713436129.73102: trying /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/doc_fragments
1842 1713436129.73228: Loading ModuleDocFragment 'connection_pipelining' from /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/doc_fragments/connection_pipelining.py
1842 1713436129.73276: Loaded config def from plugin (connection/ssh)
1842 1713436129.73281: Loading Connection 'ssh' from /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/connection/ssh.py (searched paths: /home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/connection/pycache:/home/xxxxxx/.local/lib/python3.10/site-packages/ansible/plugins/connection) (found_in_cache=False, class_only=True)

2024-04-18 06:28:49,931 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> local domain socket path is /home/xxxxxx/.ansible/pc/0cc22c104a
2024-04-18 06:28:49,931 p=1833 u=xxxxxx n=ansible | redirecting (type: action) ansible.builtin.netconf to ansible.netcommon.netconf
2024-04-18 06:28:49,932 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> ANSIBLE_NETWORK_IMPORT_MODULES: enabled
2024-04-18 06:28:49,932 p=1833 u=xxxxxx n=ansible | redirecting (type: modules) ansible.builtin.netconf_get to ansible.netcommon.netconf_get
2024-04-18 06:28:49,968 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> ANSIBLE_NETWORK_IMPORT_MODULES: found netconf_get at /home/xxxxxx/.ansible/collections/ansible_collections/ansible/netcommon/plugins/modules/netconf_get.py
2024-04-18 06:28:49,968 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> ANSIBLE_NETWORK_IMPORT_MODULES: running netconf_get
2024-04-18 06:28:49,970 p=1833 u=xxxxxx n=ansible | <10.xx.yy.zz> ANSIBLE_NETWORK_IMPORT_MODULES: complete
2024-04-18 06:28:49,977 p=1833 u=xxxxxx n=ansible | test01 | FAILED! => {
"changed": false,
"module_stderr": "socket path /home/xxxxxx/.ansible/pc/0cc22c104a does not exist or cannot be found. See Troubleshooting socket path issues in the Network Debug and Troubleshooting Guide",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
}

@Ruchip16
Copy link
Contributor

@ekevalo can you please update the issue with the following list of information:

  1. what ansible version are you using?
  2. what netcommon version are you using?
  3. your existing device configuration
  4. playbook

@Ruchip16 Ruchip16 added the needs_info This issue requires further information. Please answer any outstanding questions. label Apr 25, 2024
@ekevalo
Copy link
Author

ekevalo commented Apr 25, 2024

  • what ansible version are you using?
    ansible [core 2.16.5]
  • what netcommon version are you using?
    6.0.0
  • your existing device configuration
    No device configuration. Wanted to use default configuration. I can get response when using python script with ncclient.
  • playbook
    I get the error even with ad-hoc command with netconf_get module.

@ekevalo
Copy link
Author

ekevalo commented May 16, 2024

@Ruchip16
I noticed this problem is only occurring in ansible-core 2.15 and 2.16. When I downgraded to 2.14 pip install ansible-core==2.14.16 , the problem disappeared and my tasks are working fine. Something is wrong with socket creation in 2.15 and 2.16. Immediately I upgrade with pip install ansible-core==2.16.6 or pip install ansible-core==2.15 the problem re-occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_info This issue requires further information. Please answer any outstanding questions.
Projects
None yet
Development

No branches or pull requests

2 participants