-
Notifications
You must be signed in to change notification settings - Fork 40
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
Internal failure executing runner: fork/exec /bin/zsh: argument list too long #648
Comments
I was using a dev build with stateful/vscode-runme#1475 |
@pastuxso when you have a moment, can you try reproducing this issue, please. Thank you. |
@jlewi Could you please provide me a raw JSON file? The gist contains a truncated example. By the way, I've been trying to use a large dataset (504.3MB) and I haven't replicated it yet. Datasets: https://jsoneditoronline.org/indepth/datasets/json-file-example/ |
I don't think this has anything to do with jq or JSON. I just hit this problem in a completely different notebook (see attached). I reset the session and it worked. Do we have any thoughts on whether the error is coming from the golang runner or the frontend? The error seems similar to #625 which was fixed with the v2 runner. I confirmed I'm using the v2alpha1 runner. In that issue I mentioned server logs but I can't remember how I looked at server logs. I think I was manually starting runme golang server and so specified the "--log" flag. My suspicion is that this error is coming from the GoRunner runme/internal/runner/shell.go Line 52 in 004c66d
Would adding logs help debug this? |
I recently bumped up the scrollback option to 100000 and now its happening very frequently. It seems to happen after running commands that produce a lot of output. |
I believe I accidentally reproduced the problem. Can you confirm that you're running on runner |
Following up. It looks like as part of the https://github.com/stateful/runme/blob/main/internal/command/env_store.go#L40-L60 In https://github.com/stateful/runme/blob/main/internal/runner/service.go#L491-L495 |
Confirmed; I'm using v2alpha1. I didn't know this functionality existed. I think the documentation is a bit confusing
IUC, it looks like the variable "$" is set to the output of the previous execution. So if you want to post process the output in another cell you can do that by using the variable "$". The documentation makes it sound like you can't explicitly set variables in one cell and reference them in another but I do that all the time. e.g. in one cell
and then in other cells refer to ${CONFIGFILE}. |
Just confirming: 🤔 Does I believe what you're referring to with referencing ENV var is the section above |
Sorry. The docs are rendered correctly. I did type To illustrate, how, I was confused by the documentation about piping. I might suggest changing
To something like By default, Runme prevents the output of one cell from being directly accessed in another cell. However, Piping allows you to use |
👍 used it verbatim here: stateful/docs.runme.dev@8653b04 |
This change ensures that the size of individual environment variables, as well as all environment variables (environ) passed to a command, are within limits. Relates to #648
I was trying to run the command
In RunMe and I was getting the error
The command ran fine in my MacOs terminal.
Here's the notebook.
https://gist.github.com/jlewi/4417f86d9357a2fbe7491330064837df
Resetting the session seemed to fix the problem.
The text was updated successfully, but these errors were encountered: