DEV Community

Cover image for bash on windows - CreateProcessW failed ... errno 13
Julian
Julian

Posted on

bash on windows - CreateProcessW failed ... errno 13

0 [main] bash 6884 fork: child -1 - CreateProcessW failed for 'C:\Program Files\Git\usr\bin\bash.exe', errno 13

Sometimes windows gives you this strange error. it happend for me with php, shell scripts, terraform calling shellscripts, ...

windows has problems (i read something about a security measure) creating to "many" processes in a short timeframe.

the solution for me was to disable multithreading in the program which calls the bash scripts or in general has such problems.

for terraform its:

terraform plan -parallelism=1

links:

Top comments (1)

Collapse
 
toan1606 profile image
Toan1606

How to resolve it ?