Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CF190200BF4 for ; Fri, 6 Jan 2017 09:24:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CDBF1160B37; Fri, 6 Jan 2017 08:24:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A515A160B1F for ; Fri, 6 Jan 2017 09:24:39 +0100 (CET) Received: (qmail 47723 invoked by uid 500); 6 Jan 2017 08:24:38 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 47706 invoked by uid 99); 6 Jan 2017 08:24:38 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2017 08:24:38 +0000 Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6BB0B1A012C for ; Fri, 6 Jan 2017 08:24:38 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id u143so16630845oif.3 for ; Fri, 06 Jan 2017 00:24:38 -0800 (PST) X-Gm-Message-State: AIkVDXJWij760i/O8IlB/IZb1wNss6DbU3Z5u3HZGdl1r4cxc14YSyvNIBzq0xJ3Wul0XZG0tRxrLeLy2tVYaw== X-Received: by 10.202.241.130 with SMTP id p124mr33104668oih.85.1483691077708; Fri, 06 Jan 2017 00:24:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.129.50 with HTTP; Fri, 6 Jan 2017 00:24:17 -0800 (PST) In-Reply-To: References: <9d102c9b-2dd2-0ba3-6e79-01554bfab813@nanthrax.net> From: Guillaume Nodet Date: Fri, 6 Jan 2017 09:24:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Aw: Re: Shell commands are unavailable #1 To: user Content-Type: multipart/alternative; boundary=94eb2c0961c4a4b810054568bf2c archived-at: Fri, 06 Jan 2017 08:24:41 -0000 --94eb2c0961c4a4b810054568bf2c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It should be ok now. 2017-01-06 9:04 GMT+01:00 Guillaume Nodet : > Thx, I pushed my fix. > So the command is correctly discovered, however, the script never returns > for some reason. I'll investigate. > > 2017-01-06 8:59 GMT+01:00 Achim Nierbeck : > >> @Guillaume >> look here: https://issues.apache.org/jira/browse/KARAF-4926 >> >> :) >> >> regards, Achim >> >> 2017-01-06 8:33 GMT+01:00 Guillaume Nodet : >> >>> I found the problem and I have a fix locally. >>> Has a jira been raised already ? >>> >>> 2017-01-06 7:39 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : >>> >>>> That's a good point and actually, it's the real end-user usage of shel= l >>>> (to install the wrapper without starting a Karaf instance). >>>> >>>> Let me take a look. >>>> >>>> Thanks, >>>> Regards >>>> JB >>>> >>>> >>>> On 01/06/2017 07:37 AM, Jens Offenbach wrote: >>>> >>>>> Ok, I can live with that, but the command "shell wrapper:install >>>>> --start-type DEMAND_START" should work or has something been changed? >>>>> >>>>> Give it a try: >>>>> $ shell wrapper:install --start-type DEMAND_START >>>>> [org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : >>>>> completionMode property is not defined in etc/org.apache.karaf.shell.= cfg >>>>> file. Using default completion mode. >>>>> [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered >>>>> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not >>>>> found: wrapper:install >>>>> at org.apache.felix.gogo.runtime. >>>>> Closure.executeCmd(Closure.java:549) >>>>> at org.apache.felix.gogo.runtime. >>>>> Closure.executeStatement(Closure.java:478) >>>>> at org.apache.felix.gogo.runtime. >>>>> Closure.execute(Closure.java:367) >>>>> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) >>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) >>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) >>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>>>> at java.util.concurrent.ThreadPoo >>>>> lExecutor.runWorker(ThreadPoolExecutor.java:1142) >>>>> at java.util.concurrent.ThreadPoo >>>>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) >>>>> at java.lang.Thread.run(Thread.java:745) >>>>> Command not found: wrapper:install >>>>> >>>>> Thanks! >>>>> >>>>> >>>>> Gesendet: Freitag, 06. Januar 2017 um 07:32 Uhr >>>>> Von: "Jean-Baptiste Onofr=C3=A9" >>>>> An: user@karaf.apache.org >>>>> Betreff: Re: Aw: Shell commands are unavailable #1 >>>>> Hi Jens, >>>>> >>>>> shell doesn't really start a full Karaf instance, so, it's an expecte= d >>>>> behavior IMHO. >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> On 01/06/2017 06:50 AM, Jens Offenbach wrote: >>>>> >>>>>> The problem seems to occur only when using the "shell" script from >>>>>> the "bin" folder. Using "./start", followed by "./client", the comma= nds >>>>>> "system:shutdown" and "logout" are working properly. >>>>>> >>>>>> Jens >>>>>> >>>>>> >>>>>> Gesendet: Freitag, 06. Januar 2017 um 06:43 Uhr >>>>>> Von: "Jens Offenbach" >>>>>> An: user@karaf.apache.org >>>>>> Betreff: Shell commands are unavailable >>>>>> Hi, >>>>>> I am using Apache Karaf 4.1.0-Snapshot and in the current snapshot >>>>>> release, there seems to be a problem regarding shell commands. I hav= e >>>>>> opened the following issue: https://issues.apache.org/jira >>>>>> /browse/KARAF-4926. But things seem to be much more problematic. >>>>>> Even the "logout" command is reported as unavailable. >>>>>> >>>>>> I am using the last snapshot (apache-karaf-4.1.0-20170105 >>>>>> <0201%2070105>.165025-279.tar.gz") from the Apache snapshot >>>>>> repository. >>>>>> >>>>>> Give it a try: >>>>>> $ ./shell >>>>>> [org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : >>>>>> completionMode property is not defined in etc/org.apache.karaf.shell= .cfg >>>>>> file. Using default completion mode. >>>>>> __ __ ____ >>>>>> / //_/____ __________ _/ __/ >>>>>> / ,< / __ `/ ___/ __ `/ /_ >>>>>> / /| |/ /_/ / / / /_/ / __/ >>>>>> /_/ |_|\__,_/_/ \__,_/_/ >>>>>> >>>>>> Apache Karaf (4.1.0-SNAPSHOT) >>>>>> >>>>>> Hit '' for a list of available commands >>>>>> and '[cmd] --help' for help on a specific command. >>>>>> Hit '' or type 'system:shutdown' or 'logout' to shutdown >>>>>> Karaf. >>>>>> >>>>>> karaf@root()> logout >>>>>> [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered >>>>>> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not >>>>>> found: logout >>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:549= ) >>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closu >>>>>> re.java:478) >>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367) >>>>>> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) >>>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) >>>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) >>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>>>> Executor.java:1142) >>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>>>> lExecutor.java:617) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> Command not found: logout >>>>>> karaf@root()> system:shutdown >>>>>> [org.apache.karaf.shell.support.ShellUtil] : Unknown command entered >>>>>> org.apache.felix.gogo.runtime.CommandNotFoundException: Command not >>>>>> found: system:shutdown >>>>>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:549= ) >>>>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closu >>>>>> re.java:478) >>>>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367) >>>>>> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) >>>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) >>>>>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) >>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>>>> Executor.java:1142) >>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>>>> lExecutor.java:617) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> Command not found: system:shutdown >>>>>> >>>>>> This is a hard blocker right now. May someone please have a look at >>>>>> this. >>>>>> >>>>>> Thanks a lot! >>>>>> >>>>>> Regards, >>>>>> Jens >>>>>> >>>>>> >>>>> -- >>>>> Jean-Baptiste Onofr=C3=A9 >>>>> jbonofre@apache.org >>>>> http://blog.nanthrax.net[http://blog.nanthrax.net] >>>>> Talend - http://www.talend.com[http://www.talend.com] >>>>> >>>>> >>>> -- >>>> Jean-Baptiste Onofr=C3=A9 >>>> jbonofre@apache.org >>>> http://blog.nanthrax.net >>>> Talend - http://www.talend.com >>>> >>> >>> >>> >>> -- >>> ------------------------ >>> Guillaume Nodet >>> ------------------------ >>> Red Hat, Open Source Integration >>> >>> Email: gnodet@redhat.com >>> Web: http://fusesource.com >>> Blog: http://gnodet.blogspot.com/ >>> >>> >> >> >> -- >> >> Apache Member >> Apache Karaf Committer & PMC >> OPS4J Pax Web Committer >> & Project Lead >> blog >> Co-Author of Apache Karaf Cookbook >> >> Software Architect / Project Manager / Scrum Master >> >> > > > -- > ------------------------ > Guillaume Nodet > ------------------------ > Red Hat, Open Source Integration > > Email: gnodet@redhat.com > Web: http://fusesource.com > Blog: http://gnodet.blogspot.com/ > > --=20 ------------------------ Guillaume Nodet ------------------------ Red Hat, Open Source Integration Email: gnodet@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/ --94eb2c0961c4a4b810054568bf2c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It should be ok now.

