Upgrading to RN 0.59 with Android project giving ENOSPC error on Android & Docker Ubuntu 16.04 stack

Bitrise Build Issue Report template

Description of the issue

Building the React Native Module with Android is giving a ENOSPC error on Android & Docker Ubuntu 16.04 stack. Happening only when running on Bitrise, but not locally!

Environment:

Where did the issue happen?

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)

Which build Step causes the issue and which version of the step?

E.g.: Git Clone v3.6.0

Reproducibility

  • Does a ā€œRebuildā€ help? (You can trigger a rebuild from the Buildā€™s page, by clicking the ā€œRebuildā€ button in the top right corner of a finished build) : YES/NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO
  • Does the issue happen sporadically, or every time? :
  • Does upgrading the build Step to the latest version help? : YES/NO
  • When did the issue start? :

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (ā€œTesting with a full clean git cloneā€) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.

Local reproduction: Linux / Android (docker based) stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Running your build locally in Docker - Bitrise Docs .

Build log

Task :App:assembleDebugReact
Compiling react for debug buildā€¦
fs.js:1384
throw error;
^
Error: watch /bitrise/src/GametimeAndroid/gt-react-native/node_modules/npm/node_modules/libcipm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/encoding ENOSPC
at FSWatcher.start (fs.js:1382:19)
at Object.fs.watch (fs.js:1408:11)
at NodeWatcher.watchdir (/bitrise/src/GametimeAndroid/gt-react-native/node_modules/metro/node_modules/sane/src/node_watcher.js:159:22)
at Walker. (/bitrise/src/GametimeAndroid/gt-react-native/node_modules/metro/node_modules/sane/src/common.js:109:31)
at emitTwo (events.js:126:13)
at Walker.emit (events.js:214:7)
at /bitrise/src/GametimeAndroid/gt-react-native/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/bitrise/src/GametimeAndroid/gt-react-native/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:135:15)
Task :App:assembleDebugReact FAILED
FAILURE: Build failed with an exception.

  • Where:
    Build file ā€˜/bitrise/src/GametimeAndroid/App/build.gradleā€™ line: 391

Hi @Divya.jain!

Really sorry about the issue. Can you please send us a build URL we could take a look at?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.