Skip to content

ENOSPC: System limit for number of file watchers reached #5

@sandikodev

Description

@sandikodev
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
internal/fs/watchers.js:226
    throw error;
    ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/runner/work/try-deploy-gayatri/try-deploy-gayatri/node_modules/unimodules-constants-interface/android/build/intermediates/incremental/packageReleaseAssets'
    at FSWatcher.<computed> (internal/fs/watchers.js:218:26)
    at Object.watch (fs.js:1525:34)
    at NodeWatcher.watchdir (/home/runner/work/try-deploy-gayatri/try-deploy-gayatri/node_modules/sane/src/node_watcher.js:159:22)
    at Walker.<anonymous> (/home/runner/work/try-deploy-gayatri/try-deploy-gayatri/node_modules/sane/src/common.js:109:31)
    at Walker.emit (events.js:315:20)
    at /home/runner/work/try-deploy-gayatri/try-deploy-gayatri/node_modules/walker/lib/walker.js:69:16
    at FSReqCallback.oncomplete (fs.js:171:23) {

mention from this

https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached

i think we need some configurable
enospc file watcher limit. that might will be like...
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions