Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Error Encountered: EMFILE: too many open files #6262

Open
1 task
yan-pi opened this issue May 1, 2024 · 0 comments
Open
1 task

[Bug?]: Error Encountered: EMFILE: too many open files #6262

yan-pi opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yan-pi
Copy link

yan-pi commented May 1, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

Description:

Overview:
When attempting to run yarn dev in my project, which integrates PayloadCMS and Docker, I encountered the following error:

➜  backend-adm git:(feature-ses-email) ✗ yarn run dev
yarn run v1.22.22
$ cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon
[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts
[nodemon] starting `ts-node src/server.ts`
[nodemon] Internal watch failed: EMFILE: too many open files, watch '/home/yan/Documentos/repos/sats/backend-adm'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error Message:

Internal watch failed: EMFILE: too many open files, watch '/home/yan/Documentos/repos/sats/backend-adm'

Expected Behavior:
The development server should start without encountering any errors related to "too many open files."

Any guidance or suggestions on resolving this issue would be greatly appreciated. Thank you!

To reproduce

Steps to Reproduce:

Should Clone the project repository (its private so i cant provide).
Install dependencies (yarn install).
Ensure Docker is running and all necessary services are up.
Verify the configuration files (payload.config.ts, Dockerfile, etc.).
Run yarn dev.
Observe the error message mentioned above.

Environment

System:
  OS: Fedora Linux 39 (Workstation Edition) x86_64 
  Kernel: 6.8.6-200.fc39.x86_64

Enviroment:
  yarn: v1.22.22
  NVM: 0.39.1
  Node: v20.11.1
  Payload: ^1.11.7
  Docker: Docker version 26.0.2, build 3c863ff

Additional context

➜  ~ ulimit
unlimited
@yan-pi yan-pi added the bug Something isn't working label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant