Issue from step "cache-push" for build apk

When my pipeline to step “cache-push”, I got 2 issue from this step

  1. Got the warning “too many open files in system”

Generating cache archive

Failed to populate archive: failed to lstat(/Users/vagrant/.gradle/wrapper/dists/gradle-4.6-all/bcst21l2brirad8k2ben1letg/gradle-4.6/src/platform-native/org/gradle/nativeplatform/toolchain/GccPlatformToolChain.java), error: lstat /Users/vagrant/.gradle/wrapper/dists/gradle-4.6-all/bcst21l2brirad8k2ben1letg/gradle-4.6/src/platform-native/org/gradle/nativeplatform/toolchain/GccPlatformToolChain.java: too many open files in system

WARN[09:40:16] Step (cache-push@2.2.0) failed, but was marked as skippable

  1. List file for cache step is not follow from configuration

From LOGS

Config:

  • Paths: /Users/vagrant/.gradle
    ./android/.gradle

/Users/vagrant/.gradle → /Users/vagrant/git/gradle.deps
/Users/vagrant/.kotlin → /Users/vagrant/git/gradle.deps
/Users/vagrant/.m2 → /Users/vagrant/git/gradle.deps
/Users/vagrant/.android/build-cache → /Users/vagrant/git/gradle.deps
/Users/vagrant/git/android/.gradle
/Users/vagrant/git/android/app/build
/Users/vagrant/git/android/app/build/intermediates/transforms/FirebasePerformancePlugin/release/50/com/facebook/react/common/build
/Users/vagrant/git/android/app/build/intermediates/transforms/dexBuilder/release/50/com/facebook/react/common/build
/Users/vagrant/git/android/build
/Users/vagrant/git/local_modules/react-native-line-sdk/android/build
/Users/vagrant/git/node_modules/babel-jest/build
/Users/vagrant/git/node_modules/babel-plugin-jest-hoist/build
/Users/vagrant/git/node_modules/babel-register/node_modules/core-js/build
/Users/vagrant/git/node_modules/babel-runtime/node_modules/core-js/build
/Users/vagrant/git/node_modules/circular-json/build
/Users/vagrant/git/node_modules/core-js/build
/Users/vagrant/git/node_modules/expect/build
/Users/vagrant/git/node_modules/fbjs-scripts/node_modules/core-js/build
/Users/vagrant/git/node_modules/ftp/node_modules/isarray/build
/Users/vagrant/git/node_modules/jest/build
/Users/vagrant/git/node_modules/jest/node_modules/jest-cli/build
/Users/vagrant/git/node_modules/jest/node_modules/jest-haste-map/build
/Users/vagrant/git/node_modules/jest-changed-files/build
/Users/vagrant/git/node_modules/jest-config/build
/Users/vagrant/git/node_modules/jest-config/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-diff/build
/Users/vagrant/git/node_modules/jest-diff/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-docblock/build
/Users/vagrant/git/node_modules/jest-each/build
/Users/vagrant/git/node_modules/jest-each/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-environment-jsdom/build
/Users/vagrant/git/node_modules/jest-environment-node/build
/Users/vagrant/git/node_modules/jest-get-type/build
/Users/vagrant/git/node_modules/jest-haste-map/build
/Users/vagrant/git/node_modules/jest-jasmine2/build
/Users/vagrant/git/node_modules/jest-jasmine2/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-leak-detector/build
/Users/vagrant/git/node_modules/jest-leak-detector/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-matcher-utils/build
/Users/vagrant/git/node_modules/jest-matcher-utils/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-message-util/build
/Users/vagrant/git/node_modules/jest-mock/build
/Users/vagrant/git/node_modules/jest-react-native/build
/Users/vagrant/git/node_modules/jest-regex-util/build
/Users/vagrant/git/node_modules/jest-resolve/build
/Users/vagrant/git/node_modules/jest-resolve-dependencies/build
/Users/vagrant/git/node_modules/jest-runner/build
/Users/vagrant/git/node_modules/jest-runner/node_modules/jest-haste-map/build
/Users/vagrant/git/node_modules/jest-runtime/build
/Users/vagrant/git/node_modules/jest-runtime/node_modules/jest-haste-map/build
/Users/vagrant/git/node_modules/jest-serializer/build
/Users/vagrant/git/node_modules/jest-snapshot/build
/Users/vagrant/git/node_modules/jest-snapshot/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-util/build
/Users/vagrant/git/node_modules/jest-validate/build
/Users/vagrant/git/node_modules/jest-validate/node_modules/pretty-format/build
/Users/vagrant/git/node_modules/jest-watcher/build
/Users/vagrant/git/node_modules/jest-worker/build
/Users/vagrant/git/node_modules/jwt-decode/build
/Users/vagrant/git/node_modules/metro-babel-register/node_modules/core-js/build
/Users/vagrant/git/node_modules/react-devtools-core/build
/Users/vagrant/git/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/common/build
/Users/vagrant/git/node_modules/react-native-agiletech/android/build
/Users/vagrant/git/node_modules/react-native-android-badge/android/build
/Users/vagrant/git/node_modules/react-native-camera/android/.gradle
/Users/vagrant/git/node_modules/react-native-camera/android/build
/Users/vagrant/git/node_modules/react-native-code-push/android/app/build
/Users/vagrant/git/node_modules/react-native-cookies/android/build
/Users/vagrant/git/node_modules/react-native-device-info/android/build
/Users/vagrant/git/node_modules/react-native-document-picker/android/build
/Users/vagrant/git/node_modules/react-native-exit-app/android/build
/Users/vagrant/git/node_modules/react-native-fast-image/android/build
/Users/vagrant/git/node_modules/react-native-fbsdk/android/build
/Users/vagrant/git/node_modules/react-native-fetch-blob/android/build
/Users/vagrant/git/node_modules/react-native-firebase/android/build
/Users/vagrant/git/node_modules/react-native-google-signin/android/build
/Users/vagrant/git/node_modules/react-native-i18n/android/build
/Users/vagrant/git/node_modules/react-native-image-picker/android/.gradle
/Users/vagrant/git/node_modules/react-native-image-picker/android/build
/Users/vagrant/git/node_modules/react-native-interactable/lib/android/build
/Users/vagrant/git/node_modules/react-native-linear-gradient/android/build
/Users/vagrant/git/node_modules/react-native-navigation/android/app/build
/Users/vagrant/git/node_modules/react-native-network-state/android/build
/Users/vagrant/git/node_modules/react-native-onesignal/android/build
/Users/vagrant/git/node_modules/react-native-orientation/android/build
/Users/vagrant/git/node_modules/react-native-photo-view/android/build
/Users/vagrant/git/node_modules/react-native-restart/android/build
/Users/vagrant/git/node_modules/react-native-vector-icons/android/build
/Users/vagrant/git/node_modules/react-native-view-pdf/android/build
/Users/vagrant/git/node_modules/send/node_modules/mime/build
/Users/vagrant/git/node_modules/smart-buffer/build

  • IgnoredPaths: /Users/vagrant/.gradle/caches/.lock
    /Users/vagrant/.gradle/caches/
    .bin
    ./android/.gradle/.lock
    ./android/.gradle/
    .bin

