Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdout maxBuffer length exceeded #66

Open
cryptowhizzard opened this issue Aug 23, 2022 · 5 comments
Open

stdout maxBuffer length exceeded #66

cryptowhizzard opened this issue Aug 23, 2022 · 5 comments
Labels
question Further information is requested

Comments

@cryptowhizzard
Copy link

Error:
class: class RangeError
stack:
RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
at new NodeError (node:internal/errors:372:5)
at Socket.onChildStdout (node:child_process:461:14)
at Socket.emit (node:events:527:28)
at Socket.emit (node:domain:475:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:285:11)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

@shanebdavis
Copy link
Member

Can you provide more details? Your full s3p command-line with all the options would help a great deal tracking this down. Also, if you can, share your s3p summarize results. That'll give me a hint where to look for the bug.

@shanebdavis shanebdavis added the question Further information is requested label Dec 19, 2022
@HMJiangGatech
Copy link

same problem here

duration:       0.3522348999977112
items:          192
itemsPerSecond: 545
requests:       2
size:           2755628011680
maxSize:        14902834199
minSize:        14168713555
maxSizeKey:
  ...

minSizeKey:
  ...

sizeHistogram: gigabytes: items:  192,     size:    2755628011680, 1gB: 0, 2gB: 0, 4gB: 0, 8gB: 0, 16gB: 192, 32gB: 0, 64gB: 0, 128gB: 0, 256gB: 0, 512gB: 0
averageSize:   1467327339
human:         size:      2.51tB, maxSize: 13.88gB, minSize:       13.20gB, averageSize: 1.37gB

@shanebdavis
Copy link
Member

Can you provide more details? Your full s3p command-line with all the options would help a great deal tracking this down.

@shanebdavis
Copy link
Member

A little bit of research. It seems it comes from Node's Exec function, which I use to copy larger files using aws's cli. The default is 1 megabyte, which surprises me that isn't enough.

Does this happen every time? It sounds more like there was an error that wasn't properly reported.

If it does happen every time, I can try upping the maxBuffer setting and then you can try it and let me know if that helped.

@bueti
Copy link

bueti commented Aug 22, 2024

I ran into this as well.

Command:

npx s3p sync --bucket some-bucket --prefix some-prefix --to-folder /a/local/path

the files to copy are about 10GiB each (slightly over 200 files).

this issue did not happen when I synced the bucket from one region to another.

edit: thank you so much for this tool. cross-region sync was massively sped up by s3p!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants