# Error: socket path /home/user/.ansible/pc/ebf6fe2904 does not exist or cannot be found

**URL:** <https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559>\
**Category:** Get Help\
**Tags:** playbook, ansible-core\
**Created:** [October 29, 2024, 8:15am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559 "2024-10-29T08:15:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 29, 2024, 8:15am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/1 "2024-10-29T08:15:06Z")

</div>

`FAILED! => {"changed": false, "msg": "socket path /home/user/.ansible/pc/ebf6fe2904 does not exist or cannot be found. See Troubleshooting socket path issues in the Network Debug and Troubleshooting Guide"}`

I get this error when im sending a command to an Alcatel network switch. But this error is new because 3 days ago everything worked and i even set the connection timeout to 600 seconds.  
Ansible should also have access to /home/user/.ansible/pc

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 29, 2024, 9:20am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/2 "2024-10-29T09:20:19Z")

</div>

I believe Ansible is trying to create

> [@philly](#):
>
> home/user/.ansible/pc

on the network device.  
Have you configured the ansible\_network\_os and ansible\_connection parameters?  
[https://docs.ansible.com/ansible/latest/network/user\_guide/network\_best\_practices\_2.5.html](https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html)

---

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 29, 2024, 9:39am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/3 "2024-10-29T09:39:32Z")

</div>

Yes i have configured in the inventory the ansible\_network\_os and the ansible\_connection  
Im wondering because 3 days ago everything worked now it doesn’t matter which playbook i run i get the same error

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 29, 2024, 9:48am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/4 "2024-10-29T09:48:19Z")

</div>

Can you post an example of a task that is failing along with the ansible version you are using?

---

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 29, 2024, 9:55am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/5 "2024-10-29T09:55:15Z")

</div>

file hosts

```auto
[aos6]
192.158.1.2

[aos8]
192.158.1.5

[all:vars]
ansible_user=User123
ansible_password={{ssh_password}}
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=alcatel.aos8.aos8
ansible_python_interpreter=/usr/bin/python3

```

playbook

```auto
---
- hosts: all
  gather_facts: false
  ignore_errors: true
  vars_files:
   - ~/ansible/inventory/vault.yaml
  tasks:
  - name: show run dir
    alcatel.aos8.aos8_command:
      commands:
        - show running-directory
    register: command_output

  - name: Command output parsing to extract SYNCHRO/NOT SYNCHRO
    set_fact:
      synchronization_status: "{{ command_output.stdout_lines | join('\n') | regex_search('Running Configuration *: (NOT )?SYNCHRONIZED') }}"

  - name: Execute write mem flash-synchro if not synchronized
    when: synchronization_status is match and "NOT SYNCHRONIZED" in synchronization_status
    block:
      - name: Execute command on the switch
        alcatel.aos8.aos8_command:
          commands:
            - write memory flash-synchro
        register: command_output2
        #failed_when: "'ERROR' in command_output2.stdout_lines | join('\n')"

```

ansible version

```auto
  5169 1730195699.26123: starting run
ansible [core 2.17.5]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/user/.local/lib/python3.10/site-packages/napalm_ansible/modules']
  ansible python module location = /home/user/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

```

ansible config (/etc/ansible/ansible.cfg)

```auto
[defaults]
vault_password_file = /home/user/ansible/inventory/vault.yaml
#password = /home/user/ansible/inventory/vault.yml
ansible_user = User123
#ansible_password = {{ vault_ssh_password }}
inventory= ~/ansible/inventory/hosts
interpreter_python = /usr/bin/python3
library = /home/user/.local/lib/python3.10/site-packages/napalm_ansible/modules
action_plugins = /home/user/.local/lib/python3.10/site-packages/napalm_ansible/plugins/action
host_key_checking = False
#vault_password_file = /home/user/ansible/inventory/vault.yml
ask_vault_pass = True
#inventory = /home/user/ansible/inventory/hosts
#log = /home/user/ansible/log/ansible.log

[persistent_connection]
connect_timeout = 36000
command_timeout = 36000

```

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 29, 2024, 11:06am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/6 "2024-10-29T11:06:00Z")

</div>

Do you have a link to the `alcatel.aos8` collection? Can’t seem to find it on [https://galaxy.ansible.com/](https://galaxy.ansible.com/).

---

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 29, 2024, 12:08pm UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/7 "2024-10-29T12:08:35Z")

</div>

Hi the collection is from the Alcatel Team but is not available for the public

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 29, 2024, 1:07pm UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/8 "2024-10-29T13:07:59Z")

</div>

Ok. Then you should ask the Alcatel Team if they have done any changes to the collection.

---

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 30, 2024, 5:49am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/9 "2024-10-30T05:49:37Z")

</div>

Hi thanks for your reply but the collection didn’t change because we just downloaded it manually without getting it automatically updated

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 30, 2024, 6:06am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/10 "2024-10-30T06:06:11Z")

</div>

This forum and Ansible are both open-source. It´s hard to help you when you are using a collection that is closed-sourced and unavailable to the public.

---

<div class="post-metadata">

**Author:** ![philly](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@philly](https://forum.ansible.com/u/philly)\
**Post date:** [October 30, 2024, 6:17am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/11 "2024-10-30T06:17:37Z")

</div>

Yes i know thanks for trying but i have found something which could fix the problem. I created a new venv and now the playbook works perfectly fine.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [November 29, 2024, 6:18am UTC](https://forum.ansible.com/t/error-socket-path-home-user-ansible-pc-ebf6fe2904-does-not-exist-or-cannot-be-found/10559/12 "2024-11-29T06:18:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
