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

"Cannot run program mongo : Argument list too long" when use --mongo-save-output with large output #90

Closed
mrenou4sh opened this issue Oct 8, 2020 · 2 comments · Fixed by #113
Assignees
Labels
bug Something isn't working execute mongo Mongo driver

Comments

@mrenou4sh
Copy link
Contributor

We use directly command mongo to store executed-script, but if the output is too large, we explode the buffer of the command line.

Moreover, a mongo document max size is 16 Mb, may be we should store output in grid fs ?

@Lysoun Lysoun added mongo Mongo driver bug Something isn't working execute labels Oct 8, 2020
@Lysoun
Copy link
Member

Lysoun commented Nov 10, 2020

This bug was discussed today with the team and will be tackled in the next release. For now, to ensure Datamaintain does not crash when it happens, an output max size is going to be added. Do you have an example that could be used to test that size? @mrenou4sh

I am creating an issue about the logs that will be resolved.

@Lysoun Lysoun mentioned this issue Nov 10, 2020
@mrenou4sh
Copy link
Contributor Author

I have some script in my projects but it's hard to reproduce with them. The simpler way to reprodure is to write a script which prints lot of text.

Moreover, the saved content should be stored into gridfs to avoid the 16 mo limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working execute mongo Mongo driver
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants