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.

maxBuffer length exceeded

See original GitHub issue

Hi, I get the below error when running checkoutv2 I always need to delete the contents of the repo for all build. _work/api

Deleting the contents of '/home/ubuntu/actions-runner/_work/api/api'
##[error]stderr maxBuffer length exceeded

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:18
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
lomkjucommented, Jun 11, 2020

Adding the below step before the checkout step fixed the problem. It would be a hack until this is fixed or know why this is happening? Maybe the docker image checkouts the branch as root?

    - name: cleanup #https://github.com/actions/checkout/issues/211
      run: |
        sudo chown -R $USER:$USER $GITHUB_WORKSPACE

The logs for the same. The list is huge for permissions denied just pasting the top ones.

Run actions/checkout@v2
Syncing repository: ***********
Getting Git version info
/usr/bin/git config --local --get remote.origin.url
https://github.com/*******/*******
Removing previously created refs, to avoid conflicts
Cleaning the repository
##[warning]Unable to clean or reset the repository. The repository will be recreated instead.
Deleting the contents of '/home/ubuntu/actions-runner/_work/api/api'
##[error]Command failed: rm -rf "/home/ubuntu/actions-runner/_work/api/api/storage"
rm: cannot remove '/home/ubuntu/actions-runner/_work/api/api/storage/************': Permission denied
rm: cannot remove '/home/ubuntu/actions-runner/_work/api/api/storage/l*************': Permission denied

1reaction
imollmcommented, Mar 18, 2022

My solution has been to add a step in pipeline executing a SSH command to delete project folder in _work folder (first step of them)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stdout buffer issue using node child_process - Stack Overflow
maxBuffer specifies the largest amount of data allowed on stdout or stderr - if this value is exceeded then the child process is...
Read more >
ERROR: stdout maxBuffer length exceeded - Questions - n8n
I am running a bash command as an Execute Command Node - when executing the node it keeps displaying maxBuffer length exceeded.
Read more >
"stdout maxBuffer length exceeded" - HELP PLEASE : r/node
I am trying to build an iOS app in Xcode and getting the above error. I have tried updating node however this causes...
Read more >
Build failing on Mac 'stdout maxBuffer length exceeded'
Build failing on Mac 'stdout maxBuffer length exceeded' · Ionic Framework · tofra March 31, 2020, 1:40pm #1. When I run cordova build...
Read more >
stderr maxBuffer length exceeded - Q & A | Audiokinetic
2.1657 on an iMac with Apple M1 Chip and macOS BigSur version 11.6.4 as OS. I get the following error: stderr maxBuffer length...
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