# Failed to load plugins in pod

**URL:** <https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695>\
**Category:** Traefik v2\
**Tags:** plugin\
**Created:** [March 3, 2024, 2:20pm UTC](https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695 "2024-03-03T14:20:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 3, 2024, 2:20pm UTC](https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695/1 "2024-03-03T14:20:51Z")

</div>

Hi All,

I am deploying Traefik as deployment and loading the plugins files from configmaps, the configmap is mounted successfully but failed to load the plugins:

> time="2024-03-03T14:13:13Z" level=error msg="Plugins are disabled because an error has occurred." error="1 error occurred:\n\t\* failed to open the plugin manifest plugins-local/src/tlsauth/.traefik.yml: open plugins-local/src/tlsauth/.traefik.yml: no such file or directory\n\n"

As it says in local plugin:

> The plugins must be placed in `./plugins-local` directory, which should be in the working directory of the process running the Traefik binary.

In the pod, the file and directory do exist in the same folder with binary file:

> /usr/local/bin/plugins-local/src/tlsauth # ls -al  
> total 12  
> drwxr-xr-x 2 root root 55 Mar 3 14:13 .  
> drwxr-xr-x 3 root root 21 Mar 3 14:13 ..  
> -rw-r--r-- 1 root root 1020 Mar 3 14:13 .traefik.yml  
> -rw-r--r-- 1 root root 44 Mar 3 14:13 go.mod  
> -rw-r--r-- 1 root root 2668 Mar 3 14:13 main.go

Then what the file should be mounted to?

---

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 4, 2024, 3:54pm UTC](https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695/2 "2024-03-04T15:54:45Z")

</div>

Guys, any hints for this?

---

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 4, 2024, 4:26pm UTC](https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695/3 "2024-03-04T16:26:58Z")

</div>

I managed to find that the folder of "plugins-local" must be mounted to "/" instead of others:

volumeMounts:

```auto
- name: traefik-plugin
  mountPath: /plugins-local/src/tlsauth/.traefik.yml
  subPath: .traefik.yml

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [March 7, 2024, 4:27pm UTC](https://community.traefik.io/t/failed-to-load-plugins-in-pod/21695/4 "2024-03-07T16:27:32Z")

</div>

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