openHAB 3.2 Milestone discussion

A quick question, which follows on from this topic.

  • Is openHAB3 limited to Java 11, or can it run on Java 17?

I ask because Michal of DietPi is offering to add openHAB to the DietPi Software menu (alongside Home-Assistant)

(All contributions and assistance would be most welcomed)

Thanks
Stuart

____ Update ____

Because I’m a gungho fool, I just updated a “fresh installation” of DietPi V7.5.2 to Debian Bullseye following these instructions.

It would seem that openHAB3 is trying to start, but crashes out after a few seconds.

root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:12:44 BST; 4s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 6566 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 6566 (code=exited, status=255/EXCEPTION)
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-09-10 12:12:49 BST; 3s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 6730 (java)
      Tasks: 22 (limit: 3844)
     Memory: 53.7M
     CGroup: /system.slice/openhab.service
             └─6730 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openhab -Dfelix.c
m.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dnashorn.args=--no-deprecation-warning -Dorg.apache.cxf.osgi.http.transport.disable=true -Dorg.ops4j.pax.web
.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAME
D --patch-module java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.3.2.jar --patch-module java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.3.2.jar --add-opens java.base/j
ava.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi
.transport.tcp=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.desktop/jav
a.awt.font=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.n
et.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.r
mi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports java.security.sasl/com.sun.security.sasl=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/v
ar/lib/openhab -Dkaraf.etc=/var/lib/openhab/etc -Dkaraf.log=/var/log/openhab -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab/tmp -Djava.util.logging.config.file=/var/lib/openhab/etc/java.util.logging.properties -Dkar
af.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.jaas.boot-4.3.2.jar:/usr/share/openha
b/runtime/lib/boot/org.apache.karaf.main-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.specs.activator-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/osgi.core-7.0.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/istack-comm
ons-runtime-3.0.10.jar:/usr/share/openhab/runtime/lib/jdk9plus/jakarta.xml.bind-api-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.activation-1.2.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.annotation-api-1.3.1.jar:/usr/
share/openhab/runtime/lib/jdk9plus/jaxb-runtime-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/txw2-2.3.3.jar org.apache.karaf.main.Main

Sep 10 12:12:49 openHAB2-C4 systemd[1]: Started openHAB - empowering the smart home.
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:12:52 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 6730 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 6730 (code=exited, status=255/EXCEPTION)
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-09-10 12:13:06 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 7053 (java)
      Tasks: 23 (limit: 3844)
     Memory: 53.2M
     CGroup: /system.slice/openhab.service
             └─7053 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openhab -Dfelix.c
m.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dnashorn.args=--no-deprecation-warning -Dorg.apache.cxf.osgi.http.transport.disable=true -Dorg.ops4j.pax.web
.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAME
D --patch-module java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.3.2.jar --patch-module java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.3.2.jar --add-opens java.base/j
ava.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi
.transport.tcp=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.desktop/jav
a.awt.font=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.n
et.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.r
mi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports java.security.sasl/com.sun.security.sasl=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/v
ar/lib/openhab -Dkaraf.etc=/var/lib/openhab/etc -Dkaraf.log=/var/log/openhab -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab/tmp -Djava.util.logging.config.file=/var/lib/openhab/etc/java.util.logging.properties -Dkar
af.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.jaas.boot-4.3.2.jar:/usr/share/openha
b/runtime/lib/boot/org.apache.karaf.main-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.specs.activator-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/osgi.core-7.0.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/istack-comm
ons-runtime-3.0.10.jar:/usr/share/openhab/runtime/lib/jdk9plus/jakarta.xml.bind-api-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.activation-1.2.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.annotation-api-1.3.1.jar:/usr/
share/openhab/runtime/lib/jdk9plus/jaxb-runtime-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/txw2-2.3.3.jar org.apache.karaf.main.Main

Sep 10 12:13:06 openHAB2-C4 systemd[1]: Started openHAB - empowering the smart home.
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:13:09 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 7053 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 7053 (code=exited, status=255/EXCEPTION)

Can anyone give any advice or suggestions?

Or do we say that openHAB3 must be run with Java 11?

Already answered in other topic, as it is off-topic here. Double posts are always a bad idea :wink:

1 Like

Can you open a GitHub webUI issue if not already done please. Always handy to get issues raised and fixed when code is fresh in people’s minds as there were some changes made to the icon system in 3.2

I am wondering if this is related to M2 (the timing makes me suspect that it is)…

