You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Oleg Cohen <ol...@assurebridge.com> on 2018/10/24 16:00:26 UTC

Command not found: Error in Karaf shell

Greetings,

I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:

> ./bin/karaf debug

All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:

Command not found: restart

I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.

Thank you!
Oleg

Re: Command not found: Error in Karaf shell

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Oleg,

can you please if the full qualified name of the command still works ?

Instead of restart, try bundle:restart for instance.

I never had any issue on that kind.

Regards
JB

On 24/10/2018 18:00, Oleg Cohen wrote:
> Greetings,
> 
> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
> 
>> ./bin/karaf debug
> 
> All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:
> 
> Command not found: restart
> 
> I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.
> 
> Thank you!
> Oleg
> 

Re: Command not found: Error in Karaf shell

Posted by Oleg Cohen <ol...@assurebridge.com>.
Hi François,

I didn’t notice anything specific, let me try reproduce and grab the log.

Thank you,
Oleg


> On Oct 24, 2018, at 12:25 PM, Francois Papon <fr...@openobject.fr> wrote:
> 
> Hi Oleg,
> 
> Did you have some logs when the error occured ?
> 
> regards,
> 
> François Papon
> fpapon@apache.org
> 
> Le 24/10/2018 à 20:00, Oleg Cohen a écrit :
>> Greetings,
>> 
>> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
>> 
>>> ./bin/karaf debug
>> All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:
>> 
>> Command not found: restart
>> 
>> I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.
>> 
>> Thank you!
>> Oleg
> 


Re: Command not found: Error in Karaf shell

Posted by Francois Papon <fr...@openobject.fr>.
Hi Oleg,

Did you have some logs when the error occured ?

regards,

François Papon
fpapon@apache.org

Le 24/10/2018 à 20:00, Oleg Cohen a écrit :
> Greetings,
>
> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
>
>> ./bin/karaf debug
> All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:
>
> Command not found: restart
>
> I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.
>
> Thank you!
> Oleg


Re: Command not found: Error in Karaf shell

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Don't you have a refresh happen after feature:install or bundle:start ?

Do you have a test case to reproduce it ?

Thanks,
Regards
JB

On 25/10/2018 13:00, Oleg Cohen wrote:
> Hi JB,
> 
> What happens is that from that point on, no command works. I did try
> the fully qualified name. No luck. What I noticed this happens after
> either feature:install or bundle:start. I don’t notice anything in the
> logs that points to any specific Karaf failure.
> 
> Thank you,
> Oleg
> 
>> On Oct 25, 2018, at 12:26 AM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>>
>> Hi Oleg,
>>
>> can you please if the full qualified name of the command still works ?
>>
>> Instead of restart, try bundle:restart for instance.
>>
>> I never had any issue on that kind.
>>
>> Regards
>> JB
>>
>>> On 24/10/2018 18:00, Oleg Cohen wrote:
>>> Greetings,
>>>
>>> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
>>>
>>>> ./bin/karaf debug
>>>
>>> All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:
>>>
>>> Command not found: restart
>>>
>>> I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.
>>>
>>> Thank you!
>>> Oleg
>>>

Re: Command not found: Error in Karaf shell

Posted by Oleg Cohen <ol...@assurebridge.com>.
Hi JB,

What happens is that from that point on, no command works. I did try
the fully qualified name. No luck. What I noticed this happens after
either feature:install or bundle:start. I don’t notice anything in the
logs that points to any specific Karaf failure.

Thank you,
Oleg

> On Oct 25, 2018, at 12:26 AM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>
> Hi Oleg,
>
> can you please if the full qualified name of the command still works ?
>
> Instead of restart, try bundle:restart for instance.
>
> I never had any issue on that kind.
>
> Regards
> JB
>
>> On 24/10/2018 18:00, Oleg Cohen wrote:
>> Greetings,
>>
>> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
>>
>>> ./bin/karaf debug
>>
>> All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message:
>>
>> Command not found: restart
>>
>> I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system.
>>
>> Thank you!
>> Oleg
>>