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

#1

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: http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/ .

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
0 Likes

#2

Hi @Divya.jain!

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

0 Likes