[ODLPARENT-219] karaf shell stops working after feature:install from shell Created: 30/Nov/19  Updated: 24/Jun/20  Resolved: 12/Jun/20

Status: Verified
Project: odlparent
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Jamo Luhrsen Assignee: Robert Varga
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates NETCONF-677 Shade mina-sshd Resolved

 Description   

reported by a user in this email thread

It's reproducible with Sodium and Neon, but does not happen with Fluorine.

to reproduce:

  • bin/start
  • bin/client
  • feature:install odl-netconf-connector

at that point, the karaf shell will be dropped and you can no longer connect
to it from the bin/client tool.

relevant karaf.log snippet

2019-11-29T22:18:37,605 | ERROR | Karaf ssh console user karaf | ShellUtil                        | 50 - org.apache.karaf.shell.core - 4.2.2 | Exception caught while executing command
java.io.IOError: java.io.IOException: Pipe closed after 1 cycles
        at org.jline.keymap.BindingReader.readCharacter(BindingReader.java:143) ~[57:org.jline.reader:3.9.0]
        at org.jline.keymap.BindingReader.readBinding(BindingReader.java:110) ~[57:org.jline.reader:3.9.0]
        at org.jline.keymap.BindingReader.readBinding(BindingReader.java:61) ~[57:org.jline.reader:3.9.0]
        at org.jline.reader.impl.LineReaderImpl.readBinding(LineReaderImpl.java:786) ~[57:org.jline.reader:3.9.0]
        at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:558) ~[57:org.jline.reader:3.9.0]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.readCommand(ConsoleSessionImpl.java:445) [50:org.apache.karaf.shell.core:4.2.2]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:403) [50:org.apache.karaf.shell.core:4.2.2]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: Pipe closed after 1 cycles
        at org.apache.sshd.common.channel.ChannelPipedInputStream.read(ChannelPipedInputStream.java:121) ~[?:?]
        at java.io.InputStream.read(InputStream.java:101) ~[?:?]
        at org.jline.terminal.impl.ExternalTerminal.pump(ExternalTerminal.java:122) ~[?:?]
        ... 1 more


 Comments   
Comment by Robert Varga [ 12/Jun/20 ]

This is caused by us upgrading sshd-core when installing netconf. Solved as part of NETCONF-677.

Comment by Jamo Luhrsen [ 24/Jun/20 ]

just fyi that I manually double checked this is ok now. I've added an INTTEST-109 in case someone has time to add this simple check in our robot infra CSIT jobs

Generated at Wed Feb 07 20:27:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.