DEV Community

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

Posted on

2 2

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

links:

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (1)

Collapse
 
toan1606 profile image
Toan1606

How to resolve it ?

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay