Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Traefik error creating file watcher: too many open files, 404 page not found #6553

@matthieu2607

Description

@matthieu2607

Preliminary checklist

Output of ddev debug test

Expand `ddev debug test` diagnostic information
2024-09-18T15:15:52Z INF github.com/traefik/traefik/v3/pkg/server/configurationwatcher.go:73 > Starting provider aggregator aggregator.ProviderAggregator
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-8036
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-8025
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=traefik
2024-09-18T15:15:52Z INF github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:202 > Starting provider *file.Provider
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-8037
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-80
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:203 > *file.Provider provider configuration config={"directory":"/mnt/ddev-global-cache/traefik/config","watch":true}
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-443
2024-09-18T15:15:52Z DBG github.com/traefik/traefik/v3/pkg/server/server_entrypoint_tcp.go:220 > Starting TCP Server entryPointName=http-8026
**2024-09-18T15:15:52Z ERR github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:206 > Cannot start the provider *file.Provider error="error creating file watcher: too many open files"**
2024-09-18T15:15:52Z INF github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:202 > Starting provider *traefik.Provider

Expected Behavior

When you run the ddev start command, you should see the site via the domain name

Actual Behavior

Randomly, when we launch a project, we get a "404 page not found" error when we access it via the domain (the site is displayed via the ip).

Looking at the logs with the command docker logs -f ddev-router, we see the following error:

‘ERR github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:206 > Cannot start the provider *file.Provider error=’error creating file watcher: too many open files’.

We encounter this error on Ubuntu 22.04 and 24.04 and ddev on 1.23.4

Steps To Reproduce

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions