Hi Chandana,

I was able to reproduce your issue. This issue is caused due to an
uncompleted bash installation in Windows 10.
With windows 10 (10th year anniversary edition) users were given the option
to install bash within windows. So once you have installed *Windows sub
system for Linux(beta)* feature it actually doesn't completely install all
of its features. This creates a '*bash.exe*' in system32 folder and it will
be installed when the "bash" command runs.

In carbon-kernel [1] we try to write a PPID using a bash command. In
windows environment we expect an exception when trying to execute this step
since bash is not available in windows. But in this case bash is available
in the windows environment and an exception is not generated. So the
process continues and it try to read a line in [2] but it hangs there
because once we execute the "*bash*" command it tries to install bash in
windows(user input is required to install it)

So, to resolve this issue we can install bash completely by running "*bash*"
command in command prompt or remove the *Windows sub system for
Linux(beta) *feature.

I hope this is the same reason for your issue as well. (you can check
whether you have partially installed bash by typing "bash" in command
prompt. This will ask you to install it properly.)

Let us know if this helped you to resolve the issue.

PS: Complete tutorial on installing bash in windows 10 is available in [3].

[1] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/
wso2/carbon/launcher/Main.java#L209

[2] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/
wso2/carbon/launcher/Main.java#L226

[3] https://www.windowscentral.com/how-install-bash-shell-
command-line-windows-10

Thank you.

Raveen Savinda Rathnayake,
Software Engineering Intern,
WSO2 Inc.

*lean. enterprise. middleware  *
Web: www.WSO2.com <https://www.wso2.com/> Mobile : +94771144549  Blog :
https://blog.raveen.me

<https://lk.linkedin.com/in/raveensr>
<http://wso2.com/signature>

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to