EMFILE: too many open files, watch '/logs/traefik.log error on backend (traefik-log-dashboard discussion #17)

:speech_balloon: GitHub discussion traefik-log-dashboard #17 in Help, started by arcoast on GitHub

Hi, not a Pangolin user, but trying to get this stood up with my own longstanding Traefik stack. I’m clearly doing something wrong and would really appreciate it if someone could take a look and see if they can spot where I’m failing!

My traefik setup

networks:
    traefik:
        external: false
        name: traefik
        ipam:
            driver: default
            config:
                - subnet: 10.87.210.0/24
                #   gateway: 10.87.210.254

services:
    traefik:
        image: traefik
        container_name: traefik
        networks:
            traefik:
                ipv4_address: 10.87.210.253
        command:
            - --log.level=info
            - --global.checknewversion=true
            - --global.sendanonymoususage=false
            - --serversTransport.insecureSkipVerify=true
            # API
            - --api.dashboard=true
            - --api.insecure=false
            # Entrypoint - websecure
            - --entryPoints.websecure.address=:443
            - --entryPoints.websecure.forwardedHeaders.trustedIPs=127.0.0.1/32, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8
            - --entryPoints.websecure.transport.respondingTimeouts.readTimeout=0s
            - --entryPoints.websecure.http.tls.certResolver=letsencrypt-cloudflare-dns
            - --entryPoints.websecure.http.tls.domains[0].main=${DOMAIN}
            - --entryPoints.websecure.http.tls.domains[0].sans=*.${DOMAIN} 
            # Certs - Cloudflare
            - …

---
💬 Join in here or [on GitHub](https://github.com/hhftechnology/traefik-log-dashboard/discussions/17).
<!-- hhf-forum-sync -->

hhftechnology commented on GitHub:

why two mounts??

arcoast commented on GitHub:

Well I saw both referenced in the docs/yaml files so was just trying anything at that point!

EDIT: Tried with both of them individually with the same error message

arcoast commented on GitHub:

I’d like to update this with details of a resolution, I looked at inodes etc on host thinking that might be the issue, but nothing apparent, in the end I shutdown all my other docker containers (other than Traefik) and then tried and it worked.

I can only conclude it was a host/docker engine issue with regards to the number of files being utilised.