~/.gradle/**
~/.android/build-cache/**
.lock
.bin
//build/.json
//build/.html
//build/.xml
//build/.properties
//build//zip-cache/

*.log
.txt
.rawproto
!
.ap_
!
.apk

  • CacheAPIURL: [REDACTED]
  • FingerprintMethodID: file-content-hash
  • CompressArchive: false
  • DebugMode: false
  • StackID:
    Cleaning paths
    path does not exists at: /Users/vagrant/.m2
    path does not exists at: /Users/vagrant/.kotlin
    Done in 10.597115859s

Workflow

primary:
steps:
- activate-ssh-key@4.0.3:
run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’
- git-clone@4.0.14: {}
- cache-pull@2.0.1: {}
- npm@1.0.2:
inputs:
- command: install
- script@1.1.5: {}
- gradle-runner@1.9.0:
inputs:
- cache_level: all
- gradle_options: ‘’
- gradle_task: assembleRelease
- cache-push@2.2.0:
inputs:
- ignore_check_on_paths: |-
$HOME/.gradle/caches/.lock
$HOME/.gradle/caches/
.bin
./android/.gradle/.lock
./android/.gradle/
.bin
- cache_paths: |-
$HOME/.gradle
./android/.gradle

I try to create new app but file name for step “cache-push” still show same list.

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