Re: Aw: Re: Shell commands are unavailable #1

2017-01-05 Thread 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 <gno...@apache.org>:

> 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é <j...@nanthrax.net>:
>
>> That's a good point and actually, it's the real end-user usage 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
>>> --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.jav
>>> a:549)
>>> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closu
>>> re.java:478)
>>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:3
>>> 67)
>>> 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: wrapper:install
>>>
>>> Thanks!
>>>
>>>
>>> Gesendet: Freitag, 06. Januar 2017 um 07:32 Uhr
>>> Von: "Jean-Baptiste Onofré" <j...@nanthrax.net>
>>> 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 expected
>>> 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 commands
>>>> "system:shutdown" and "logout" are working properly.
>>>>
>>>> Jens
>>>>
>>>>
>>>> Gesendet: Freitag, 06. Januar 2017 um 06:43 Uhr
>>>> Von: "Jens Offenbach" <wolle5...@gmx.de>
>>>> 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 have
>>>> 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()> log

Re: Aw: Re: Shell commands are unavailable #1

2017-01-05 Thread 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é :

> That's a good point and actually, it's the real end-user usage 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
>> --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.jav
>> a:549)
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closu
>> re.java:478)
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:3
>> 67)
>> 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: wrapper:install
>>
>> Thanks!
>>
>>
>> Gesendet: Freitag, 06. Januar 2017 um 07:32 Uhr
>> Von: "Jean-Baptiste Onofré" 
>> 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 expected
>> 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 commands
>>> "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 have
>>> 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.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 

Re: Aw: Re: Shell commands are unavailable #1

2017-01-05 Thread Jean-Baptiste Onofré
That's a good point and actually, it's the real end-user usage 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 --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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$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é" 
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 expected
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 commands "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 have 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.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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!


Aw: Re: Shell commands are unavailable #1

2017-01-05 Thread Jens Offenbach
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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$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é" 
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 expected
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 commands 
> "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 have 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.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(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(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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(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(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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é
jbono...@apache.org

Re: Aw: Shell commands are unavailable #1

2017-01-05 Thread Jean-Baptiste Onofré

Hi Jens,

shell doesn't really start a full Karaf instance, so, it's an expected 
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 commands "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 have 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.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Aw: Shell commands are unavailable #1

2017-01-05 Thread Jens Offenbach
The problem seems to occur only when using the "shell" script from the "bin" 
folder. Using "./start", followed by "./client", the commands "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 have 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.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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


Shell commands are unavailable