<= div class=3D"gmail_quote">2017-01-06 9:04 GMT+01:00 Guillaume Nodet <gnode= t@apache.org>:
Thx, I pushed my fix.
So the command is correctly discovered, howe= ver, the script never returns for some reason.=C2=A0 I'll investigate.<= /div>

2017-01-06 8:59 GMT+01:00 Achim Nierbeck = <bcanhome@googlemail.com>:
@Guillaume

regards, Achim=C2=A0

2017-01-= 06 8:33 GMT+01:00 Guillaume Nodet <gnodet@apache.org>:
I found the problem and I hav= e a fix locally.
Has a jira been raised already ?

2017-01-06 7:39 GMT+01:00 Jean-Baptis= te Onofr=C3=A9 <jb@nanthrax.net>:
That's a good point and actually, it's the real end-user usag= e of shell (to install the wrapper without starting a Karaf instance).

Let me take a look.

Thanks,
Regards
JB


On 01/06/2017 07:37 AM, Jens Offenbach wrote:
Ok, I can live with that, but the command "shell wrapper:install --sta= rt-type DEMAND_START" should work or has something been changed?

Give it a try:
$ shell wrapper:install --start-type DEMAND_START
[org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : completionM= ode property is not defined in etc/org.apache.karaf.shell.cfg file. Using d= efault completion mode.
[org.apache.karaf.shell.support.ShellUtil] : Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not fo= und: wrapper:install
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Closure.e= xecuteCmd(Closure.java:549)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Closure.e= xecuteStatement(Closure.java:478)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Closure.e= xecute(Closure.java:367)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Pipe.doCa= ll(Pipe.java:417)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Pipe.call= (Pipe.java:229)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.felix.gogo.runtime.Pipe.call= (Pipe.java:59)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.FutureTask.run(Fut= ureTask.java:266)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.ThreadPoolExecutor= .runWorker(ThreadPoolExecutor.java:1142)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.ThreadPoolExecutor= $Worker.run(ThreadPoolExecutor.java:617)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745) Command not found: wrapper:install

