Thanks for the reply, I will create the issues in github as you have mentioned.
I changed the line USE_DOCKER=false to USE_DOCKER=true in the script, without adding the modifications you suggested I attached and then it downloaded an image from the che site and started the che instance. Should I configure an image in my docker instance prior to running che? Is that why che was complaining of not having a JDK ? Regards Awanthika Awanthika Senarath Software Engineer, WSO2 Inc. Mobile: +94717681791 On Tue, Feb 2, 2016 at 3:19 PM, Alexander Garagatyi <agaraga...@codenvy.com> wrote: > Thank you for your investigation. > > So the problem in function syntax is that you are using POSIX compliant > mode of bash. In this mode bash doesn't support modern features of bash. > Try to add "set –o posix" line before "set -e" in the origin script. It > should disable POSIX compliant mode in che script. I hope it will allow you > to run unchanged script. > But now with changed syntax of functions you have another problem: > >> JAVA_HOME is not set. Please set to directory of JVM or JRE. > > It is possible that parsing fails because of POSIX compliant mode of bash. > Check if this error happens when you disable that mode. If it still > present, please, ping me again. > > BTW looks like we need improve script to disable POSIX compliant mode at > the beginning of the script. Can you create an issue on github with > description of your problem. > Also output is too messy and doesn't allow to identify error message > easily. If you think so, please, create issue on github with example of > output you've provided. It is a good example. > > On Tue, Feb 2, 2016 at 10:30 AM, Awanthika Senarath <awanth...@wso2.com> > wrote: > >> Hello Alexander, >> >> After quite a bit of trouble-shooting from our end we got the script to >> running, >> >> We had to change all your functions declarations from >> >> functions abc {} ==> abc () {} >> >> in the script, which caused issues in the bash. I have attached the >> changed script herewith. >> >> After changing them and running the script as ./che.sh run I get the >> following error[1] , >> >> I have jdk 1.8 and docker installed. So the possible error is "6. >> (Linux) Permissions not properly set ==> Che must run as UID 1000 >> with user in docker group". >> >> I have docker installed and my default user can run docker without sudo >> permission. Anything that I have missed? >> >> Any idea how to solve this? >> >> >> [1] >> /home/awanthika/WSO2/Eclipse-Che/eclipse-che-4.0.0-beta-13 >> Docker is natively installed and reachable... >> >> ############## HOW TO CONNECT YOUR CHE CLIENT ############### >> After Che server has booted, you can connect your clients by: >> 1. Open browser to http://localhost:8080, or: >> 2. Open native chromium app. >> ############################################################# >> >> >> JAVA_HOME is not set. Please set to directory of JVM or JRE. >> >> Looks like something went wrong. Possible issues: >> 1. (Win | Mac) VirtualBox not installed ==> Rerun Docker >> Toolbox installation >> 2. (Win | Mac) Docker Machine not installed ==> Rerun Docker >> Toolbox installation >> 3. (Win | Mac) Docker is not reachable ==> Docker VM failed >> to start >> 4. (Win | Mac) Docker ok, but docker ps fails ==> Docker environment >> variables not set properly >> 5. (Linux) Docker is not reachable ==> Install: wget -qO- >> https://get.docker.com/ | sh >> 6. (Linux) Permissions not properly set ==> Che must run as >> UID 1000 with user in docker group >> 7. Could not find the Che app server ==> Did /tomcat get >> moved away from CHE_HOME? >> 8. Wrong version of Java found ==> Che requires Java >> 1.8 >> 9. Did you use the right parameter syntax? ==> See usage >> >> We have seen issues with VirtualBox on Windows where your VM gets >> corrupted when your computer is >> suspended while the VM is still running. This will appear as SSH or >> ethernet connection issues. This is >> rare, but if encountered, current known solution is to uninstall >> VirtualBox and Docker Toolbox, and then >> reinstall. >> >> Che Environment Variables: >> (REQUIRED) JAVA_HOME ==> Location of Java >> runtime >> (REQUIRED: WIN|MAC) DOCKER_TOOLBOX_INSTALL_PATH ==> Location of Docker >> Toolbox >> (REQUIRED: WIN|MAC) VBOX_MSI_INSTALL_PATH ==> Location of >> VirtualBox >> (OPTIONAL) CHE_HOME ==> Directory where >> Che is installed >> (OPTIONAL) CHE_LOCAL_CONF_DIR ==> Directory with >> custom Che .properties files >> (OPTIONAL) CHE_LOGS_DIR ==> Directory for Che >> output logs >> (OPTIONAL) CHE_DOCKER_MACHINE_NAME ==> (Win | Mac) Name >> of VM created by docker-machine >> (OPTIONAL) DOCKER_MACHINE_HOST ==> (Linux) Docker >> host IP - set if browser clients remote >> >> Usage: >> che [OPTIONS] [run | start | stop] >> -i, --image Launches Che within a Docker container >> using latest image >> -i:tag, --image:tag Launches Che within a Docker container >> using specific image tag >> -p:port, --port:port Port that Che server will use for HTTP >> requests; default=8080 >> -r:ip, --remote:ip If Che clients are not localhost, set to >> IP address of Che server >> -g, --registry Launch Docker registry as a container >> (used for ws snapshots) >> -m:vm, --machine:vm For Win & Mac, sets the docker-machine VM >> name to vm; default=default >> -s:client, --skip:client Do not print browser client connection >> information >> -s:uid, --skip:uid Do not enforce UID=1000 for Docker >> -h, --help Show this help >> -d, --debug Use debug mode (prints command line >> options + app server debug) >> run Starts Che application server in current >> console >> start Starts Che application server in new console >> stop Stops Che application server >> >> The -r flag sets the DOCKER_MACHINE_HOST system environment variable. Set >> this to the IP address of the node >> that is running your Docker daemon. Only necessary to set this if on >> Linux and your browser clients are not >> localhost, ie they are remote. This property automatically set for Che on >> Windows and Mac. >> >> >> Awanthika Senarath >> Software Engineer, WSO2 Inc. >> Mobile: +94717681791 >> >> >> >> On Tue, Feb 2, 2016 at 8:26 AM, Awanthika Senarath <awanth...@wso2.com> >> wrote: >> >>> Hi Alexander, >>> >>> Running the exact script given by you results in the following error[1]. >>> I will try in another machine to see whether this is related to my local >>> setup. >>> >>> It says that the che.sh file has some syntax errors.. >>> >>> My OS does not seem to recognize the function declarations in the SH >>> file. >>> >>> [1] GNU bash, version 4.3.8(1)-release (x86_64-pc-linux-gnu) >>> Copyright (C) 2013 Free Software Foundation, Inc. >>> License GPLv3+: GNU GPL version 3 or later < >>> http://gnu.org/licenses/gpl.html> >>> >>> This is free software; you are free to change and redistribute it. >>> There is NO WARRANTY, to the extent permitted by law. >>> 3897 pts/1 S+ 0:00 sh che.sh run >>> 3900 pts/1 S+ 0:00 grep che.sh >>> che.sh: 22: che.sh: function: not found >>> che.sh: 101: che.sh: Syntax error: "}" unexpected >>> >>> >>> >>> Regards >>> Awanthika >>> >>> >>> Awanthika Senarath >>> Software Engineer, WSO2 Inc. >>> Mobile: +94717681791 >>> >>> >>> >>> On Fri, Jan 29, 2016 at 4:24 PM, Awanthika Senarath <awanth...@wso2.com> >>> wrote: >>> >>>> Thanks Alexander, will try >>>> >>>> Awanthika Senarath >>>> Software Engineer, WSO2 Inc. >>>> Mobile: +94717681791 >>>> >>>> >>>> >>>> On Fri, Jan 29, 2016 at 3:49 PM, Alexander Garagatyi < >>>> agaraga...@codenvy.com> wrote: >>>> >>>>> Replace content of che.sh with >>>>> https://gist.githubusercontent.com/garagatyi/5fe3f7abc0732a794391/raw/127bcf8ce3922721bac33ee8c214cce290859bc9/che.sh >>>>> >>>>> On Fri, Jan 29, 2016 at 11:39 AM, Awanthika Senarath < >>>>> awanth...@wso2.com> wrote: >>>>> >>>>>> Could you please send me the script that you are working with? the >>>>>> script that is available in the pack is somewhat different to the script >>>>>> in >>>>>> your git repo. >>>>>> >>>>>> It would be great if you could send me the exact script that I need >>>>>> to start Che with. >>>>>> >>>>>> Regards >>>>>> Awanthika >>>>>> >>>>>> Awanthika Senarath >>>>>> Software Engineer, WSO2 Inc. >>>>>> Mobile: +94717681791 >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Jan 29, 2016 at 3:05 PM, Alexander Garagatyi < >>>>>> agaraga...@codenvy.com> wrote: >>>>>> >>>>>>> I'm working on ubuntu 14.04 and everything is ok. >>>>>>> >>>>>>> Please, try to update your version of Che. >>>>>>> Provide output of *bash --version* >>>>>>> Also comment these lines >>>>>>> >>>>>>> https://github.com/codenvy/che/blob/master/assembly-main/src/assembly/bin/che.sh#L14 >>>>>>> >>>>>>> https://github.com/codenvy/che/blob/master/assembly-main/src/assembly/bin/che.sh#L17 >>>>>>> And add *ps ax | grep che.sh *on top of the script. Then send here >>>>>>> output of this command and *bash --version* >>>>>>> >>>>>>> >>>>>>> On Fri, Jan 29, 2016 at 8:52 AM, Awanthika Senarath < >>>>>>> awanth...@wso2.com> wrote: >>>>>>> >>>>>>>> My ubuntu version : 14.04 >>>>>>>> >>>>>>>> >>>>>>>> Attached is the script im running, >>>>>>>> >>>>>>>> I also tried deleting the first two lines of the script as well. >>>>>>>> >>>>>>>> I have docker info as below: >>>>>>>> >>>>>>>> Client: >>>>>>>> Version: 1.9.1 >>>>>>>> API version: 1.21 >>>>>>>> Go version: go1.4.2 >>>>>>>> Git commit: a34a1d5 >>>>>>>> Built: Fri Nov 20 13:12:04 UTC 2015 >>>>>>>> OS/Arch: linux/amd64 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Awanthika Senarath >>>>>>>> Software Engineer, WSO2 Inc. >>>>>>>> Mobile: +94717681791 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jan 27, 2016 at 2:56 PM, Alexander Garagatyi < >>>>>>>> agaraga...@codenvy.com> wrote: >>>>>>>> >>>>>>>>> Please provide your version of ubuntu, bash and attach exact >>>>>>>>> script that you launched (including your changes). Thank you. >>>>>>>>> >>>>>>>>> On Wed, Jan 27, 2016 at 4:49 AM, Awanthika Senarath < >>>>>>>>> awanth...@wso2.com> wrote: >>>>>>>>> >>>>>>>>>> Hello Alexander, >>>>>>>>>> >>>>>>>>>> I tried by removing the first two lines that was causing the >>>>>>>>>> issue from the script, which resulted in the error [1]. I removed >>>>>>>>>> the lines >>>>>>>>>> >>>>>>>>>> set -e >>>>>>>>>> set -o pipefail, from the script which I assume cause the whole >>>>>>>>>> script to exit on failure according to [2]. >>>>>>>>>> >>>>>>>>>> Any idea on how to get it to running? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> [1] >>>>>>>>>> >>>>>>>>>> trap: SIGHUP: bad trap >>>>>>>>>> che.sh: 19: che.sh: function: not found >>>>>>>>>> che.sh: 98: che.sh: Syntax error: "}" unexpected >>>>>>>>>> >>>>>>>>>> [2] https://sipb.mit.edu/doc/safe-shell/ >>>>>>>>>> >>>>>>>>>> thanks and regards >>>>>>>>>> Awanthika >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Awanthika Senarath >>>>>>>>>> Software Engineer, WSO2 Inc. >>>>>>>>>> Mobile: +94717681791 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Tue, Jan 26, 2016 at 4:54 PM, Awanthika Senarath < >>>>>>>>>> awanth...@wso2.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hello Alexander, >>>>>>>>>>> >>>>>>>>>>> Thanks, will try it out. >>>>>>>>>>> >>>>>>>>>>> Awanthika Senarath >>>>>>>>>>> Software Engineer, WSO2 Inc. >>>>>>>>>>> Mobile: +94717681791 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Tue, Jan 26, 2016 at 2:11 PM, Alexander Garagatyi < >>>>>>>>>>> agaraga...@codenvy.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi! >>>>>>>>>>>> >>>>>>>>>>>> This check fails because you use shell that doesn't support it. >>>>>>>>>>>> I think we should remove this check. I'll submit PR for that. >>>>>>>>>>>> To workaround that you can try start che inside bash shell or >>>>>>>>>>>> remove that line >>>>>>>>>>>> <https://github.com/codenvy/che/blob/master/assembly-main/src/assembly/bin/che.sh#L15> >>>>>>>>>>>> . >>>>>>>>>>>> >>>>>>>>>>>> On Tue, Jan 26, 2016 at 5:46 AM, Awanthika Senarath < >>>>>>>>>>>> awanth...@wso2.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hello, >>>>>>>>>>>>> >>>>>>>>>>>>> I have attempted to start eclipse-che latest release >>>>>>>>>>>>> downloaded from [1] following the documentation at [2]. >>>>>>>>>>>>> >>>>>>>>>>>>> The command in the documentation did not work, hence I used sh >>>>>>>>>>>>> che.sh start command which gave me the error >>>>>>>>>>>>> >>>>>>>>>>>>> * Illegal option -o pipefail * >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Appreciate any input on how to get the latest Che running in >>>>>>>>>>>>> my local ubuntu machine. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> [1] http://www.eclipse.org/che/download/ >>>>>>>>>>>>> >>>>>>>>>>>>> [2] >>>>>>>>>>>>> https://eclipse-che.readme.io/docs/get-started-with-java-and-che >>>>>>>>>>>>> >>>>>>>>>>>>> Regards >>>>>>>>>>>>> Awanthika Senarath >>>>>>>>>>>>> Software Engineer, WSO2 Inc. >>>>>>>>>>>>> Mobile: +94717681791 >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> che-dev mailing list >>>>>>>>>>>>> che-...@eclipse.org >>>>>>>>>>>>> To change your delivery options, retrieve your password, or >>>>>>>>>>>>> unsubscribe from this list, visit >>>>>>>>>>>>> https://dev.eclipse.org/mailman/listinfo/che-dev >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> | Alexander Garagatyi | Developer | *Codenvy.com >>>>>>>>>>>> <http://codenvy.com/> * >>>>>>>>>>>> *Use Codenvy for Free Now <http://codenvy.com/>* >>>>>>>>>>>> *Read the Codenvy Story <http://blog.codenvy.com/vision/>* >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> | Alexander Garagatyi | Developer | *Codenvy.com >>>>>>>>> <http://codenvy.com/> * >>>>>>>>> *Use Codenvy for Free Now <http://codenvy.com/>* >>>>>>>>> *Read the Codenvy Story <http://blog.codenvy.com/vision/>* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> | Alexander Garagatyi | Developer | *Codenvy.com >>>>>>> <http://codenvy.com/> * >>>>>>> *Use Codenvy for Free Now <http://codenvy.com/>* >>>>>>> *Read the Codenvy Story <http://blog.codenvy.com/vision/>* >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> | Alexander Garagatyi | Developer | *Codenvy.com >>>>> <http://codenvy.com/> * >>>>> *Use Codenvy for Free Now <http://codenvy.com/>* >>>>> *Read the Codenvy Story <http://blog.codenvy.com/vision/>* >>>>> >>>> >>>> >>> >> > > > -- > | Alexander Garagatyi | Developer | *Codenvy.com <http://codenvy.com/> * > *Use Codenvy for Free Now <http://codenvy.com/>* > *Read the Codenvy Story <http://blog.codenvy.com/vision/>* >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev