[jira] [Created] (KARAF-5051) Command "shell wrapper:install" fails
Jens Offenbach created KARAF-5051: - Summary: Command "shell wrapper:install" fails Key: KARAF-5051 URL: https://issues.apache.org/jira/browse/KARAF-5051 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.1 Reporter: Jens Offenbach I am currently using {{apache-karaf-4.1.1-20170320.164246-38.tar.gz}} on Ubuntu 16.04 LTS and the following command fails: {code} $ shell wrapper:install --start-type DEMAND_START [org.apache.karaf.shell.support.ShellUtil] : Command exception (Undefined option, ...) org.apache.karaf.shell.support.CommandException: Too many arguments specified at org.apache.karaf.shell.impl.action.command.DefaultActionPreparator.prepare(DefaultActionPreparator.java:160) at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83) at org.apache.karaf.shell.impl.console.CommandWrapper.execute(CommandWrapper.java:53) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 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) Error executing command wrapper:install: too many arguments specified {code} May someone please have a look. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Created] (KARAF-4948) Upgrae to Felix SCR 2.0.8
Jens Offenbach created KARAF-4948: - Summary: Upgrae to Felix SCR 2.0.8 Key: KARAF-4948 URL: https://issues.apache.org/jira/browse/KARAF-4948 Project: Karaf Issue Type: Dependency upgrade Affects Versions: 4.1.0 Reporter: Jens Offenbach Please upgrade to Apache Felix SCR 2.0.8. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4926) Command "shell wrapper:install" not working
[ https://issues.apache.org/jira/browse/KARAF-4926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4926: -- Issue Type: Bug (was: Dependency upgrade) > Command "shell wrapper:install" not working > --- > > Key: KARAF-4926 > URL: https://issues.apache.org/jira/browse/KARAF-4926 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 > Environment: Ubuntu 16.04 with > apache-karaf-4.1.0-20170105.154120-278.tar.gz >Reporter: Jens Offenbach > > During the last script change, something got broken. The following command is > no longer working: > {code} > $ 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 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4926) Comman "shell wrapper:install" not working
Jens Offenbach created KARAF-4926: - Summary: Comman "shell wrapper:install" not working Key: KARAF-4926 URL: https://issues.apache.org/jira/browse/KARAF-4926 Project: Karaf Issue Type: Dependency upgrade Components: karaf-shell Affects Versions: 4.1.0 Environment: Ubuntu 16.04 with apache-karaf-4.1.0-20170105.154120-278.tar.gz Reporter: Jens Offenbach During the last script change, something got broken. The following command is no longer working: {code} $ 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 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4926) Command "shell wrapper:install" not working
[ https://issues.apache.org/jira/browse/KARAF-4926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4926: -- Summary: Command "shell wrapper:install" not working (was: Comman "shell wrapper:install" not working) > Command "shell wrapper:install" not working > --- > > Key: KARAF-4926 > URL: https://issues.apache.org/jira/browse/KARAF-4926 > Project: Karaf > Issue Type: Dependency upgrade > Components: karaf-shell >Affects Versions: 4.1.0 > Environment: Ubuntu 16.04 with > apache-karaf-4.1.0-20170105.154120-278.tar.gz >Reporter: Jens Offenbach > > During the last script change, something got broken. The following command is > no longer working: > {code} > $ 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 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4923) Upgrade to Eclipse Equinox 3.11.2 (Neon.2)
Jens Offenbach created KARAF-4923: - Summary: Upgrade to Eclipse Equinox 3.11.2 (Neon.2) Key: KARAF-4923 URL: https://issues.apache.org/jira/browse/KARAF-4923 Project: Karaf Issue Type: Dependency upgrade Components: karaf-core Affects Versions: 4.1.0 Reporter: Jens Offenbach Please upgrade to Eclipse Equinox 3.11.2 (Neon.2). Maven-Artifact: {{org.eclipse.tycho:org.eclipse.osgi:3.11.2.v20161107-1947}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4869) Instance start failed.
[ https://issues.apache.org/jira/browse/KARAF-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4869: -- Environment: (was: Start of an instance fails without any printed error in the CLI. The instance log shows the error: {code} Nov 30, 2016 9:27:00 AM org.apache.karaf.main.Main main SEVERE: Could not launch framework java.lang.RuntimeException: Could not resolve mvn:org.apache.felix/org.apache.felix.framework/@@felix.framework.version@@ at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59) at org.apache.karaf.main.Main.createClassLoader(Main.java:445) at org.apache.karaf.main.Main.launch(Main.java:252) at org.apache.karaf.main.Main.main(Main.java:178) {code} It seems to be a variable interpolation problem. The file "config.properties" that gets added to the bundle "org.apache.karaf.instance.core" contains some non-interpolated values. ) > Instance start failed. > -- > > Key: KARAF-4869 > URL: https://issues.apache.org/jira/browse/KARAF-4869 > Project: Karaf > Issue Type: Bug > Components: karaf-instance >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4869) Instance start failed.
[ https://issues.apache.org/jira/browse/KARAF-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4869: -- Description: Start of an instance fails without any printed error in the CLI. The instance log shows the error: {code} Nov 30, 2016 9:27:00 AM org.apache.karaf.main.Main main SEVERE: Could not launch framework java.lang.RuntimeException: Could not resolve mvn:org.apache.felix/org.apache.felix.framework/@@felix.framework.version@@ at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59) at org.apache.karaf.main.Main.createClassLoader(Main.java:445) at org.apache.karaf.main.Main.launch(Main.java:252) at org.apache.karaf.main.Main.main(Main.java:178) {code} It seems to be a variable interpolation problem. The file "config.properties" that gets added to the bundle "org.apache.karaf.instance.core" contains some non-interpolated values. > Instance start failed. > -- > > Key: KARAF-4869 > URL: https://issues.apache.org/jira/browse/KARAF-4869 > Project: Karaf > Issue Type: Bug > Components: karaf-instance >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > > Start of an instance fails without any printed error in the CLI. The instance > log shows the error: > {code} > Nov 30, 2016 9:27:00 AM org.apache.karaf.main.Main main > SEVERE: Could not launch framework > java.lang.RuntimeException: Could not resolve > mvn:org.apache.felix/org.apache.felix.framework/@@felix.framework.version@@ > at > org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59) > at org.apache.karaf.main.Main.createClassLoader(Main.java:445) > at org.apache.karaf.main.Main.launch(Main.java:252) > at org.apache.karaf.main.Main.main(Main.java:178) > {code} > It seems to be a variable interpolation problem. The file "config.properties" > that gets added to the bundle "org.apache.karaf.instance.core" contains some > non-interpolated values. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4869) Instance start failed.
Jens Offenbach created KARAF-4869: - Summary: Instance start failed. Key: KARAF-4869 URL: https://issues.apache.org/jira/browse/KARAF-4869 Project: Karaf Issue Type: Bug Components: karaf-instance Affects Versions: 4.1.0 Environment: Start of an instance fails without any printed error in the CLI. The instance log shows the error: {code} Nov 30, 2016 9:27:00 AM org.apache.karaf.main.Main main SEVERE: Could not launch framework java.lang.RuntimeException: Could not resolve mvn:org.apache.felix/org.apache.felix.framework/@@felix.framework.version@@ at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59) at org.apache.karaf.main.Main.createClassLoader(Main.java:445) at org.apache.karaf.main.Main.launch(Main.java:252) at org.apache.karaf.main.Main.main(Main.java:178) {code} It seems to be a variable interpolation problem. The file "config.properties" that gets added to the bundle "org.apache.karaf.instance.core" contains some non-interpolated values. Reporter: Jens Offenbach -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4868) Encoding problems in CLI with shell table output
Jens Offenbach created KARAF-4868: - Summary: Encoding problems in CLI with shell table output Key: KARAF-4868 URL: https://issues.apache.org/jira/browse/KARAF-4868 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.0 Reporter: Jens Offenbach When terminal encoding does not support UTF-8, the output gives something like this: {code} instance:list 08:31:41 > SSH Port ? SSH Host ? RMI Registry ? RMI Registry Host ? RMI Server ? RMI > Server Host ? State ? PID ? Name > ?? > 8101 ? 0.0.0.0 ? 1099 ? 127.0.0.1 ? 4 ? 127.0.0.1 ? Started ? 26740 ? root {code} In this case, I would be more preferable to suppress the special characters (used as separators) in the shell table output. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4867) java.lang.NullPointerException during instance creation
Jens Offenbach created KARAF-4867: - Summary: java.lang.NullPointerException during instance creation Key: KARAF-4867 URL: https://issues.apache.org/jira/browse/KARAF-4867 Project: Karaf Issue Type: Bug Components: karaf-instance Affects Versions: 4.1.0 Reporter: Jens Offenbach Instance creation with Karaf 4.1.0-SNAPSHOT throws NullPointerException. Have a look at the log output: {code} 2016-11-29T08:58:35,722 | DEBUG | Karaf ssh console user karaf | LoggingCommandSessionListener| 44 - org.apache.karaf.shell.core - 4.1.0.SNAPSHOT | Executing command: 'instance:create test01' 2016-11-29T08:58:35,726 | INFO | pipe-instance:create test01 | InstanceServiceImpl | 32 - org.apache.karaf.instance.core - 4.1.0.SNAPSHOT | Creating new instance on SSH port 8102 and registry port 1100 / RMI server port 5 at: /opt/apache-karaf-4.1.0-SNAPSHOT/instances/test01 2016-11-29T08:58:35,729 | DEBUG | pipe-instance:create test01 | InstanceServiceImpl | 32 - org.apache.karaf.instance.core - 4.1.0.SNAPSHOT | Creating file: /opt/apache-karaf-4.1.0-SNAPSHOT/instances/test01/etc/org.apache.karaf.jaas.cfg 2016-11-29T08:58:35,731 | DEBUG | Karaf ssh console user karaf | LoggingCommandSessionListener| 44 - org.apache.karaf.shell.core - 4.1.0.SNAPSHOT | Command: 'instance:create test01' failed: java.lang.NullPointerException 2016-11-29T08:58:35,732 | ERROR | Karaf ssh console user karaf | ShellUtil | 44 - org.apache.karaf.shell.core - 4.1.0.SNAPSHOT | Exception caught while executing command java.lang.NullPointerException at java.io.Reader.(Reader.java:78) [?:?] at java.io.InputStreamReader.(InputStreamReader.java:72) [?:?] at java.util.Scanner.(Scanner.java:563) [?:?] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.copyStream(InstanceServiceImpl.java:1126) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.copyResourceToDir(InstanceServiceImpl.java:1088) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.copyResourcesToDir(InstanceServiceImpl.java:1076) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.access$500(InstanceServiceImpl.java:64) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl$2.call(InstanceServiceImpl.java:335) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl$2.call(InstanceServiceImpl.java:270) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl$1.call(InstanceServiceImpl.java:234) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.util.locks.FileLockUtils$2.call(FileLockUtils.java:103) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.util.locks.FileLockUtils.execute(FileLockUtils.java:69) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.util.locks.FileLockUtils.execute(FileLockUtils.java:97) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.execute(InstanceServiceImpl.java:231) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.core.internal.InstanceServiceImpl.createInstance(InstanceServiceImpl.java:270) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.command.CreateCommand.doExecute(CreateCommand.java:125) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.instance.command.InstanceCommandSupport.execute(InstanceCommandSupport.java:90) [32:org.apache.karaf.instance.core:4.1.0.SNAPSHOT] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:82) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:548) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:474) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:363) [44:org.apache.karaf.shell.core:4.1.0.SNAPSHOT] at
[jira] [Updated] (KARAF-4846) Property karaf.etc must be a canoncial path
[ https://issues.apache.org/jira/browse/KARAF-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4846: -- Description: Under Windows 7 the environment variable {{karaf.etc}} points to {{C:\Users\myuser\Desktop\apache-karaf-4.1.0-SNAPSHOT\bin\..\etc}} causing inconsistencies when the canoncial path representation gets used. (was: Under Windows 7 the environment variable {{karaf.etc}} points to {{C:\Users\myuser\Desktop\apache-karaf-4.1.0-SNAPSHOT\bin\..\etc}} causing inconsistencies when the canoncial path respresentation gets used.) > Property karaf.etc must be a canoncial path > --- > > Key: KARAF-4846 > URL: https://issues.apache.org/jira/browse/KARAF-4846 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > > Under Windows 7 the environment variable {{karaf.etc}} points to > {{C:\Users\myuser\Desktop\apache-karaf-4.1.0-SNAPSHOT\bin\..\etc}} causing > inconsistencies when the canoncial path representation gets used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4846) Property karaf.etc must be a canoncial path
Jens Offenbach created KARAF-4846: - Summary: Property karaf.etc must be a canoncial path Key: KARAF-4846 URL: https://issues.apache.org/jira/browse/KARAF-4846 Project: Karaf Issue Type: Bug Components: karaf-core Affects Versions: 4.1.0 Reporter: Jens Offenbach Under Windows 7 the environment variable {{karaf.etc}} points to {{C:\Users\myuser\Desktop\apache-karaf-4.1.0-SNAPSHOT\bin\..\etc}} causing inconsistencies when the canoncial path respresentation gets used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4843) Updating factory configuration leads to new configuration instance
Jens Offenbach created KARAF-4843: - Summary: Updating factory configuration leads to new configuration instance Key: KARAF-4843 URL: https://issues.apache.org/jira/browse/KARAF-4843 Project: Karaf Issue Type: Bug Components: karaf-config Affects Versions: 4.1.0 Reporter: Jens Offenbach Start with a fresh Karaf 4.1.0-SNAPSHOT installation and validate that felix.fileinstall.enableConfigSave = true is set. Scenario: - Create a factory configuration. - Update the configuration. Result: The configuration gets updated, but a new configuration with another incorrect service.factoryPid gets created: Steps to reproduce: {code} karaf@root()> config:edit --factory com.example.TestConfig karaf@root()> config:property-set A B karaf@root()> config:update karaf@root()> config:list '(service.factoryPid=com.example.TestConfig*)' Pid:com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af FactoryPid: com.example.TestConfig BundleLocation: null Properties: A = B service.factoryPid = com.example.TestConfig service.pid = com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af karaf@root()> config:edit com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af karaf@root()> config:property-set A C karaf@root()> config:update karaf@root()> config:list '(service.factoryPid=com.example.TestConfig*)' Pid:com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af FactoryPid: com.example.TestConfig BundleLocation: null Properties: A = C service.factoryPid = com.example.TestConfig service.pid = com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af Pid: com.example.TestConfig.8d22975e.22055df0-4a85-4b87-94c6-7787cd84a8e5 FactoryPid: com.example.TestConfig.8d22975e BundleLocation: null Properties: A = C felix.fileinstall.filename = file:/opt/apache-karaf-4.1.0-SNAPSHOT/etc/com.example.TestConfig.8d22975e-3cb3-477c-985d-7c1a1d9f98af.cfg service.factoryPid = com.example.TestConfig.8d22975e service.pid = com.example.TestConfig.8d22975e.22055df0-4a85-4b87-94c6-7787cd84a8e5 karaf@root()> config:list '(service.factoryPid=com.example.TestConfigd*)' {code} I think that there is a problem with fileinstall and hyphen handling. The string before the hyphen is interpreted as factoryPid resulting in "com.example.TestConfig.8d22975e". Fileinstall tries to find the existing configuration using the key "felix.fileinstall.filename" which is not set by "ConfigRepositoryImpl". Solution: I am not sure, but I think, that in the "update"-method of "ConfigRepositoryImpl", the "felix.fileinstall.filename"-property has to be set explicitly and that an alias has be used that does not contain a hyphen. What are your thoughts? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15503228#comment-15503228 ] Jens Offenbach commented on KARAF-4713: --- I made a quick test today and the issue is gone. Excellent work! Thank you very much. > Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: > /dev/pts/0: Permission denied > > > Key: KARAF-4713 > URL: https://issues.apache.org/jira/browse/KARAF-4713 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 > Environment: Ubuntu 16.04. LTS, kernel 4.4.0-36-generic, openjdk > 1.8.0_91 >Reporter: Jens Offenbach >Assignee: Guillaume Nodet > Labels: client, jline, ssh-agent, sshd > Fix For: 4.1.0 > > > I am locked in to my system via SSH as user "root". When I change to the user > "karaf" that owns and executes the Karaf Container and try to login to the > server (The client ssh key was enabled in keys.properties) using: > {code} > root@testhost: su - karaf > karaf@testhost: client -v > {code} > I get the following error: > {code} > java.io.IOException: Error executing 'stty -F /dev/pts/0 -a': stty: > /dev/pts/0: Permission denied > at org.jline.terminal.impl.ExecPty.exec(ExecPty.java:278) > at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:157) > at org.jline.terminal.impl.ExecPty.getAttr(ExecPty.java:88) > at > org.jline.terminal.impl.AbstractPosixTerminal.(AbstractPosixTerminal.java:19) > at > org.jline.terminal.impl.PosixSysTerminal.(PosixSysTerminal.java:36) > at > org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:145) > at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:93) > at > org.jline.terminal.TerminalBuilder.terminal(TerminalBuilder.java:36) > at org.apache.karaf.client.Main.main(Main.java:158) > {code} > The issue is a new one in Karaf 4.1.0. It does not occur in the last stable > release Karaf 4.0.6. > I switched to debug. This is the output when login fails: > {code} > 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server > session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, > remote=/0:0:0:0:0:0:0:1:34574] > 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | > sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking > 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | > VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed > (FileNotFoundException) to load version properties: Resource does not exists > 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | > sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): > SSH-2.0-SSHD-UNKNOWN > 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | > Writing 22 bytes > 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | > handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, > remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 > 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | > handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, > remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes > 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | > doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) > line='SSH-2.0-SSHD-CORE-1.2.0' > 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | > readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client > version string: SSH-2.0-SSHD-CORE-1.2.0 > 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | > resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded > key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw > 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | > ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | >
[jira] [Updated] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4713: -- Description: I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} root@testhost: su - karaf karaf@testhost: client -v {code} I get the following error: {code} java.io.IOException: Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied at org.jline.terminal.impl.ExecPty.exec(ExecPty.java:278) at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:157) at org.jline.terminal.impl.ExecPty.getAttr(ExecPty.java:88) at org.jline.terminal.impl.AbstractPosixTerminal.(AbstractPosixTerminal.java:19) at org.jline.terminal.impl.PosixSysTerminal.(PosixSysTerminal.java:36) at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:145) at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:93) at org.jline.terminal.TerminalBuilder.terminal(TerminalBuilder.java:36) at org.apache.karaf.client.Main.main(Main.java:158) {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. I switched to debug. This is the output when login fails: {code} 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574] 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): SSH-2.0-SSHD-UNKNOWN 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 22 bytes 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) line='SSH-2.0-SSHD-CORE-1.2.0' 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client version string: SSH-2.0-SSHD-CORE-1.2.0 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Send SSH_MSG_KEXINIT 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 400 bytes 2016-09-14T15:18:25,016 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=400 2016-09-14T15:18:25,017 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | handleKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) SSH_MSG_KEXINIT 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 |
[jira] [Updated] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4713: -- Description: I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} su - karaf client -v {code} I get the following error: {code} java.io.IOException: Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied at org.jline.terminal.impl.ExecPty.exec(ExecPty.java:278) at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:157) at org.jline.terminal.impl.ExecPty.getAttr(ExecPty.java:88) at org.jline.terminal.impl.AbstractPosixTerminal.(AbstractPosixTerminal.java:19) at org.jline.terminal.impl.PosixSysTerminal.(PosixSysTerminal.java:36) at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:145) at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:93) at org.jline.terminal.TerminalBuilder.terminal(TerminalBuilder.java:36) at org.apache.karaf.client.Main.main(Main.java:158) {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. I switched to debug. This is the output when login fails: {code} 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574] 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): SSH-2.0-SSHD-UNKNOWN 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 22 bytes 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) line='SSH-2.0-SSHD-CORE-1.2.0' 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client version string: SSH-2.0-SSHD-CORE-1.2.0 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Send SSH_MSG_KEXINIT 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 400 bytes 2016-09-14T15:18:25,016 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=400 2016-09-14T15:18:25,017 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | handleKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) SSH_MSG_KEXINIT 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | setNegotiationResult(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Kex: server->client
[jira] [Updated] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4713: -- Description: I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} root@test-host: su - karaf karaf@test-host: client -v {code} I get the following error: {code} java.io.IOException: Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied at org.jline.terminal.impl.ExecPty.exec(ExecPty.java:278) at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:157) at org.jline.terminal.impl.ExecPty.getAttr(ExecPty.java:88) at org.jline.terminal.impl.AbstractPosixTerminal.(AbstractPosixTerminal.java:19) at org.jline.terminal.impl.PosixSysTerminal.(PosixSysTerminal.java:36) at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:145) at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:93) at org.jline.terminal.TerminalBuilder.terminal(TerminalBuilder.java:36) at org.apache.karaf.client.Main.main(Main.java:158) {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. I switched to debug. This is the output when login fails: {code} 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574] 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): SSH-2.0-SSHD-UNKNOWN 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 22 bytes 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) line='SSH-2.0-SSHD-CORE-1.2.0' 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client version string: SSH-2.0-SSHD-CORE-1.2.0 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Send SSH_MSG_KEXINIT 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 400 bytes 2016-09-14T15:18:25,016 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=400 2016-09-14T15:18:25,017 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | handleKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) SSH_MSG_KEXINIT 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 |
[jira] [Updated] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4713: -- Description: I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} $su - karaf $client -v {code} I get the following error: {code} java.io.IOException: Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied at org.jline.terminal.impl.ExecPty.exec(ExecPty.java:278) at org.jline.terminal.impl.ExecPty.doGetConfig(ExecPty.java:157) at org.jline.terminal.impl.ExecPty.getAttr(ExecPty.java:88) at org.jline.terminal.impl.AbstractPosixTerminal.(AbstractPosixTerminal.java:19) at org.jline.terminal.impl.PosixSysTerminal.(PosixSysTerminal.java:36) at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:145) at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:93) at org.jline.terminal.TerminalBuilder.terminal(TerminalBuilder.java:36) at org.apache.karaf.client.Main.main(Main.java:158) {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. I switched to debug. This is the output when login fails: {code} 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574] 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): SSH-2.0-SSHD-UNKNOWN 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 22 bytes 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) line='SSH-2.0-SSHD-CORE-1.2.0' 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client version string: SSH-2.0-SSHD-CORE-1.2.0 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Send SSH_MSG_KEXINIT 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 400 bytes 2016-09-14T15:18:25,016 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=400 2016-09-14T15:18:25,017 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | handleKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) SSH_MSG_KEXINIT 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | setNegotiationResult(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Kex: server->client
[jira] [Updated] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
[ https://issues.apache.org/jira/browse/KARAF-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4713: -- Description: I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} $su - karaf $client {code} I get the following error: {code} Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. I switched to debug. This is the output when login fails: {code} 2016-09-14T15:18:24,966 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | Server session created Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574] 2016-09-14T15:18:24,979 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SessionTimeoutListener | 48 - org.apache.sshd.core - 1.2.0 | sessionCreated(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) tracking 2016-09-14T15:18:24,981 | WARN | sshd-SshServer[420249ea]-nio2-thread-1 | VersionProperties$LazyHolder | 48 - org.apache.sshd.core - 1.2.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists 2016-09-14T15:18:24,981 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]): SSH-2.0-SSHD-UNKNOWN 2016-09-14T15:18:24,982 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 22 bytes 2016-09-14T15:18:24,989 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=22 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 729 bytes 2016-09-14T15:18:24,992 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | doReadIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) line='SSH-2.0-SSHD-CORE-1.2.0' 2016-09-14T15:18:24,993 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | readIdentification(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) client version string: SSH-2.0-SSHD-CORE-1.2.0 2016-09-14T15:18:25,013 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | SimpleGeneratorHostKeyProvider | 48 - org.apache.sshd.core - 1.2.0 | resolveKeyPair(/opt/apache-karaf/etc/host.key) loaded key=ssh-rsa-SHA256:8HfU+9gdtN/stc9D0jaiIvUGQYXRJxSnfdS7FqK6nWw 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | sendKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Send SSH_MSG_KEXINIT 2016-09-14T15:18:25,015 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | Writing 400 bytes 2016-09-14T15:18:25,016 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleCompletedWriteCycle(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) finished writing len=400 2016-09-14T15:18:25,017 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | handleKexInit(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) SSH_MSG_KEXINIT 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | setNegotiationResult(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Kex: server->client aes128-ctr hmac-sha1 none 2016-09-14T15:18:25,018 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | ServerSessionImpl| 48 - org.apache.sshd.core - 1.2.0 | setNegotiationResult(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:34574]) Kex: client->server aes128-ctr hmac-sha1 none 2016-09-14T15:18:25,029 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | Nio2Session | 48 - org.apache.sshd.core - 1.2.0 | handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:1:8101, remote=/0:0:0:0:0:0:0:1:34574]) read 152 bytes 2016-09-14T15:18:25,038 | DEBUG | sshd-SshServer[420249ea]-nio2-thread-1 | DHGServer| 48 - org.apache.sshd.core - 1.2.0 |
[jira] [Created] (KARAF-4713) Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied
Jens Offenbach created KARAF-4713: - Summary: Using client fails with Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied Key: KARAF-4713 URL: https://issues.apache.org/jira/browse/KARAF-4713 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.0 Environment: Ubuntu 16.04. LTS, kernel 4.4.0-36-generic, openjdk 1.8.0_91 Reporter: Jens Offenbach I am locked in to my system via SSH as user "root". When I change to the user "karaf" that owns and executes the Karaf Container and try to login to the server (The client ssh key was enabled in keys.properties) using: {code} $su - karaf $client {code} I get the following error: {code} Error executing 'stty -F /dev/pts/0 -a': stty: /dev/pts/0: Permission denied {code} The issue is a new one in Karaf 4.1.0. It does not occur in the last stable release Karaf 4.0.6. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4705) java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
[ https://issues.apache.org/jira/browse/KARAF-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4705: -- Description: After quick fixing (https://issues.apache.org/jira/browse/KARAF-4704). There is a new issue: /opt/apache-karaf/bin/shell wrapper:install Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely? was: /opt/apache-karaf/bin/shell wrapper:install Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely? > java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory > -- > > Key: KARAF-4705 > URL: https://issues.apache.org/jira/browse/KARAF-4705 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > Labels: jline, shell > > After quick fixing (https://issues.apache.org/jira/browse/KARAF-4704). There > is a new issue: > /opt/apache-karaf/bin/shell wrapper:install > Exception in thread "main" java.lang.ClassNotFoundException: > org.jledit.ConcreteEditorFactory > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at > org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) > at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) > The source seems to be "[KARAF-4570] Upgrade to JLine 3": > https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. > The file > "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" > contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be > obsolete. Must this line be replaced or can it be deleted completely? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4705) java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
[ https://issues.apache.org/jira/browse/KARAF-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4705: -- Description: After quick fixing (https://issues.apache.org/jira/browse/KARAF-4704), we get a new issue: /opt/apache-karaf/bin/shell wrapper:install Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely? was: After quick fixing (https://issues.apache.org/jira/browse/KARAF-4704). There is a new issue: /opt/apache-karaf/bin/shell wrapper:install Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely? > java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory > -- > > Key: KARAF-4705 > URL: https://issues.apache.org/jira/browse/KARAF-4705 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > Labels: jline, shell > > After quick fixing (https://issues.apache.org/jira/browse/KARAF-4704), we get > a new issue: > /opt/apache-karaf/bin/shell wrapper:install > Exception in thread "main" java.lang.ClassNotFoundException: > org.jledit.ConcreteEditorFactory > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at > org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) > at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) > at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) > The source seems to be "[KARAF-4570] Upgrade to JLine 3": > https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. > The file > "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" > contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be > obsolete. Must this line be replaced or can it be deleted completely? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-4705) java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
Jens Offenbach created KARAF-4705: - Summary: java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory Key: KARAF-4705 URL: https://issues.apache.org/jira/browse/KARAF-4705 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.0 Reporter: Jens Offenbach /opt/apache-karaf/bin/shell wrapper:install Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136) at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76) at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58) The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a. The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (KARAF-4704) Unwanted variable interpolation in shell scripts
[ https://issues.apache.org/jira/browse/KARAF-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4704: -- Description: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } SHOULD: realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. was: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: {code} realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} SHOULD: {code} realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. > Unwanted variable interpolation in shell scripts > > > Key: KARAF-4704 > URL: https://issues.apache.org/jira/browse/KARAF-4704 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > Labels: bash, shell-script > > There is a variable interpolation problem in the shell scripts "/bin/shell", > "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files > can be found here: > https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). > > Because the shell scripts get filtered by Maven, the variable ${PWD} gets > accidently replaced during the build process by > "/home/jenkins/jenkins-slave". I am refering to the nightly builds available > in the Apache Snapshot Repository: > https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ > IS: > realpath() { > OURPWD=/home/jenkins/jenkins-slave > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")" > LINK=$(readlink "$(basename "${1}")") > done > REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" > cd "${OURPWD}" > echo "${REALPATH}" > } > SHOULD: > realpath() { > OURPWD=${PWD} > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")" > LINK=$(readlink "$(basename "${1}")") > done >
[jira] [Updated] (KARAF-4704) Unwanted variable interpolation in shell scripts
[ https://issues.apache.org/jira/browse/KARAF-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4704: -- Description: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: {code} realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} SHOULD: {code} realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. was: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: {code} realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} SHOULD: {code} realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. > Unwanted variable interpolation in shell scripts > > > Key: KARAF-4704 > URL: https://issues.apache.org/jira/browse/KARAF-4704 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > Labels: bash, shell-script > > There is a variable interpolation problem in the shell scripts "/bin/shell", > "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files > can be found here: > https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). > > Because the shell scripts get filtered by Maven, the variable ${PWD} gets > accidently replaced during the build process by > "/home/jenkins/jenkins-slave". I am refering to the nightly builds available > in the Apache Snapshot Repository: > https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ > IS: > {code} > realpath() { > OURPWD=/home/jenkins/jenkins-slave > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")" > LINK=$(readlink "$(basename "${1}")") > done > REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" > cd "${OURPWD}" > echo "${REALPATH}" > } > {code} > SHOULD: > {code} > realpath() { > OURPWD=${PWD} > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")"
[jira] [Updated] (KARAF-4704) Unwanted variable interpolation in shell scripts
[ https://issues.apache.org/jira/browse/KARAF-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Offenbach updated KARAF-4704: -- Description: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: {code} realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} SHOULD: {code} realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } {code} We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. was: There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } SHOULD: realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. > Unwanted variable interpolation in shell scripts > > > Key: KARAF-4704 > URL: https://issues.apache.org/jira/browse/KARAF-4704 > Project: Karaf > Issue Type: Bug > Components: karaf-shell >Affects Versions: 4.1.0 >Reporter: Jens Offenbach > Labels: bash, shell-script > > There is a variable interpolation problem in the shell scripts "/bin/shell", > "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files > can be found here: > https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). > > Because the shell scripts get filtered by Maven, the variable ${PWD} gets > accidently replaced during the build process by > "/home/jenkins/jenkins-slave". I am refering to the nightly builds available > in the Apache Snapshot Repository: > https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ > IS: > {code} > realpath() { > OURPWD=/home/jenkins/jenkins-slave > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")" > LINK=$(readlink "$(basename "${1}")") > done > REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" > cd "${OURPWD}" > echo "${REALPATH}" > } > {code} > SHOULD: > {code} > realpath() { > OURPWD=${PWD} > cd "$(dirname "${1}")" > LINK=$(readlink "$(basename "${1}")") > while [ "${LINK}" ]; do > cd "$(dirname "${LINK}")" > LINK=$(readlink
[jira] [Created] (KARAF-4704) Unwanted variable interpolation in shell scripts
Jens Offenbach created KARAF-4704: - Summary: Unwanted variable interpolation in shell scripts Key: KARAF-4704 URL: https://issues.apache.org/jira/browse/KARAF-4704 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.0 Reporter: Jens Offenbach There is a variable interpolation problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client", ... of Karaf 4.1.0-SNAPSHOT. All affected files can be found here: https://github.com/apache/karaf/tree/master/assemblies/features/base/src/main/filtered-resources/resources/bin). Because the shell scripts get filtered by Maven, the variable ${PWD} gets accidently replaced during the build process by "/home/jenkins/jenkins-slave". I am refering to the nightly builds available in the Apache Snapshot Repository: https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/ IS: realpath() { OURPWD=/home/jenkins/jenkins-slave cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } SHOULD: realpath() { OURPWD=${PWD} cd "$(dirname "${1}")" LINK=$(readlink "$(basename "${1}")") while [ "${LINK}" ]; do cd "$(dirname "${LINK}")" LINK=$(readlink "$(basename "${1}")") done REALPATH="${PWD}/$(basename "${1}")" cd "${OURPWD}" echo "${REALPATH}" } We can replace ${PWD} by \${PWD}, whereas "\" is the default escapeString. But we should find a solution that avoids unwanted interpolation at all. The best solution would be to define a custom delimiter for the Maven resource plugin which does not overlap with statements within the shell code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KARAF-3492) Can't connect to Karaf sshd using key authentication
[ https://issues.apache.org/jira/browse/KARAF-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14300922#comment-14300922 ] Jens Offenbach commented on KARAF-3492: --- {code:borderStyle=solid} ./client -h localhost -a 8101 -u karaf instance:connect test {code} This command makes a lot of sense! In our cloud environment, each port that must be accessible from the outside must be added to a security group. Having a dynamic number of child instances requires that each ssh port is put into that security group. The redirection over the root instance is a way that all child instances can be managed from the outside without any further additions to the security group. Can't connect to Karaf sshd using key authentication Key: KARAF-3492 URL: https://issues.apache.org/jira/browse/KARAF-3492 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.0.0, 3.0.2 Reporter: Jean-Baptiste Onofré Assignee: Jean-Baptiste Onofré Fix For: 4.0.0, 3.0.4 The following doesn't work with Apache Karaf 3.0.2, whereas it worked with 3.0.1. {code} su - karaf -c client -h localhost -a 8101 -u karaf -r 50 -d 2 \ instance:connect -u karaf -p karaf test1 \\\ feature:repo-list \\\ \ Logging in as karaf 455 [sshd-SshClient[bea319b]-nio2-thread-1] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at [localhost/127.0.0.1:8101, DSA, b6:f6:d6:3f:8b:2f:ad:a4:0f:3f:3d:c3:7b:96:fd:ae] presented unverified {} key: {} Connecting to host localhost on port 8103 Connecting to unknown server. Automatically adding to known hosts. Storing the server key in known_hosts. Error executing command: Authentication failed {code} Increasing the verbose level: {code} client -v -h localhost -a 8101 -u karaf -r 50 -d 2 instance:connect -u karaf test1 \ feature:repo-list \ 39 [main] INFO org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider Logging in as karaf 367 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Client session created 380 [main] INFO org.apache.sshd.client.session.ClientSessionImpl - Start flagging packets as pending until key exchange is done 383 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Server version string: SSH-2.0-SSHD-CORE-0.12.0 384 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Kex: server-client [aes128-ctr, hmac-sha1, none] {} {} 384 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Kex: client-server [aes128-ctr, hmac-sha1, none] {} {} 444 [sshd-SshClient[bea319b]-nio2-thread-1] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at [localhost/127.0.0.1:8101, DSA, 22:8b:f8:9d:bc:c6:40:d8:fe:52:aa:90:c0:f2:70:ec] presented unverified {} key: {} 457 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Dequeing pending packets 524 [sshd-SshClient[bea319b]-nio2-thread-1] INFO org.apache.sshd.client.session.ClientUserAuthServiceNew - Received SSH_MSG_USERAUTH_FAILURE 568 [sshd-SshClient[bea319b]-nio2-thread-2] INFO org.apache.sshd.client.session.ClientUserAuthServiceNew - Received SSH_MSG_USERAUTH_SUCCESS Connecting to host localhost on port 8102 Error executing command: Authentication failed {code} Switching to DEBUG: {code} 2015-01-15 11:28:48,920 | DEBUG | 5]-nio2-thread-1 | ClientSessionImpl | 28 - org.apache.sshd.core - 0.12.0 | Received SSH_MSG_SERVICE_ACCEPT 2015-01-15 11:28:48,920 | INFO | 5]-nio2-thread-1 | ClientUserAuthServiceNew | 28 - org.apache.sshd.core - 0.12.0 | Received SSH_MSG_USERAUTH_FAILURE 2015-01-15 11:28:48,920 | DEBUG | 5]-nio2-thread-1 | ClientUserAuthServiceNew | 28 - org.apache.sshd.core - 0.12.0 | Authentications that can continue: keyboard-interactive, password, publickey 2015-01-15 11:28:48,922 | DEBUG | 5]-nio2-thread-1 | Nio2Session | 28 - org.apache.sshd.core - 0.12.0 | Caught exception, now calling handler 2015-01-15 11:28:48,922 | WARN | 5]-nio2-thread-1 | ClientSessionImpl | 28 - org.apache.sshd.core - 0.12.0 | Exception caught java.lang.IllegalStateException: No SSH_AUTH_SOCK environment variable set at org.apache.karaf.shell.ssh.KarafAgentFactory.createClient(KarafAgentFactory.java:71) at org.apache.sshd.client.auth.UserAuthPublicKey.init(UserAuthPublicKey.java:78) at org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:212) at