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

exec failed to execute rpmbuild but the commands succeeds if run directly #64

Closed
ammaraltahan opened this issue May 14, 2015 · 3 comments
Assignees

Comments

@ammaraltahan
Copy link

I've setup exec to run rpmbuild and it did for a while until we changed something in the packaged files then it started failing.

Grungfile.js :
build_rpm:{
cmd: 'rpmbuild -ba <%= rpm_dir %>/SPECS/cdr.spec'
}

Output:
....
....

Exited with code: 0.
Warning: Task "exec:build_rpm" failed. Use --force to continue.

Aborted due to warnings.

@ammaraltahan
Copy link
Author

I figured out what happened...
I used grunt-shell and it gave me more specific error, it told me that I've exceeded maxBuffer size, and grunt-shell does take maxBuffer as a parameter, so I just increased the buffer and it succeeded.

It is rather strange that even though I turn off stdout for exec, it still fails!

you may need to add an option to select maxBuffer as others may run into this issue.

@AdrianDroid
Copy link

same thing happened while we run r.js or some pc even simple copy cmd.

Weird thing is .... it is happening depending on machine.
our build server (win2003) and a few PC (Win7) happen to have this symptom.

yet others are fine witht he exact some code.

i have even clone the node_modules folder to ensure all the npm install are the same.

anyone care to have a look on this issue?

gwicksted added a commit that referenced this issue May 12, 2016
Thanks to input from #23 #50 #55 #64 #67 and PR #56 (Commit #1877d98) for feature previously added but not yet documented.
@gwicksted gwicksted self-assigned this May 12, 2016
@gwicksted
Copy link
Collaborator

Marking this as a dup for now but a better error message would be more helpful. I'll create a new issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants