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/>*
>>
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to