Hi Raveen, In Carbon 4.4.x code I could see that, 'sh' command[1] is used to determine whether the operating system is Windows or not. So based on the code you have pointed[2],it has changed to 'bash' and now the new 'bash' option is not working on some of the Windows systems. I could confirm that old carbon 4.4.x related 'sh' command still works without any issue and I haven't noticed anyone faced a similar issue(in Dev list or StackOverflow) with any of the official WSO2 products up to now.
So I personally believe that, the code you have pointed[2] it is not working as expected(on the expected use cases)[3] and need to be fixed it properly. [1]. https://github.com/wso2/carbon-kernel/blob/4.4.x/core/ org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/Main.java#L170 [2]. https://github.com/wso2/carbon-kernel/blob/ f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/ java/org/wso2/carbon/launcher/Main.java#L209 [3]. *//Ignored. We might be invoking this on a Window platform. Therefore if an error occurs* Regards, Chandana On 3 January 2018 at 19:01, Raveen Rathnayake <[email protected]> wrote: > 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/ > f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/ > java/org/wso2/carbon/launcher/Main.java#L209 > > [2] https://github.com/wso2/carbon-kernel/blob/ > f1f013f0d513c6234881fa6e8a2496419d6aece7/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. > > On Mon, Jan 1, 2018 at 3:10 AM, Chandana Napagoda <[email protected]> > wrote: > >> Hi Isuru/Gimantha, >> >> For your reference, I have created a video[1] when starting WSO2 SP 4.0.0 >> R3. No character was selected while starting the server. >> >> [1]. https://youtu.be/sJpbM9V9rII >> >> Chandana >> >> On 22 December 2017 at 22:26, Gimantha Bandara <[email protected]> wrote: >> >>> >>> >>> On Fri, Dec 22, 2017 at 8:14 AM, Chandana Napagoda <[email protected]> >>> wrote: >>> >>>> -1, Unable to start Stream Processor Studio in the windows >>>> machine[1][2]. It was hanging on the below step for more than 20 minutes. >>>> >>> I confirmed what Isuru has mentioned. >>> This is not a bug. If you select a character in command prompt (by* >>> mark*ing), the current process holds and will not continue. Press >>> *Enter,* then the process will continue. >>> >>> >>> >>>> >>>> Also, it seems "Installing on Windows"[1] doc is outdated, I can't find >>>> any place to copy snappy-java jar file. >>>> >>>> >>>> >>>> >>>> [1]. https://docs.wso2.com/display/SP400/Installing+on+Windows >>>> [2]. https://docs.wso2.com/display/SP400/Running+the+Product >>>> >>>> Regards, >>>> Chandana >>>> >>>> On 22 December 2017 at 09:59, SajithAR Ariyarathna <[email protected]> >>>> wrote: >>>> >>>>> Hi Devs, >>>>> >>>>> We are pleased to announce the release candidate of WSO2 Stream >>>>> Processor 4.0.0. >>>>> >>>>> This is the Release Candidate version 2 of the WSO2 Stream Processor >>>>> 4.0.0 >>>>> >>>>> Please download, test the product and vote. Vote will be open for 72 >>>>> hours or as needed. >>>>> >>>>> Known issues: https://github.com/wso2/product-sp/issues >>>>> >>>>> Source and binary distribution files: https://github.com/wso2 >>>>> /product-sp/releases/tag/v4.0.0-RC2 >>>>> >>>>> The tag to be voted upon: https://github.com/wso2/ >>>>> product-sp/tree/v4.0.0-RC2 >>>>> >>>>> Please vote as follows. >>>>> [+] Stable - go ahead and release >>>>> [-] Broken - do not release (explain why) >>>>> >>>>> ~ The WSO2 Analytics Team ~ >>>>> Thanks. >>>>> >>>>> -- >>>>> Sajith Janaprasad Ariyarathna >>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com/ >>>>> <https://wso2.com/signature> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Blog: http://blog.napagoda.com >>>> Linkedin: https://www.linkedin.com/in/chandananapagoda/ >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Gimantha Bandara >>> Software Engineer >>> WSO2. Inc : http://wso2.com >>> Mobile : +94714961919 <+94%2071%20496%201919> >>> >> >> >> >> -- >> >> Blog: http://blog.napagoda.com >> Linkedin: https://www.linkedin.com/in/chandananapagoda/ >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Raveen Savinda Rathnayake, > Software Engineering Intern, > WSO2 Inc. > > *lean. enterprise. middleware * > Web: 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> > <#m_-8840029512099733136_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > -- Blog: http://blog.napagoda.com Linkedin: https://www.linkedin.com/in/chandananapagoda/
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