Thanks!


Gesendet: Freitag, 06. Januar 2017 um 07:32 Uhr
Von: "Jean-Baptiste Onofr=C3=A9" <jb@nanthrax.net>
An: user@karaf.a= pache.org
Betreff: Re: Aw: Shell commands are unavailable #1
Hi Jens,

shell doesn't really start a full Karaf instance, so, it's an expec= ted
behavior IMHO.

Regards
JB

On 01/06/2017 06:50 AM, Jens Offenbach wrote:
The problem seems to occur only when using the "shell" script fro= m the "bin" folder. Using "./start", followed by "= ./client", the commands "system:shutdown" and "logout&q= uot; are working properly.

Jens


Gesendet: Freitag, 06. Januar 2017 um 06:43 Uhr
Von: "Jens Offenbach" <wolle5050@gmx.de>
An: user@karaf.a= pache.org
Betreff: Shell commands are unavailable
Hi,
I am using Apache Karaf 4.1.0-Snapshot and in the current snapshot release,= there seems to be a problem regarding shell commands. I have opened the fo= llowing issue: https://issues.apache.org/jira/b= rowse/KARAF-4926. But things seem to be much more problematic. Even the= "logout" command is reported as unavailable.

I am using the last snapshot (apache-karaf-4.1.0-20170105.165025-279.tar= .gz") from the Apache snapshot repository.

Give it a try:
$ ./shell
[org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : completionM= ode property is not defined in etc/org.apache.karaf.shell.cfg file. Using d= efault completion mode.
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/

Apache Karaf (4.1.0-SNAPSHOT)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logo= ut' to shutdown Karaf.

karaf@root()> logout
[org.apache.karaf.shell.support.ShellUtil] : Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not fo= und: logout
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:= 549)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure= .java:478)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367= )
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Command not found: logout
karaf@root()> system:shutdown
[org.apache.karaf.shell.support.ShellUtil] : Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not fo= und: system:shutdown
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:= 549)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure= .java:478)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367= )
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Command not found: system:shutdown

This is a hard blocker right now. May someone please have a look at this.
Thanks a lot!

Regards,
Jens


--
Jean-Baptiste Onofr=C3=A9
jbonofre@apache.or= g
h= ttp://blog.nanthrax.net[http://blog.nanthrax.net]
Talend - http://www.talend.com[http://www.talend.com]


--
Jean-Baptiste Onofr=C3=A9
jbonofre@apache.or= g
h= ttp://blog.nanthrax.net
Talend - http://www.talend.com



--
------------------------
Guillaume No= det
------------------------
Red Hat,= =C2=A0Open Source Integration

=




--

Apache Member
Apache= Karaf <http://ka= raf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wi= ki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project L= ead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf C= ookbook <http://bit.= ly/1ps9rkS>

Software Architect / Project Ma= nager / Scrum Master=C2=A0




--
------------------------
Guil= laume Nodet
------------------------
= Red Hat,=C2=A0Open Source Integration





--
=
------------------------
Guillaume Node= t
------------------------
Red Hat,= =C2=A0Open Source Integration

=

--94eb2c0961c4a4b810054568bf2c--