# Could not find or access '/var/lib/awx/projects

**URL:** <https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [July 17, 2024, 8:16am UTC](https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310 "2024-07-17T08:16:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thepacho](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@thepacho](https://forum.ansible.com/u/thepacho)\
**Post date:** [July 17, 2024, 8:16am UTC](https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310/1 "2024-07-17T08:16:05Z")

</div>

Hello. Friends.  
I have an Error with awx 23.4.0 currently I have it installed on only node with k3s and I installed it using storageclass hostPath storageClassName: awx-projects-volume  
hostPath:  
path: /data/projects  
My question is how can I use local files so that they can work or be read from my project. My project is on GitHub and syncs well but I cannot use the local files from the /data/projects directory on my server. When I run my playbook, it generates the following error. Could not find or access '/var/lib/awx/projects it’s like it can’t find the path now on my server side the /data/projects directory is mounted in the container in /var/lib/awx/projects however when Executing tasks is as if the route does not enter, any help?

```auto
- my code!

 - hosts: "{{ servers | replace('\n',',') }}"
   gather_facts: false
   tasks:
   - name: copy file
     copy:
       src: /var/lib/awx/projects/_12__krs_trura_infra/projects/fs-lvm/fferrin1.txt
       dest: /tmp/fferrin2.txt
```

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [July 17, 2024, 12:30pm UTC](https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310/2 "2024-07-17T12:30:53Z")

</div>

Hi, try the _“Case 1: Read and write files on K3s host during Jobs”_ in my guide: [awx-on-k3s/containergroup at main · kurokobo/awx-on-k3s · GitHub](https://github.com/kurokobo/awx-on-k3s/tree/main/containergroup#case-1-read-and-write-files-on-k3s-host-during-jobs)

Your playbook is launched in the ephemeral automation job pod instead of task nor web pod.  
Once you place files in `/data/projects` on K3s host, they can indeed be available  
on the web and task pods.

However, when a job is executed, for SCM-based projects, only the necessary files managed by SCM are transferred to a different path in the ephemeral automation job pod and executed.  
Therefore, even if you place files in `/data/projects` , those files cannot be used within playbooks for SCM-based projects.

The guide I provided above introduces steps to mount `/data/work` on the K3s host to the ephemeral automation job pod.

---

<div class="post-metadata">

**Author:** ![thepacho](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@thepacho](https://forum.ansible.com/u/thepacho)\
**Post date:** [July 17, 2024, 8:41pm UTC](https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310/3 "2024-07-17T20:41:25Z")

</div>

Thanks, Kuro, this helped me a lot.

---

<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:** [August 16, 2024, 8:41pm UTC](https://forum.ansible.com/t/could-not-find-or-access-var-lib-awx-projects/7310/4 "2024-08-16T20:41:43Z")

</div>

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