Hi actually i receive some messages, cloud someone explain what could cause this?

2021-09-30 16:20:07.870 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:21:18.160 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:22:28.272 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:23:39.268 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:24:49.716 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null

That has nothing to do with M2.
Have a look here, Amazon is seemingly tinkering.

2 Likes

Okay, the Messages came up after upgrade to M2.

But many thanks for your information.

Did rule reloading stop working on 3.2M2? I haven’t investigated further but downgrading to 3.2M1 fixed the problem.

By rule reloading I mean when you make changes to a rule file (in my case jruby, but it applies to jython / dsl I too I guess), openhab didn’t seem to reload / re-execute it.

Hello, I updated 10min before to M3 and I see a strange behavior.

If I restart the system or the openHAB service - than all handlers are missing. If I stop the openHAB service and Clean-Cache and than start it’s all fine. I am on openhabian latest stable.

I am the only one with this behavior???

I had something similar happen when I went to m2, have not seen it return and I have done a lot of restarts the past month. I think it only happened on the first restart directly after doing the m2 upgrade. Why it happened on the first reboot after its first startup, I have no idea, but it has not happened since.

@matt1 thanks for your hint.

yes, I saw this also in m2 but there it was only once. Now it’s Everytime there. I will open an issue on GitHub. https://github.com/openhab/openhab-distro/issues/1321

@Kai if you or your team need more input to check this issue. Let me know.

Happy to report that Main UI (using Firefox) is much more stable in M3. Until (and including) M2 I had to refresh the screen very often (probably 25% when I changed page), and sometimes DSL rules were not properly saved. Now these two issues seem to be fixed.

after upgrade, cant reach the service:

The ports openHAB will bind its HTTP/HTTPS web server to.

OPENHAB_HTTP_PORT=1080
OPENHAB_HTTPS_PORT=10443

root@ccu3:/home/pi# service openhab status
● openhab.service - openHAB instance, reachable at http://ccu3:8080
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: active (running) since Mon 2021-10-0

It seems to run… strange but ok^^

I send out an email with the log file to kai regarding my loading issue. I still have the same behavior

I’ve seen this error on the most recent milestone M3:

  • Administration/Settings
    • Model - open location
    • Create Equipment from Thing
    • Select thing…

16.app.js:1

   Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'localeCompare')
at 16.app.js:1
at Array.sort (<anonymous>)
at 16.app.js:1

People, mind the community and posting rules please.

@Simon_B your issue is not related to the milestone so open your own thread please.

@milo You must not ping developers. Open your own thread and post there, and eventually open an issue on Github.

Thank you for your understanding (if you do).

I’m on 3.2.0.M3, macOS 10.15.7
Many times, when I unplug my z-wave USB stick from the server, openHAB exits with the below error:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001101b0268, pid=29126, tid=112399
#
# JRE version: OpenJDK Runtime Environment Zulu11.50+19-CA (11.0.12+7) (build 11.0.12+7-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.50+19-CA (11.0.12+7-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# j  org.openhab.core.io.transport.serial.rxtx.RxTxSerialPort$1.serialEvent(Lgnu/io/SerialPortEvent;)V+17
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /opt/openhab/userdata/hs_err_pid29126.log
Could not load hsdis-amd64.dylib; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/

This happened sometimes in M2, and now that M3 also prodcues this, I thought I’d share.

Is there someone around that can test WOL with network binding in 3.2 M3? For me it doesn’t work anymore and I see that there was a change in network binding:

IP- and MAC address are configured and same setup did work in M2. Do I need to change something in configuration?

This is my ECMA-Rule:

var Log = Java.type("org.openhab.core.model.script.actions.Log");
var ScriptExecution = Java.type("org.openhab.core.model.script.actions.ScriptExecution");
var ZonedDateTime = Java.type("java.time.ZonedDateTime");

var runme = function() {
 var wolAction = actions.get("network","network:pingdevice:pc");
 wolAction.sendWakeOnLanPacket();
 Log.logInfo("WOL", "WOL Computer gesendet");
 this.timer = undefined;
}

this.timer = ScriptExecution.createTimer(ZonedDateTime.now().plusSeconds(10), runme);

Thing is online and I have tried with IP and Hostname.

Thanks
Michael

Hi,

It also not working for me anymore.
I’m too at 3.2 M3

WOL is send from Fritzbox is working.

What is configured in there?

I think the linked change #11199 is messed up. If you have given an IP, it targets that for WoL. I think it should target MAC address for WoL - unless none is given, in that case use IP.