question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Patching system watchers for the `ENOSPC` error when running expo/expo-github-action@v6

See original GitHub issue

Description of the bug

expo-github-action fails with Error: Error: The process '/usr/local/bin/yarn' failed with exit code null when running on GitHub Actions. Updating node to 16.x did not solve the issue. https://github.com/expo/expo-github-action/issues/132#issuecomment-992245294

Also, I tried patch-watchers: false but it resulted in an error as well. With patch-watchers: false, the below error was thrown with no detailed info.

Error: Error: The process '/usr/local/bin/yarn' failed with exit code null

To Reproduce

Running the below workflow on GitHub Actions.

name: EAS build
on:
  workflow_dispatch:

jobs:
  build:
    name: Create new build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 14.x
      - uses: expo/expo-github-action@v6
        with:
          expo-version: latest
          eas-version: latest
          token: ${{ secrets.EXPO_TOKEN }}

Expected behavior

Runs without errors.

Actual behavior

The action fails with the following error:

Run expo/expo-github-action@v6
  with:
    expo-version: latest
    eas-version: latest
    token: ***
    expo-cache: false
    eas-cache: false
    packager: yarn
    patch-watchers: true
Installing expo-cli (5.0.3) with yarn
Installing eas-cli (0.43.0) with yarn
Checking current authenticated account
Patching system watchers for the `ENOSPC` error
  Patching system watchers for the `ENOSPC` error...
  /usr/bin/sudo sysctl fs.inotify.max_user_instances=524288
  Error: Error: The process '/usr/local/bin/yarn' failed with exit code null
  fs.inotify.max_user_instances = 524288
  /usr/bin/sudo sysctl fs.inotify.max_user_watches=524288
  fs.inotify.max_user_watches = 524288
  /usr/bin/sudo sysctl fs.inotify.max_queued_events=524288
  fs.inotify.max_queued_events = 524288
  /usr/bin/sudo sysctl -p
  vm.max_map_count = 262144

Additional context

We did not experience this error last night. I’m not actually sure if this is caused by expo-github-action, some changes to GitHub Actions, or our repo. At the moment we run eas build locally but would like to be able to build via GitHub Actions.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kennethlynnecommented, Jan 6, 2022

Be ware we noticed the same problem, but for us it was in fact the install step that failed, not the patching. The logs could be improved. What you initially see: image

What you see when you expand the steps: image

Might not be your problem, but might be relevant for someone

1reaction
byCedriccommented, Jan 7, 2022

@kennethlynne can you share these dependency resolutions? I tried to reproduce the issue locally with the same Node and yarn versions, but on both Windows and macOS I couldn’t reproduce it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js: what is ENOSPC error and how to solve?
"Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC). It indicates that the VS Code file...
Read more >
Error: ENOSPC: System limit for number of file ... - GitHub
Description The web app compiles but when I reload the website, the compilation end with an error. Steps to reproduce Just type gatsby ......
Read more >
Error: ENOSPC: System limit for number of file watchers ...
Development servers when using hot-reloading/live-reloading will watch directories and files within for changes. If any files happen to change, ...
Read more >
ENOSPC: System limit for number of file watchers reached.
When I was trying to run npm/yarn commands which are supposed to watch file changes (e.g. CSS/SCSS or JavaScript files) then it shows...
Read more >
ENOSPC: System limit for number of file watchers reached in CI
wikibase bridge test:storybook causes Error from chokidar, Error: ENOSPC: System limit for number of file watchers reached in CI. Closed, ResolvedPublic.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found