bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

After last raspberry pi updates ha bridge is not starting anymore #1381

Closed TheUntouchable closed 2 years ago

TheUntouchable commented 2 years ago
Nov 18 22:48:55 NW-HaBridge systemd[1]: Started ha-bridge.
Nov 18 22:48:58 NW-HaBridge java[771]: 2022-11-18 22:48:58,430 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge startup sequence...
Nov 18 22:48:58 NW-HaBridge java[771]: 2022-11-18 22:48:58,606 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge (v5.4.1-java11) initializing....
Nov 18 22:48:58 NW-HaBridge java[771]: 2022-11-18 22:48:58,679 [main] INFO  com.bwssystems.HABridge.BridgeSettings - reading from config file: /home/rphab_admin/ha-bridge/data/habridge.config
Nov 18 22:48:59 NW-HaBridge java[771]: 2022-11-18 22:48:59,558 [main] INFO  com.bwssystems.HABridge.BridgeSettings - Adding 192.168.20.4 as our default upnp config address.
Nov 18 22:49:00 NW-HaBridge java[771]: 2022-11-18 22:49:00,322 [main] INFO  spark.staticfiles.StaticFilesConfiguration - StaticResourceHandler configured with folder = /public
Nov 18 22:49:00 NW-HaBridge java[771]: 2022-11-18 22:49:00,390 [main] INFO  com.bwssystems.HABridge.SystemControl - System control service started....
Nov 18 22:49:00 NW-HaBridge java[771]: 2022-11-18 22:49:00,609 [main] INFO  com.bwssystems.HABridge.util.UDPDatagramSender - Initializing UDP response Socket...
Nov 18 22:49:00 NW-HaBridge java[771]: Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 0 in class file jdk/net/ExtendedSocketOptions$PlatformSocketOptions
Nov 18 22:49:00 NW-HaBridge java[771]: #011at jdk.net/jdk.net.ExtendedSocketOptions.<clinit>(ExtendedSocketOptions.java:165)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.lang.Class.forName0(Native Method)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.lang.Class.forName(Class.java:315)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/sun.net.ext.ExtendedSocketOptions.<clinit>(ExtendedSocketOptions.java:109)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.PlainDatagramSocketImpl.<clinit>(PlainDatagramSocketImpl.java:46)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.DefaultDatagramSocketImplFactory.createDatagramSocketImpl(DefaultDatagramSocketImplFactory.java:72)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.DatagramSocket.createImpl(DatagramSocket.java:333)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:241)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:301)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:273)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at com.bwssystems.HABridge.util.UDPDatagramSender.initializeSocket(UDPDatagramSender.java:37)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at com.bwssystems.HABridge.util.UDPDatagramSender.createUDPDatagramSender(UDPDatagramSender.java:24)
Nov 18 22:49:00 NW-HaBridge java[771]: #011at com.bwssystems.HABridge.HABridge.main(HABridge.java:85)
Nov 18 22:49:00 NW-HaBridge java[771]: 2022-11-18 22:49:00.724:INFO::Thread-0: Logging initialized @5453ms to org.eclipse.jetty.util.log.StdErrLog
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01,061 [Thread-0] INFO  spark.embeddedserver.jetty.EmbeddedJettyServer - == Spark has ignited ...
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01,065 [Thread-0] INFO  spark.embeddedserver.jetty.EmbeddedJettyServer - >> Listening on 0.0.0.0:80
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01.087:INFO:oejs.Server:Thread-0: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-21T22:27:37+01:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01.230:INFO:oejs.session:Thread-0: DefaultSessionIdManager workerName=node0
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01.230:INFO:oejs.session:Thread-0: No SessionScavenger set, using defaults
Nov 18 22:49:01 NW-HaBridge java[771]: 2022-11-18 22:49:01.247:INFO:oejs.session:Thread-0: Scavenging every 600000ms
Nov 18 22:49:01 NW-HaBridge java[771]: Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class sun.net.ext.ExtendedSocketOptions
Nov 18 22:49:01 NW-HaBridge java[771]: #011at java.base/sun.nio.ch.Net.<clinit>(Net.java:312)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at java.base/sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:103)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at java.base/sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at java.base/java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.java:113)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:330)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:302)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:238)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.server.Server.doStart(Server.java:397)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at spark.embeddedserver.jetty.EmbeddedJettyServer.ignite(EmbeddedJettyServer.java:149)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at spark.Service.lambda$init$2(Service.java:549)
Nov 18 22:49:01 NW-HaBridge java[771]: #011at java.base/java.lang.Thread.run(Thread.java:829)

Linux NW-HaBridge 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l - Raspbian GNU/Linux 11 (bullseye) Raspberry Pi 2 Model B Rev 1.1 HA Bridge 5.4.1 Java11 openjdk 11.0.16 2022-07-19 OpenJDK Runtime Environment (build 11.0.16+8-post-Raspbian-1deb11u1) OpenJDK Server VM (build 11.0.16+8-post-Raspbian-1deb11u1, mixed mode)

TheUntouchable commented 2 years ago

Uninstalled everything related to java and reinstalled openjdk-11-jre, working now again