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:

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (1)

Collapse
 
toan1606 profile image
Toan1606

How to resolve it ?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more