2017-01-05 Thread Jens Offenbach
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 
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.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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(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(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.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


Re: SCP and SFTP not working

2017-01-05 Thread Achim Nierbeck
oh ... cool :)

2017-01-05 18:03 GMT+01:00 Guillaume Nodet :

> No, sftp and scp are fully supported by SSHD.
> In 2.2.x, scp seems enabled, but not ftp:
>   https://github.com/apache/karaf/blob/karaf-2.2.x/shell/
> ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L86-L92
>
> 3.x has both scp and ftp enabled:
>   https://github.com/apache/karaf/blob/karaf-3.0.x/shell/
> ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L103-L120
>
> 2017-01-05 17:37 GMT+01:00 Achim Nierbeck :
>
>> Hi,
>>
>> as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
>> take a look if it's even possible.
>> AFAIK it's only a simple SSH server, so no extra functionality like sftp
>> or scp are supported.
>> If you want to have a full-blown SSH server you need to use the operating
>> system supported ones.
>>
>> regards, Achim
>>
>>
>> 2017-01-05 17:25 GMT+01:00 Charles :
>>
>>> Hi
>>> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
>>> within Karaf, and in the inherited project Servicemix.  I use Camel to
>>> perform many integrations, storing properties files within the /etc folder.
>>> Ideally I’d like access to the /etc folder within Karaf to allow updates
>>> to the configuration files by my build tooling.
>>> Sadly I’ve not managed to get the SFTP / SCP faciility to work.  I’m
>>> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
>>> Any attempts to use SFTP via FTP client results in an error, or results in
>>> a folder presented to the client, with a  name that’s actually a date,
>>> which can’t be navigated.
>>> Thinking this may be a platform issue I’ve tried it on later vanilla
>>> Servicemix versions 6.0, 7.0 m2, and Karaf 4.  I’ve tried on those versions
>>> on Linux, and using Java 7 & 8.  No combination results in filesystem
>>> access.
>>> Can anyone confirm this facility works under other Karaf versions or
>>> environments?  Or am I doing something really dumb?
>>> Thanks
>>>
>>
>>
>>
>> --
>>
>> 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: gno...@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


Re: SCP and SFTP not working

2017-01-05 Thread Guillaume Nodet
No, sftp and scp are fully supported by SSHD.
In 2.2.x, scp seems enabled, but not ftp:

https://github.com/apache/karaf/blob/karaf-2.2.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L86-L92

3.x has both scp and ftp enabled:

https://github.com/apache/karaf/blob/karaf-3.0.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L103-L120

2017-01-05 17:37 GMT+01:00 Achim Nierbeck :

> Hi,
>
> as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
> take a look if it's even possible.
> AFAIK it's only a simple SSH server, so no extra functionality like sftp
> or scp are supported.
> If you want to have a full-blown SSH server you need to use the operating
> system supported ones.
>
> regards, Achim
>
>
> 2017-01-05 17:25 GMT+01:00 Charles :
>
>> Hi
>> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
>> within Karaf, and in the inherited project Servicemix.  I use Camel to
>> perform many integrations, storing properties files within the /etc folder.
>> Ideally I’d like access to the /etc folder within Karaf to allow updates
>> to the configuration files by my build tooling.
>> Sadly I’ve not managed to get the SFTP / SCP faciility to work.  I’m
>> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
>> Any attempts to use SFTP via FTP client results in an error, or results in
>> a folder presented to the client, with a  name that’s actually a date,
>> which can’t be navigated.
>> Thinking this may be a platform issue I’ve tried it on later vanilla
>> Servicemix versions 6.0, 7.0 m2, and Karaf 4.  I’ve tried on those versions
>> on Linux, and using Java 7 & 8.  No combination results in filesystem
>> access.
>> Can anyone confirm this facility works under other Karaf versions or
>> environments?  Or am I doing something really dumb?
>> Thanks
>>
>
>
>
> --
>
> 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: gno...@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/


Re: SCP and SFTP not working

2017-01-05 Thread Achim Nierbeck
Hi,

as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
take a look if it's even possible.
AFAIK it's only a simple SSH server, so no extra functionality like sftp or
scp are supported.
If you want to have a full-blown SSH server you need to use the operating
system supported ones.

regards, Achim


2017-01-05 17:25 GMT+01:00 Charles :

> Hi
> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
> within Karaf, and in the inherited project Servicemix.  I use Camel to
> perform many integrations, storing properties files within the /etc folder.
> Ideally I’d like access to the /etc folder within Karaf to allow updates
> to the configuration files by my build tooling.
> Sadly I’ve not managed to get the SFTP / SCP faciility to work.  I’m
> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
> Any attempts to use SFTP via FTP client results in an error, or results in
> a folder presented to the client, with a  name that’s actually a date,
> which can’t be navigated.
> Thinking this may be a platform issue I’ve tried it on later vanilla
> Servicemix versions 6.0, 7.0 m2, and Karaf 4.  I’ve tried on those versions
> on Linux, and using Java 7 & 8.  No combination results in filesystem
> access.
> Can anyone confirm this facility works under other Karaf versions or
> environments?  Or am I doing something really dumb?
> Thanks
>



-- 

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


SCP and SFTP not working

2017-01-05 Thread Charles
HiI’m trying to verify if I’ve foundan issue with the SFTP/SCP server within 
Karaf, and in the inherited project Servicemix.  I use Camel to perform many 
integrations,storing properties files within the /etc folder.  Ideally I’d like 
access to the /etc folderwithin Karaf to allow updates to the configuration 
files by my build tooling.
Sadly I’ve not managed to get theSFTP / SCP faciility to work.  I’mrunning 
Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.  Any 
attempts to use SFTP via FTP clientresults in an error, or results in a folder 
presented to the client, with a  name that’s actually a date, which can’t 
benavigated.

Thinking this may be a platformissue I’ve tried it on later vanilla Servicemix 
versions 6.0, 7.0 m2, and Karaf4.  I’ve tried on those versions on Linux,and 
using Java 7 & 8.  No combinationresults in filesystem access.

Can anyone confirm this facilityworks under other Karaf versions or 
environments?  Or amI doing something really dumb?

Thanks