ariela
(Andrea Riela)
September 16, 2018, 1:49pm
1
Hi folks,
I’ve an issue when I try to have some info from Karaf console. See the image.
https://ibb.co/hfTDEz
How can have this more “human readable”?
I don’t know from when I had this issue … for sure not from the beginning.
Any suggestion?
Thanks
Andrea
wborn
(Wouter Born)
September 16, 2018, 1:57pm
2
It’s a recent issue due to the Karaf upgrade, see:
opened 03:28PM - 15 Sep 18 UTC
closed 04:29PM - 26 Oct 18 UTC
karaf
When interacting with the Karaf Console through a SSH session there are new line… issues with the output of console commands (most of the time).
This issue occurs with openHAB 2.4.0-SNAPSHOT (build # 1363).
# Command examples
![selection_013](https://user-images.githubusercontent.com/12213581/45587851-d985bf00-b90b-11e8-86f1-7016a262281d.png)
# Logging examples
![selection_014](https://user-images.githubusercontent.com/12213581/45587853-dc80af80-b90b-11e8-815c-f4909d7f736e.png)
It is probably a regression caused by the upgrade to Karaf 4.2.1 (#761). I already tried downgrading Karaf dependencies like jansi and sshd-core but that didn't help. I haven't found a known issue in the Karaf issue tracker for this.
Unaffected are the output of the "openHAB" welcome message, `help` and command completion suggestions.
I also made sure it's not caused by #763 by removing `shell.colors.script`.
1 Like
ariela
(Andrea Riela)
September 16, 2018, 1:59pm
3
ufff … quite difficult to work with at the moment
I hope everything will be fixed soon
Thanks for pointing me in the right direction
Andrea
wborn
(Wouter Born)
September 16, 2018, 2:19pm
4
A workaround is to first use SSH to connect to the machine running openHAB.
Then run the Karaf bin/client
script to connect to Karaf.
I think that is openhab-cli console
with openHABian.
2 Likes
tarcus
(Ian)
September 26, 2018, 10:12am
5
Thanks, have changed my script to execute:
$OPENHAB_RUNTIME/bin/client
This now works properly again.
Benjy
(Ben Clark)
September 26, 2018, 10:25am
6
wborn:
openhab-cli console
with openHABian.
openHABian or any packaged Linux install
wborn
(Wouter Born)
October 26, 2018, 7:17pm
7
This issue should be fixed in the latest 2.4.0-SNAPSHOT build #1401 ! See also PR #800 .