You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by clarify <ha...@gmail.com> on 2018/02/11 11:55:04 UTC

karaf config:update says "Command not found"

I have done some edits using config:edit in a pid and config:property-set
commands
after this when I am executing config:update, karaf says that the command is
not found.
even in the display all commands, it doesnt show-up in the list
also checked for the alternative or new commands but no luck!
karaf version is: 3.0.0

<http://karaf.922171.n3.nabble.com/file/t498027/karaf-update-config-not-found.gif> 

Can anybody please help here? to resolve this issue or suggest alternative
command if this command is removed and not used any more? thanks



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
By the way are you using the ACL for config commands ?
Does the problem appear with both the local shell and ssh ?

Regards
JB

Le 12 févr. 2018 à 08:43, à 08:43, clarify <ha...@gmail.com> a écrit:
>Hi JB
>I think I may not be able to send the currently installed distro due to
>the
>NDA.
>and cannot re-install it also.. because I am relatively new to this
>framework. 
>
>but I could generate few logs. with Debug option. if it helps?
>here it is:
>
> | DEBUG | e ssh user karaf | ShellUtil                        | 47 -
>org.apache.karaf.shell.console - 3.0.0 | Unknown command entered
>org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
>found:
>config:update
>        at
>org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:497)
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:198)
>        at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:118)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:109)
>        at java.security.AccessController.doPrivileged(Native
>Method)[:1.7.0_51]
>        at
>org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[48:org.apache.karaf.jaas.modules:3.0.0]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:107)[47:org.apache.karaf.shell.console:3.0.0]
>
>
>
>
>--
>Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Unfortunately that doesn't help.

No chance to install a new instance (not reinstall) ?
Do you confirm it's a custom distribution ?

Regards
JB

Le 12 févr. 2018 à 08:43, à 08:43, clarify <ha...@gmail.com> a écrit:
>Hi JB
>I think I may not be able to send the currently installed distro due to
>the
>NDA.
>and cannot re-install it also.. because I am relatively new to this
>framework. 
>
>but I could generate few logs. with Debug option. if it helps?
>here it is:
>
> | DEBUG | e ssh user karaf | ShellUtil                        | 47 -
>org.apache.karaf.shell.console - 3.0.0 | Unknown command entered
>org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
>found:
>config:update
>        at
>org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:497)
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:198)
>        at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:118)[47:org.apache.karaf.shell.console:3.0.0]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:109)
>        at java.security.AccessController.doPrivileged(Native
>Method)[:1.7.0_51]
>        at
>org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[48:org.apache.karaf.jaas.modules:3.0.0]
>        at
>org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:107)[47:org.apache.karaf.shell.console:3.0.0]
>
>
>
>
>--
>Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

Posted by clarify <ha...@gmail.com>.
Hi JB
I think I may not be able to send the currently installed distro due to the
NDA.
and cannot re-install it also.. because I am relatively new to this
framework. 

but I could generate few logs. with Debug option. if it helps?
here it is:

 | DEBUG | e ssh user karaf | ShellUtil                        | 47 -
org.apache.karaf.shell.console - 3.0.0 | Unknown command entered
org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found:
config:update
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
        at
org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:497)
        at
org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:198)
        at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
        at
org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:118)[47:org.apache.karaf.shell.console:3.0.0]
        at
org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:109)
        at java.security.AccessController.doPrivileged(Native
Method)[:1.7.0_51]
        at
org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[48:org.apache.karaf.jaas.modules:3.0.0]
        at
org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:107)[47:org.apache.karaf.shell.console:3.0.0]




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

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

I think it's an issue related to the environment or custom distro.

Do you have a chance to send a tarball with your Karaf distribution ? 

Did you try with a fresh Karaf instance on your machine ?

Regards
JB

Le 12 févr. 2018 à 08:22, à 08:22, clarify <ha...@gmail.com> a écrit:
>Hi JB
>after your reply I had shared the details requested by you in the same
>ticket. But there was no response. So I tried out different avenues to
>target this issue.
>& since there were no Logs generated for this in the karaf.log file, I
>wasnt
>able to send you the logs for this.
>Wasnt aware both the forums (this and karaf.apache.org) are same or
>have
>similar processes/posts shared between.
>
>Can you please advice now after my reply to that, if you were able to
>understand it now? Or please let me know for further inputs required?
>
>thanks again!
>
>
>
>
>
>--
>Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

Posted by clarify <ha...@gmail.com>.
Hi JB
after your reply I had shared the details requested by you in the same
ticket. But there was no response. So I tried out different avenues to
target this issue.
& since there were no Logs generated for this in the karaf.log file, I wasnt
able to send you the logs for this.
Wasnt aware both the forums (this and karaf.apache.org) are same or have
similar processes/posts shared between.

Can you please advice now after my reply to that, if you were able to
understand it now? Or please let me know for further inputs required?

thanks again!





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: karaf config:update says "Command not found"

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

I already answered in the corresponding Jira:

https://issues.apache.org/jira/browse/KARAF-5603

As said, I'm not able to reproduce on 3.0.0. I asked if it's a custom Karaf
distribution.
I also asked for complete log.

Did you try for a fresh Karaf 3.0.0 (or newer version) from Karaf website ?

Regards
JB

On 02/11/2018 12:55 PM, clarify wrote:
> I have done some edits using config:edit in a pid and config:property-set
> commands
> after this when I am executing config:update, karaf says that the command is
> not found.
> even in the display all commands, it doesnt show-up in the list
> also checked for the alternative or new commands but no luck!
> karaf version is: 3.0.0
> 
> <http://karaf.922171.n3.nabble.com/file/t498027/karaf-update-config-not-found.gif> 
> 
> Can anybody please help here? to resolve this issue or suggest alternative
> command if this command is removed and not used any more? thanks
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com