-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Karaf client take a very long time/hangs if you to execute multiple commands on 3.2M3 #1334
Comments
I'm seeing the same - sometimes it takes 2 minutes+ |
As we are now on 3.2.0.M4, could you please revalidate on that version. |
I've just tried this on 3.2.0-SNAPSHOT - Build openhab/openhab-core#2554, and the problem remains. |
@hmerk Is this considered blocking for the 3.2 release? Anyone who has automation written against the openhab karaf client is going to have failures. |
@boc-tothefuture Im am not involved in release planning, so cannot comment. |
Karaf was upgraded so most likely it is some regression in Karaf or its dependencies. So to get it fixed you probably want to test if it is reproducible on a bare Karaf and if so create an issue in the Karaf issue tracker. |
Maybe it is fixed in the forthcoming 4.3.4 release. If you hurry up with reporting the issue it might even get fixed in it. 😉 |
I cannot reproduce this as it is always quick for me (tested 100+ times on Ubuntu 20.04.3). |
Mine is running inside a docker on Centos 8, and I can reproduce this quite consistently. Last tried on 3.2.0-SNAPSHOT - Build #2582
|
I can reproduce it on the latest snapshot on Mac OS. |
I opened a defect on the Karaf tracker, here: https://issues.apache.org/jira/browse/KARAF-7288 I have verified this behavior does not happen on 4.3.2. @wborn can we roll back the upgrade to 4.3.3 until Karaf team resolves the defect? |
@wborn looks like they are aware of the issue and they have fixed it in 4.3.4. However, the timeline for 4.3.4 is beyond the 'normal?' date for which openhab gets released. So, can we roll back the upgrade to 4.3.3 and then test with 4.3.4 when it is released? |
While it may fix this one issue, it will surely reintroduce many other regressions that are considered to be fixed now. |
@wborn are we aware of any workarounds? This has a significant impact on the JRuby libraries as it will prevents testing. |
@boc-tothefuture would it be possible to replace karaf jar with 4.3.2 within our testing environment? |
I don't know of any workarounds. It wasn't even reproducible for me. Most likely Karaf 4.3.4 will be released within a few weeks. The Karaf release schedule is very unpredictable and it is also common that projected release dates are not met. |
Karaf team says there is not a workaround: https://issues.apache.org/jira/browse/KARAF-7288 @jimtng I don't know if we can just replace the karaf jar, I imagine it sits on top of a bunch of other dependencies. @wborn I know you didn't hit the bug - but anyone who has any scripting against the karaf client is going to be impacted by this if OH 3.2 releases with this version of karaf with no known workarounds. I don't know the size of that population. |
This SO has some pointers on how to execute rest commands: https://stackoverflow.com/questions/54198755/how-to-get-apache-karaf-bundles-information-via-web-services-rest-soap But we would have to find a way to install war support (the example in SO doesn't work for me) and the war file without using the karaf client. |
* Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.11 which fixes CVE-2021-44228. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes openhab#1334 Signed-off-by: Wouter Born <[email protected]>
* Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.11 which fixes CVE-2021-44228. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes openhab#1334 Signed-off-by: Wouter Born <[email protected]>
* Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.12 which fixes CVE-2021-44228. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes openhab#1334 Signed-off-by: Wouter Born <[email protected]>
* Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.12 which fixes CVE-2021-44228 and CVE-2021-45046. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes openhab#1334 Signed-off-by: Wouter Born <[email protected]>
* Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.12 which fixes CVE-2021-44228 and CVE-2021-45046. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q, GHSA-7rjr-3q55-vv33 * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes openhab#1334 Signed-off-by: Wouter Born <[email protected]>
* Upgrade to Karaf 4.3.4 * Syncs distro customizations with Karaf 4.3.4 * Resolves app runbundles for the new dependencies For release notes, see: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12350547 Karaf 4.3.4 uses Pax Logging 2.0.12 which fixes CVE-2021-44228 and CVE-2021-45046. See also these advisories: * Log4j: GHSA-jfh8-c2jp-5v3q, GHSA-7rjr-3q55-vv33 * Pax Logging: GHSA-xxfh-x98p-j8fr Fixes #1334 * Revert CVE-2021-44228 quick fix Reverts #1343 because Karaf 4.3.4 uses Pax Logging 2.0.12 which is not vulnerable. Signed-off-by: Wouter Born <[email protected]>
Not sure if this goes back before M3 - but it is not present in 3.0 or 3.1.
Steps to reproduce:
Bash script demonstrating problem:
Sometimes they are quick, other times, very slow (minutes) and they just timeout. Ctrl-C doesn't seem to interrupt.
The text was updated successfully, but these errors were encountered: