Openhab crashes irregular since upgrade to 4.04 (and also 4.1)

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
      Raspberry PI 4, 8 GB RAM
    • OS: what OS is used and which version
      Openhabian
    • openHAB version:
      4.1
  • Issue of the topic: Openhab crashes

Hello everyone, my Openhab 4.1 system keeps crashing at irregular intervals and then reboots. My system runs on a Raspberry Pi 4 with 8GB RAM. The system was very stable under Openhab 3.x - but since the upgrade to 4.04 and now 4.1, Openhab crashes about 3 to 4 times a week and then restarts. I can’t see much in the log files, except that there seem to be problems writing data to the INflux DB. However, I can’t imagine that this is causing the crash. Can you please help me narrow down the error? I have no idea where to start troubleshooting.

By the way, the INflux DB is running on my Synology NAS, and the Openhab system itself is running on an SSD, which is directly connected to the Raspberry Pi via USB.

The following bundles are active:

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                │ Name
────┼────────���─────┼────────────────────────��───────────��────────���─────────��──────��─��─��������������������─���─���──���������──�������������������������������������─���─�����─��─��─�������������������������─���─�����─����������─���─���───���������─���─�����───��─��─�����──��─��─�����������������───�������������������������─���─���──��─��
 27 �� Active │  80 │ 3.3.0.202207031140     │ openHAB Add-ons :: Bundles :: Synology Surveillance Station Binding
 29 ��� Active │  80 │ 3.4.5.202307021957     │ openHAB Add-ons :: Bundles :: MyBMW Binding
 30 ��� Active │  80 │ 3.2.0.202203092013     │ openHAB Add-ons :: Bundles :: State O-Matic Binding
 31 │ Active │  80 │ 4.1.0.202307312221     │ openHAB Add-ons :: Bundles :: SolarForecast Binding
 32 ��� Active ���  80 ��� 3.2.0.202112051225     ��� openHAB Add-ons :: Bundles :: TwinklyTree Binding
 35 ��� Active ���  80 ��� 2.15.2                 │ Jackson-annotations
 36 ��� Active ���  80 │ 2.15.2                 │ Jackson-core
 37 ��� Active ��  80 │ 2.15.2                 │ jackson-databind
 38 ��� Active │  80 �� 2.15.2                 │ Jackson-dataformat-YAML
 39 ��� Active │  80 �� 2.15.2                 │ Jackson datatype: JSR310
 40 ��� Active ���  80 │ 6.5.1                  │ Woodstox
 41 │ Active │  80 │ 2.10.1.v20230109-0753  │ Gson
 42 │ Active │  80 │ 32.1.2.jre             �� Guava: Google Core Libraries for Java
 43 │ Active │  80 │ 1.0.1                  │ Guava InternalFutureFailureAccess and InternalFutures
 44 │ Active │  80 │ 7.0.0                  │ guice
 45 ��� Active ���  80 ��� 5.13.0                 ��� jna
 47 ��� Active ���  80 ��� 4.8.149.v20220915-0556 │ ClassGraph
 48 ��� Active │  80 │ 0.18.0                 �� Directory-Watcher
 49 ��� Active │  80 │ 2.2.15                 │ swagger-annotations
 50 ��� Active │  80 �� 2.2.15                 │ swagger-core
 51 │ Active │  80 �� 2.2.15                 �� swagger-integration
 52 �� Active ���  80 �� 2.2.15                 │ swagger-jaxrs2
 53 ��� Active │  80 ��� 2.2.15                 �� swagger-models
 54 ��� Active │  80 │ 1.0.5                  │ Jakarta Dependency Injection
 55 │ Active │  80 │ 2.0.1                  │ Jakarta Dependency Injection
 57 │ Active │  80 │ 2.0.2                  │ Jakarta Bean Validation API
 59 │ Active │  80 │ 2.3.3                  �� Jakarta XML Web Services API
 60 �� Active │  80 │ 1.2                    ��� javax.annotation API
 61 │ Active │  80 �� 3.5.8                  �� JmDNS
 62 │ Active │  80 ��� 2.2.0                  │ Units of Measurement API
 64 │ Active │  80 │ 0.5.10                 │ Jollyday
 65 │ Active │  80 │ 3.2.0.v201101311130    │ ANTLR Runtime
 66 │ Active ��  80 │ 1.0.0.v201105210816    │ Aopalliance Plug-in
 67 �� Active │  80 │ 1.2.2                  │ org.apache.aries.component-dsl.component-dsl
 68 �� Active │  80 �� 1.0.4                  ��� Apache Aries JAX-RS Specification API
 69 │ Active ���  80 │ 2.0.0                  �� Apache Aries JAX-RS Whiteboard
 70 │ Active │  80 │ 1.3.6                  │ Apache Aries SPI Fly Dynamic Weaving Bundle
 71 │ Active ��  80 │ 3.12.0                 ��� Apache Commons Lang
 72 �� Active ��  80 │ 3.6.2                  │ Apache CXF Core
 73 │ Active │  80 │ 3.6.2                  �� Apache CXF Runtime JAX-RS Frontend
 74 │ Active ���  80 │ 3.6.2                  │ Apache CXF JAX-RS Client
 75 │ Active │  80 │ 3.6.2                  │ Apache CXF JAX-RS Server-Side Events Support
 76 ��� Active │  80 │ 3.6.2                  �� Apache CXF Runtime Security functionality
 77 │ Active │  80 ��� 3.6.2                  ��� Apache CXF Runtime HTTP Transport
 83 │ Active │  80 │ 4.4.4                  │ Apache Karaf :: OSGi Services :: Event
 99 │ Active │  80 │ 2.3.1                  │ XmlSchema Core
100 ��� Active │  80 │ 1.1.2                  │ apiguardian-api
101 �� Active ���  80 │ 0.9.3                  │ jose4j
102 │ Active │  80 │ 2.24.0.v20220123-0838  ��� EMF Common
103 │ Active │  80 │ 2.26.0.v20220123-0838  │ EMF Ecore
104 │ Active │  80 │ 2.14.0.v20190528-0725  │ EMF Change Model
105 �� Active │  80 │ 2.16.0.v20190528-0725  �� EMF XML/XMI Persistence
106 │ Active │  80 │ 3.18.0.v20230523-2142  │ Common Eclipse Runtime
140 │ Active │  80 �� 0.21.0.v20230517-2120  │ org.eclipse.lsp4j
141 │ Active │  80 │ 0.21.0.v20230517-2120  │ org.eclipse.lsp4j.jsonrpc
142 │ Active │  80 │ 2.32.0.v20230827-1315  �� Xtend Runtime Library
143 │ Active │  80 �� 2.32.0.v20230827-1315  │ Xtend Macro Interfaces
144 │ Active │  80 │ 2.32.0.v20230827-1315  │ Xtext
145 │ Active │  80 │ 2.32.0.v20230827-1315  │ Xtext Common Types
146 │ Active │  80 │ 2.32.0.v20230827-1315  │ Xtext IDE Core
147 │ Active │  80 │ 2.32.0.v20230827-1315  ��� Xtext Utility
148 �� Active │  80 │ 2.32.0.v20230827-1315  │ Xbase Model
149 │ Active │  80 ��� 2.32.0.v20230827-1315  │ Xbase Generic IDE Services
150 �� Active ��  80 │ 2.32.0.v20230827-1315  ��� Xbase Runtime Library
158 │ Active │  80 │ 1.0.0                  │ Fixes for the java.base module
159 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Core
160 �� Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Add-on XML
161 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Marketplace Add-on Services
162 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Community Marketplace Add-on Service :: Karaf
163 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Audio
164 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: JAAS Authentication
165 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Automation
166 │ Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Automation Media Modules
167 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Automation Script Modules
168 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Automation Script RuleSupport
169 │ Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: Automation REST API
170 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Configuration Core
171 │ Active ��  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Configuration Discovery
172 │ Active │  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: Add-on Suggestion Service
173 │ Active ��  80 ��� 4.1.0                  �� openHAB Core :: Bundles :: Process-based Suggested Add-on Finder
174 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Configuration mDNS Discovery
175 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Configuration Dispatcher
176 │ Active ��  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Ephemeris
177 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: ID
178 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Console
179 �� Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
180 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: HTTP Interface
181 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: HTTP Interface Authentication
183 │ Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Monitor
184 │ Active ���  80 �� 4.1.0                  │ openHAB Core :: Bundles :: Network I/O
185 �� Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: REST Interface
186 │ Active │  80 ��� 4.1.0                  �� openHAB Core :: Bundles :: Audio REST Interface
187 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
188 │ Active ��  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: REST Interface :: Core
189 │ Active ���  80 │ 4.1.0                  �� openHAB Core :: Bundles :: REST mDNS Announcer
190 │ Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Sitemap REST Interface
191 │ Active ���  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: SSE Interface
192 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
193 │ Active ���  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Transformation REST Interface
194 │ Active ��  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: UI REST Interface
195 │ Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: Voice REST Interface
196 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: mDNS Service
197 │ Active ��  80 �� 4.1.0                  │ openHAB Core :: Bundles :: WebSocket
198 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Karaf Integration
199 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Model Core
200 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Items
201 �� Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Item IDE
202 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Model Items Runtime
203 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Language Server
204 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Persistence
205 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Model Persistence IDE
206 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Persistence Runtime
207 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Rules
208 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Rule IDE
209 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Model Rules Runtime
210 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Model Script
211 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Model Script IDE
212 ��� Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Model Script Runtime
213 �� Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Model Sitemap
214 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Sitemap IDE
215 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Sitemap Runtime
216 │ Active ���  80 ��� 4.1.0                  �� openHAB Core :: Bundles :: Model Thing
217 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Model Thing IDE
218 │ Active ���  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Model Thing Runtime
219 │ Active ��  80 �� 4.1.0                  �� openHAB Core :: Bundles :: Model YAML
220 │ Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Persistence
221 │ Active │  80 │ 4.1.0                  �� openHAB Core :: Bundles :: Semantics
222 │ Active │  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: JSON Storage
223 �� Active │  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Thing
224 │ Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: Transformation Service
225 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: UI
226 │ Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: UI Icon Support
227 │ Active │  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: Voice
228 │ Active ���  80 │ 4.1.0                  │ openHAB UI :: Bundles :: Main UI
229 │ Active │  80 │ 4.1.0                  │ openHAB UI :: Bundles :: Icon Set :: Classic
239 │ Active │  80 │ 1.0.1.202109301733     �� org.osgi:org.osgi.service.jaxrs
240 │ Active ��  80 │ 1.5.0                  │ ThreeTen-Extra
241 │ Active ��  80 │ 2.1.0                  │ SnakeYAML
242 │ Active │  80 │ 2.1                    │ SI Units
243 │ Active │  80 │ 2.1.0                  │ SI Quantities
244 │ Active │  80 ��� 4.2.1                  │ Stax2 API
245 │ Active ��  80 │ 2.2.0                  │ Units of Measurement Reference Implementation
246 │ Active │  80 │ 2.2.0                  │ Units of Measurement Common Library for Java
247 │ Active │  80 │ 1.4.20                 │ XStream Core
251 │ Active │  80 │ 2.27                   │ Dagger
252 │ Active │  80 │ 1.3.3                  │ hivemq-mqtt-client
253 │ Active │  80 │ 5.13.0                 │ jna-platform
254 │ Active │  80 │ 4.1.99.Final           │ Netty/Buffer
255 �� Active │  80 │ 4.1.99.Final           │ Netty/Codec
256 �� Active │  80 │ 4.1.99.Final           │ Netty/Codec/HTTP
257 │ Active │  80 │ 4.1.99.Final           │ Netty/Codec/Socks
258 │ Active │  80 ��� 4.1.99.Final           │ Netty/Common
259 │ Active ��  80 �� 4.1.99.Final           �� Netty/Handler
260 │ Active │  80 │ 4.1.99.Final           │ Netty/Handler/Proxy
261 │ Active │  80 �� 4.1.99.Final           │ Netty/Resolver
262 │ Active │  80 │ 2.0.61.Final           │ Netty/TomcatNative [OpenSSL - Classes]
263 │ Active ���  80 │ 4.1.99.Final           │ Netty/Transport
264 ��� Active │  80 │ 4.1.99.Final           │ Netty/Transport/Classes/Epoll
265 │ Active │  80 │ 4.1.99.Final           │ Netty/Transport/Native/Unix/Common
266 �� Active │  80 ��� 2.2.21                 │ rxjava
267 �� Active │  80 │ 1.0.1                  │ IO.Socket Engine Client
268 │ Active │  80 │ 1.0.1                  │ IO.Socket Socket Client
269 �� Active │  80 �� 20231013.0.0           │ JSON in Java
270 │ Active │  80 │ 0.3.0.v20220506-1020   ��� EdDSA-Java
271 �� Active │  80 �� 5.2.1.OH1              │ nrjavaserial
272 ��� Active │  80 ��� 3.9.0                  │ Apache Commons Net
273 │ Active │  80 │ 3.8.1.1                │ Apache ServiceMix :: Bundles :: okhttp
274 │ Active │  80 │ 1.13.0.1               │ Apache ServiceMix :: Bundles :: okio
275 ��� Active │  80 │ 2.7.4                  │ Californium (Cf) Core
276 �� Active ��  80 │ 2.7.4                  �� Californium (Cf) Element Connector
277 │ Active ���  80 ��� 2.7.4                  │ Californium (Cf) OSGi
278 ��� Active ��  80 �� 2.7.4                  │ Scandium (Sc) Core
279 │ Active │  80 ��� 2.1.2                  │ Java Concurrency Tools Core Library
280 �� Active │  80 │ 2.7.1.OH1              │ JUPnP Library
281 ��� Active ���  80 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: Automation :: JavaScript Scripting
282 │ Active ��  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: Amazon Echo Control Binding
283 │ Active │  80 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Astro Binding
284 │ Active ��  80 │ 4.1.0                  �� openHAB Add-ons :: Bundles :: Automower Binding
285 �� Active │  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: aWATTar Binding
286 │ Active ���  80 ��� 4.1.0                  �� openHAB Add-ons :: Bundles :: ChatGPT Binding
287 │ Active ��  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: Exec Binding
288 ��� Active ��  80 │ 4.1.0                  �� openHAB Add-ons :: Bundles :: GPSTracker Binding
289 ��� Active │  80 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: HP Printer Binding
290 �� Active ��  80 │ 4.1.0                  ��� openHAB Add-ons :: Bundles :: HTTP Binding
291 │ Active │  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: hue Binding
292 │ Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: iCloud Binding
293 │ Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: IpCamera Binding
294 │ Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: KNX Binding
295 │ Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: Xiaomi Wifi devices (Mi IO) Binding
296 ��� Active ���  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: Modbus Binding
297 �� Active │  80 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: E3DC Modbus Binding
298 ��� Active ���  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: HeliosEasyControls Binding
299 ��� Active ���  80 │ 4.1.0                  ��� openHAB Add-ons :: Bundles :: Modbus SBC Binding
300 ��� Active ���  80 ��� 4.1.0                  │ openHAB Add-ons :: Bundles :: StiebelEltron Bundle
301 ��� Active ���  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: Studer Binding
302 ��� Active ���  80 �� 4.1.0                  ��� openHAB Add-ons :: Bundles :: SunSpec Bundle
303 ��� Active ���  80 ��� 4.1.0                  │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
304 ��� Active ��  81 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: MQTT EspMilightHub
305 �� Active │  81 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: MQTT Things and Channels
306 ��� Active │  82 ��� 4.1.0                  �� openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
307 ��� Active ���  82 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: MQTT Homie Convention
308 │ Active │  82 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: MQTT Ruuvi Gateway
309 ��� Active ���  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: Nanoleaf Binding
310 �� Active ���  80 ��� 4.1.0                  │ openHAB Add-ons :: Bundles :: Netatmo Binding
311 ��� Active │  80 ��� 4.1.0                  �� openHAB Add-ons :: Bundles :: Network Binding
312 ��� Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: NTP Binding
313 ��� Active ��  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: OpenWeatherMap Binding
314 ��� Active │  80 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Plex Binding
315 �� Active ���  80 ��� 4.1.0                  │ openHAB Add-ons :: Bundles :: SamsungTV Binding
316 │ Active ��  80 �� 4.1.0                  �� openHAB Add-ons :: Bundles :: Shelly Binding Gen1+2
317 ��� Active ��  80 �� 4.1.0                  │ openHAB Add-ons :: Bundles :: Sonos Binding
318 ��� Active ��  80 │ 4.1.0                  ��� openHAB Add-ons :: Bundles :: Spotify Binding
319 ��� Active │  80 │ 4.1.0                  │ openHAB Add-ons :: Bundles :: Systeminfo Binding
320 ��� Active ��  80 �� 4.1.0                  ��� openHAB Add-ons :: Bundles :: WiFiLED Binding
321 ��� Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: OAuth2Client
322 ��� Active ���  80 ��� 4.1.0                  │ openHAB Core :: Bundles :: Configuration UPnP Discovery
323 │ Active ��  80 │ 4.1.0                  │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
324 │ Active ��  80 �� 4.1.0                  ��� openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
325 ��� Active ���  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
326 �� Active ���  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: Configuration Serial
327 �� Active ���  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: Modbus Transport
328 ��� Active │  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: MQTT Transport
329 �� Active ��  80 ��� 4.1.0                  �� openHAB Core :: Bundles :: Serial Transport
330 ��� Active ���  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: Serial Transport for RXTX
331 ��� Active ���  80 │ 4.1.0                  ��� openHAB Core :: Bundles :: Serial Transport for RFC2217
332 ��� Active │  80 �� 4.1.0                  │ openHAB Core :: Bundles :: UPnP Transport
333 ��� Active ��  80 ��� 4.1.0                  │ openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector
334 ��� Active │  80 �� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Persistence Service :: InfluxDB
335 ��� Active ��  75 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: Exec
336 │ Active │  75 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: JSonPath
337 │ Active ���  75 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: Map
338 │ Active ���  75 �� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: RegEx
339 �� Active │  75 │ 4.1.0                  �� openHAB Add-ons :: Bundles :: Transformation Service :: Scale
340 ��� Active ���  75 ��� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: XPath
341 ��� Active ���  75 �� 4.1.0                  ��� openHAB Add-ons :: Bundles :: Transformation Service :: Xslt
342 ��� Active │  80 ��� 4.1.0                  ��� openHAB UI :: Bundles :: Basic UI
343 ��� Active ���  80 ��� 4.1.0                  �� openHAB UI :: Bundles :: HABPanel UI
344 ��� Active ���  80 │ 1.0.4                  ��� reactive-streams-jvm
345 │ Active ���  80 �� 4.1.0                  ��� openHAB Core :: Bundles :: uPnP Suggested Add-on Finder
349 │ Active │  80 │ 4.1.0                  │ openHAB Core :: Bundles :: IP-based Suggested Add-on Finder
350 �� Active │  80 ��� 4.1.0                  ��� openHAB Core :: Bundles :: mDNS Suggested Add-on Finder

So any idea how to identify the problem in my environment?
Many thanks in advance!

Perhaps you could first check if this could be related to running out of memory. But first, does your OS reboot, or is it only openHAB restarting?

You could have a look at this thread: Very High Memory Usage and frequent restarts with OH4 - #10 by laursen

Specifically you could check if you did have OOM:

journalctl -u openhab

And you could verify your memory settings in /etc/default/openhab. I have:

EXTRA_JAVA_OPTS="-Xms192m -Xmx384m -XX:+ExitOnOutOfMemoryError"

which I believe is now also the openHABian default. You could also try to increase both values since you have plenty of memory on your RPi 4 - start out by doubling them, for example.

Thanks for your fast reply! Indeed there is a memory issue as I can see in the output regarding OOM:

openhabian@openhab:~ $ journalctl -u openhab
-- Logs begin at Fri 2024-01-05 13:27:41 CET, end at Sat 2024-01-06 11:20:20 CET. --
Jan 06 04:46:25 openhab systemd[1]: Started openHAB - empowering the smart home.
-- Reboot --
Jan 06 05:00:00 openhab karaf[1776]: #
Jan 06 05:00:00 openhab karaf[1776]: # There is insufficient memory for the Java Runtime Environment to continue.
Jan 06 05:00:00 openhab karaf[1776]: # Native memory allocation (mmap) failed to map 16777216 bytes for Failed to reserve memory for metaspace
Jan 06 05:00:00 openhab karaf[1776]: # An error report file with more information is saved as:
Jan 06 05:00:00 openhab karaf[1776]: # /var/lib/openhab/hs_err_pid1776.log
Jan 06 05:00:00 openhab systemd[1]: openhab.service: Main process exited, code=exited, status=1/FAILURE
Jan 06 05:00:00 openhab systemd[1]: openhab.service: Failed with result 'exit-code'.
Jan 06 05:00:06 openhab systemd[1]: openhab.service: Service RestartSec=5s expired, scheduling restart.
Jan 06 05:00:06 openhab systemd[1]: openhab.service: Scheduled restart job, restart counter is at 2.
Jan 06 05:00:06 openhab systemd[1]: Stopped openHAB - empowering the smart home.
Jan 06 05:00:06 openhab systemd[1]: Started openHAB - empowering the smart home.```

I adjusted the EXTRA_JAVA_OPTS values to 384 and 768 and will test the behaviour in the next few days.

I had very high values before (1024 and 2048) and I think this could have caused the problems. I also checked the log file (var/lib/openhab/hs_err_pid1776.log)

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 16777216 bytes for Failed to reserve memory for metaspace
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (virtualSpaceNode.cpp:249), pid=1776, tid=2733
#
# JRE version: OpenJDK Runtime Environment Zulu17.42+19-CA (17.0.7+7) (build 17.0.7+7)
# Java VM: OpenJDK Server VM Zulu17.42+19-CA (17.0.7+7, mixed mode, g1 gc, linux-arm)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#

---------------  S U M M A R Y ------------

Command Line: -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.cm.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -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 -Dfile.encoding=UTF-8 -Xms1024m -Xmx2048m -Dlog4j2.formatMsgNoLookups=true --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED --patch-module=java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.4.4.jar --patch-module=java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.4.4.jar --add-opens=java.base/java.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/java.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.net.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.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports=java.security.sasl/com.sun.security.sasl=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/var/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 -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true org.apache.karaf.main.Main

Host: rev 3 (v7l), 4 cores, 7G, Raspbian GNU/Linux 10 (buster)
Time: Sat Jan  6 05:00:00 2024 CET elapsed time: 262347.205116 seconds (3d 0h 52m 27s)

Thanks for your help so far! Will update this thread if this solved my problem (decreasing the java heap size).

It is relatively easy to find a good reason. You are using outdated bindings that were built with an old version of the core framework.
If you expect something stable, install only bindings that were built with the 4.1 version of the openHAB core framework.
So, first check the version of all your installed bindings and uninstall all those that are not at version level 4.1.

1 Like

You are absolutely right! I checked it and deleted old versions (and updated if updated version was available).

Hope that everything is working fine now (as before).