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.

ENOBUFS error when the to be committed files exceed 1MB

See original GitHub issue

I am trying to commit the docs folder generated in a previous step. This throws the following error after 1s on execFileSync. I found that ENOBUFS is thrown when the maxBuffer (1MB by default) gets exceeded.

This happens to be the case here. When only committing a single HTML file from the docs folder, the action succeeds as expected.

Possible solution The buffer size can be specified as an option with execFileSync. More in the docs of Node.js. Setting an increased maxBuffer might solve the issue.

Run EndBug/add-and-commit@v4
    add: docs
    author_name: Github Workflow Bot
    message: build docs and dist
    cwd: .
    force: false
Using 'Github Workflow Bot <>' as author.
Error: spawnSync /home/runner/work/_actions/EndBug/add-and-commit/v4/lib/ ENOBUFS
    at Object.spawnSync (internal/child_process.js:1041:20)
    at spawnSync (child_process.js:607:24)
    at Object.execFileSync (child_process.js:634:15)
    at Object.131 (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:576)
    at __webpack_require__ (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:154)
    at startup (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:291)
    at module.exports.87 (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:323)
    at Object.<anonymous> (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:333)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)

My workflow yml:

name: Build and release

    # branches:
    #   - master
      - 'docs/**'

    name: Node 12
    runs-on: ubuntu-latest
      - name: Checkout
        uses: actions/checkout@v2

      - name: Sync packages with cache
        uses: actions/cache@v1
          path: ./node_modules
          key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
          restore-keys: ${{ runner.os }}-node_modules-

      - name: Install packages
        run: yarn install --frozen-lockfile

      - name: Build the docs
        run: yarn document

      - name: Commit docs
        uses: EndBug/add-and-commit@v4
          add: 'docs'
          author_name: Github Workflow Bot
          message: 'build docs'
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

EndBugcommented, May 1, 2020

The fix has been published in a new release! you can get the fixed version using v4.0.3, v4 or latest. Thanks for your contribution ❤️

allcontributors[bot]commented, Jul 10, 2020


I’ve put up a pull request to add @RobinWijnant! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 error from Github.js getSha for files above ~1MB in size
It throws a 403 Forbidden error because it uses Github GET contents API which gives results for file not exceding 1Mo.
Read more >
You just committed a large file and can't push to GitHub
But oops, GitHub complains that you are trying to commit files larger than 50 Mb and even grinds to a halt if they...
Read more >
Outlook gives error Attachment size exceeds limit whereas ...
It gives an error message "the file exceeds your attachment limit" whereas the attachment size is just 1 MB and as per my...
Read more >
Compress / Reduce a PDF When Documents Exceed The File ...
There's a limit to how much a file can be compressed. A 100mb document may not be able to be compressed to a...
Read more >
Changing the File Upload Size Limit - Jotform
When uploading a project file, a Maximum File Size Exceeded error displays ... I want to change my upload file size to be...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found