Open tpdud406 opened 1 week ago
@T-Mook
ERROR [unhandledRejection] EMFILE: too many open files
가 발생하더니 정상 실행이 안되고 있습니다.
yarn dev
yarn run v1.22.21
$ nuxt dev
Nuxt 3.13.2 with Nitro 2.9.7 12:39:16 PM
12:39:16 PM
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
➜ DevTools: press Shift + Option + D in the browser (v1.6.0) 12:39:17 PM
[12:39:18 PM] ERROR [unhandledRejection] EMFILE: too many open files, watch '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/@nuxtjs/vuetify/node_modules/vuetify/es5/locale/en.js.map'
at __node_internal_captureLargerStackTrace (node:internal/errors:497:5)
at __node_internal_uvException (node:internal/errors:553:10)
at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
at watch (node:fs:2392:36)
at createFsWatchInstance (node_modules/unstorage/node_modules/chokidar/src/handler.ts:163:12)
at setFsWatchListener (node_modules/unstorage/node_modules/chokidar/src/handler.ts:228:15)
at NodeFsHandler._watchWithNodeFs (node_modules/unstorage/node_modules/chokidar/src/handler.ts:398:16)
at NodeFsHandler._handleFile (node_modules/unstorage/node_modules/chokidar/src/handler.ts:460:25)
at NodeFsHandler._addToNodeFs (node_modules/unstorage/node_modules/chokidar/src/handler.ts:735:23)
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/revive-payload.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/revive-payload.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/revive-payload.server.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/revive-payload.server.js'
[12:39:18 PM] ERROR EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/.nuxt/tsconfig.json'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/chunk-reload.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/revive-payload.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/revive-payload.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/head/runtime/plugins/unhead.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/head/runtime/plugins/unhead.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/head/runtime/plugins/unhead.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/head/runtime/plugins/unhead.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/chunk-reload.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/router.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/router.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/router.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/router.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/head/runtime/plugins/unhead.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/head/runtime/plugins/unhead.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/router.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/router.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/dev-server-logs.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/dev-server-logs.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/check-if-layout-used.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/check-if-layout-used.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/dev-server-logs.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/dev-server-logs.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/check-if-layout-used.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/check-if-layout-used.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/dev-server-logs.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/dev-server-logs.js'
[12:39:18 PM] WARN Failed to parse static properties from plugin node_modules/nuxt/dist/app/plugins/check-if-layout-used.js. EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/node_modules/nuxt/dist/app/plugins/check-if-layout-used.js'
[12:39:18 PM] ERROR Cannot start nuxt: EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/.nuxt/types/app.config.d.ts'
at Object.open (node:internal/fs/sync:78:18)
at Object.openSync (node:fs:565:17)
at writeFileSync (node:fs:2288:35)
at node_modules/nuxt/dist/index.mjs:5294:9
at generateApp (node_modules/nuxt/dist/index.mjs:5301:5)
at async _applyPromised (node_modules/perfect-debounce/dist/index.mjs:54:10)
[12:39:18 PM] ERROR [unhandledRejection] EMFILE: too many open files, open '/Users/geta/Desktop/get-A/knowease-inc.github.io/.nuxt/types/app.config.d.ts'
at Object.open (node:internal/fs/sync:78:18)
at Object.openSync (node:fs:565:17)
at writeFileSync (node:fs:2288:35)
at node_modules/nuxt/dist/index.mjs:5294:9
at generateApp (node_modules/nuxt/dist/index.mjs:5301:5)
at async _applyPromised (node_modules/perfect-debounce/dist/index.mjs:54:10)
[12:39:18 PM] ERROR [uncaughtException] EMFILE: too many open files, scandir '/Users/geta/Desktop/get-A/knowease-inc.github.io'
@tpdud406
안되면 일단 패키지 원복 시켜서 디자인 변경 먼저 진행 후 다시 마이그래이션 시도해보려고 합니다..!
현재 Meaniit이랑 같은 모듈들을 저장했는데도 knowease에서만 이 에러가 발생
이 에러는 파일을 열 수 있는 시스템 제한에 도달했을 때 발생하는 EMFILE: too many open files
에러입니다. 이 에러는 일반적으로 다음과 같은 상황에서 나타날 수 있습니다:
파일 시스템 감시 제한 초과: Node.js와 같은 환경에서 파일 변경을 감지하기 위해 watcher
를 설정할 때, 너무 많은 파일을 감시하려고 할 경우 이 제한에 도달할 수 있습니다. 특히 Nuxt나 Vue 프로젝트처럼 많은 파일을 포함하는 경우 이 문제가 더 자주 발생합니다.
파일 핸들 제한 초과: OS에서는 각 프로세스에 대해 열 수 있는 파일의 개수를 제한합니다. 이 경우, watcher
가 필요 이상으로 많은 파일을 열려고 시도하면 이 제한을 초과하게 됩니다.
해결 방법은 다음과 같습니다:
파일 제한 수 조정: macOS나 Linux에서 파일 제한 수를 늘릴 수 있습니다. 터미널에서 다음 명령어로 확인 및 수정이 가능합니다.
ulimit -n 4096 # 혹은 원하는 제한 값으로 설정
이 방법으로 현재 터미널 세션의 파일 열기 제한을 일시적으로 늘릴 수 있습니다.
watcher 옵션 조정: chokidar
나 watch
기능을 사용하는 경우, 불필요한 파일까지 감시하지 않도록 설정을 조정하거나, 특정 디렉터리만 감시하도록 제한할 수 있습니다.
nuxt.config.js
파일에서 chokidar 옵션 조정: watchOptions
를 설정하여 감시할 파일을 제한할 수도 있습니다.
export default {
watchers: {
chokidar: {
usePolling: true,
interval: 1000,
},
},
}
위 방법으로 파일 감시 제한 문제를 해결할 수 있습니다.
[참고]
- 문제: 새 프로젝트 생성 후에도 동일한 에러 발생 (Meaniit 프로젝트는 정상 실행됨)
- Nuxt issue에서 11/1부터 동일한 에러 발생한 것으로 확인
Nuxt issue 동일한 에러 코멘트 , 동일한 에러 코멘트2
저도 gpt한테 물어봤는데
:sparkles: Feature Request
이런 목표를 달성해야 합니다
현재 이런 상태입니다
이 이슈는 이 분이 풀 수 있을 것 같습니다
아래의 세부적인 문제를 풀어야 할 것 같습니다
이 이슈를 해결하기 위해 이런 내용을 참고할 수 있을 것 같습니다
이 이슈 해결을 위해 이정도 시간이 예상됩니다
관련된 세부 정보입니다.
이 이슈를 해결함에 따라 이정도 재무적 영향이 예상됩니다.