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

CreateProcess failed #575

Open
sensudan opened this issue Aug 27, 2014 · 10 comments
Open

CreateProcess failed #575

sensudan opened this issue Aug 27, 2014 · 10 comments

Comments

@sensudan
Copy link

Am running the phpCI in windows environment and getting an error when i run the build . please help me to resolve this issue.

�Exception: Warning: proc_open(): CreateProcess failed, error code - 0 in D:\Projects\PHPCI\testphpci\PHPCI\Helper\BaseCommandExecutor.php line 93�

@AlexErmer
Copy link

same issue here, but line 90

@AlexErmer
Copy link

IMO the issue is caused by never setting $buildPath in BaseCommandExecutor which is used to call the function. I tried setting it to absolute path of my phpci and it worked (at least, the copying finished corretly :-)

@TimWolters
Copy link

If you could go into further explanation about it. I am struggling with it at the moment and i can't seem to get it to work.

@sensudan
Copy link
Author

@TimWolters ,
Set the build path in PHPCI/Helper/BasecommandExecutor.php at line 92 (ie. prior to this line $process = proc_open($command, $descriptorSpec, $pipes, dirname($this->buildPath), null); )
$this->buildPath = " ";

@TimWolters
Copy link

Strange, it works now but i wonder i put the absolute filepath in.
Thanks for the answer.

@pqr
Copy link

pqr commented Sep 29, 2014

Confirm the issue.
I have just commented not needed dirname($this->buildPath) at PHPCI/Helper/BasecommandExecutor.php line 90
$process = proc_open($command, $descriptorSpec, $pipes/*, dirname($this->buildPath), null*/);

@ARACOOOL
Copy link

This problem not fixed.
Warning: proc_open(): CreateProcess failed, error code - 267 in ...\PHPCI\Helper\BaseCommandExecutor.php line 93�

@manuelj555
Copy link

Same issue,

I created a folder in PHPCI\build{created_folder} with the number of outstanding build, and run the command in windows and I have no error.

Sorry for my bad english!

@marcovtwout
Copy link

marcovtwout commented Dec 6, 2016

Similar error here, when running builds on Windows it ends in:

 RunCommand.ERROR: Exception: Warning: proc_open(): CreateProcess failed, error code - 0 in S:\www\phpci\phpci\PHPCI\Helper\BaseCommandExecutor.php line 96

I could patch this by settings $this->buildPath = null; just before the proc_open() call.

@bobbyneelam
Copy link

bobbyneelam commented Apr 24, 2017

I am not able to fix this issue....can anyone help me on this....!I tried in above ways but no luck.Can any help me giving the steps to solve the issue.

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

9 participants