openHAB 4.0 Milestone discussion

no, accidental afterwards

Already tried to reboot?

serveral times.

But I just restored a Backup, and with the correct sequence of updating Java from Java11 to Java17 and the openhab update afterwards it works.

I’ve problems with the netatmo binding but I think, that’s another issue.

Have you cleared cache?

Just hit this issue with OH4 M1. I didn’t have this in OH3.4. Any suggestions on debugging this further?

2023-03-26 06:20:42.457 [WARN ] [org.eclipse.jetty.util.Scanner      ] -
java.nio.file.FileSystemException: /var/lib/openhab/etc: Too many open files
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
        at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:440) ~[?:?]
        at java.nio.file.Files.newDirectoryStream(Files.java:482) ~[?:?]
        at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301) ~[?:?]
        at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:323) ~[?:?]
        at java.nio.file.Files.walkFileTree(Files.java:2804) ~[?:?]
        at org.eclipse.jetty.util.Scanner.scanFiles(Scanner.java:671) ~[?:?]
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:640) ~[?:?]
        at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:558) ~[?:?]
        at java.util.TimerThread.mainLoop(Timer.java:566) ~[?:?]
        at java.util.TimerThread.run(Timer.java:516) ~[?:?]

Also seeing this issue, could not normalize configuration for Zwave:

Does this happen all the time or did it happen once? If it happens more than once: When does it happen (immediately after starting? after some time?). What bindings are installed? Anything from 3rd party or community marketplace? Any errors in the log before?

Hi @J-N-K, for the file open issue: it took 7 days to occur after OH started. I’m waiting to see if it occurs again. I’m at 2 days now, so it will take some time to know if it recurs or not. No 3rd party or community marketplace bindings. I’ll list the bundles below. No other errors in the log prior to this.

Is there anyway to monitor the number of files open while OH is running?

The normalization issue occurs at start up, and then I see it again every night when the Zwave heal occurs.

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                │ Name
────┼────────┼─────┼────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 30 │ Active │  80 │ 2.14.1                 │ Jackson-annotations
 31 │ Active │  80 │ 2.14.1                 │ Jackson-core
 32 │ Active │  80 │ 2.14.1                 │ jackson-databind
 33 │ Active │  80 │ 2.14.1                 │ Jackson-dataformat-YAML
 34 │ Active │  80 │ 2.14.1                 │ Jackson datatype: JSR310
 35 │ Active │  80 │ 6.2.6                  │ Woodstox
 36 │ Active │  80 │ 2.9.1                  │ Gson
 37 │ Active │  80 │ 30.1.0.jre             │ Guava: Google Core Libraries for Java
 38 │ Active │  80 │ 1.0.1                  │ Guava InternalFutureFailureAccess and InternalFutures
 39 │ Active │  80 │ 5.0.1.v20210324-2015   │ Google Guice - Core Library
 40 │ Active │  80 │ 5.12.1                 │ jna
 41 │ Active │  80 │ 5.12.1                 │ jna-platform
 43 │ Active │  80 │ 4.8.149.v20220915-0556 │ ClassGraph
 44 │ Active │  80 │ 0.17.1                 │ Directory-Watcher
 45 │ Active │  80 │ 2.1.9                  │ swagger-annotations
 46 │ Active │  80 │ 2.1.9                  │ swagger-core
 47 │ Active │  80 │ 2.1.9                  │ swagger-integration
 48 │ Active │  80 │ 2.1.9                  │ swagger-jaxrs2
 49 │ Active │  80 │ 2.1.9                  │ swagger-models
 51 │ Active │  80 │ 2.0.2                  │ Jakarta Bean Validation API
 53 │ Active │  80 │ 2.3.3                  │ Jakarta XML Web Services API
 54 │ Active │  80 │ 1.2                    │ javax.annotation API
 55 │ Active │  80 │ 3.5.8                  │ JmDNS
 56 │ Active │  80 │ 2.1.3                  │ Units of Measurement API
 58 │ Active │  80 │ 0.5.10                 │ Jollyday
 59 │ Active │  80 │ 3.2.0.v201101311130    │ ANTLR Runtime
 60 │ Active │  80 │ 1.0.0.v201105210816    │ Aopalliance Plug-in
 61 │ Active │  80 │ 1.2.2                  │ org.apache.aries.component-dsl.component-dsl
 62 │ Active │  80 │ 1.0.1                  │ Apache Aries JAX-RS Specification API
 63 │ Active │  80 │ 2.0.0                  │ Apache Aries JAX-RS Whiteboard
 64 │ Active │  80 │ 1.3.4                  │ Apache Aries SPI Fly Dynamic Weaving Bundle
 65 │ Active │  80 │ 3.12.0                 │ Apache Commons Lang
 66 │ Active │  80 │ 3.4.5                  │ Apache CXF Core
 67 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime JAX-RS Frontend
 68 │ Active │  80 │ 3.4.5                  │ Apache CXF JAX-RS Client
 69 │ Active │  80 │ 3.4.5                  │ Apache CXF JAX-RS Server-Side Events Support
 70 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime Security functionality
 71 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime HTTP Transport
 77 │ Active │  80 │ 4.4.3                  │ Apache Karaf :: OSGi Services :: Event
 88 │ Active │  80 │ 1.0.0.2                │ Apache ServiceMix :: Bundles :: javax.inject
 95 │ Active │  80 │ 2.2.5                  │ XmlSchema Core
 96 │ Active │  80 │ 0.7.7                  │ jose4j
 97 │ Active │  80 │ 2.17.0.v20190920-0401  │ EMF Common
 98 │ Active │  80 │ 2.20.0.v20190920-0401  │ EMF Ecore
 99 │ Active │  80 │ 2.14.0.v20190528-0725  │ EMF Change Model
100 │ Active │  80 │ 2.16.0.v20190528-0725  │ EMF XML/XMI Persistence
101 │ Active │  80 │ 3.13.0.v20200828-1034  │ Common Eclipse Runtime
108 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Proxy
116 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: API
117 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Client
118 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Common
119 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Server
120 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Servlet Interface
122 │ Active │  80 │ 0.19.0.v20221118-0359  │ org.eclipse.lsp4j
123 │ Active │  80 │ 0.19.0.v20221118-0359  │ org.eclipse.lsp4j.jsonrpc
124 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xtend Runtime Library
125 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xtend Macro Interfaces
126 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext
127 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xtext Common Types
128 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext IDE Core
129 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext Utility
130 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xbase Model
131 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xbase Generic IDE Services
132 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xbase Runtime Library
136 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.commons
137 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.tree
138 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.tree.analysis
139 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.util
140 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Core
141 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Add-on XML
142 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Marketplace Add-on Services
143 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Community Marketplace Add-on Service :: Karaf
144 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Audio
145 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: JAAS Authentication
146 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: OAuth2Client
147 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation
148 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Media Modules
149 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Script Modules
150 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Script RuleSupport
151 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation REST API
152 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Core
153 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Discovery
154 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration mDNS Discovery
155 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Dispatcher
156 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Ephemeris
157 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: ID
158 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Console
159 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
160 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: HTTP Interface
161 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: HTTP Interface Authentication
163 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Monitor
164 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Network I/O
165 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface
166 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Audio REST Interface
167 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
168 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface :: Core
169 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST mDNS Announcer
170 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Sitemap REST Interface
171 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: SSE Interface
172 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
173 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Transformation REST Interface
174 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI REST Interface
175 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Voice REST Interface
176 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: mDNS Service
177 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: WebSocket
178 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Karaf Integration
179 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Core
180 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Items
181 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Item IDE
182 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Items Runtime
183 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Language Server
184 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence
185 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence IDE
186 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence Runtime
187 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rules
188 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rule IDE
189 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rules Runtime
190 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script
191 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script IDE
192 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script Runtime
193 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap
194 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap IDE
195 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap Runtime
196 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing
197 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing IDE
198 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing Runtime
199 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Persistence
200 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Semantics
201 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: JSON Storage
202 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Thing
203 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Transformation Service
204 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI
205 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI Icon Support
206 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Voice
207 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Main UI
208 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Icon Set :: Classic
218 │ Active │  80 │ 1.0.0.201802012106     │ org.osgi:org.osgi.service.jaxrs
219 │ Active │  80 │ 1.5.0                  │ ThreeTen-Extra
220 │ Active │  80 │ 1.33.0                 │ SnakeYAML
221 │ Active │  80 │ 2.1                    │ SI Units
222 │ Active │  80 │ 2.1.0                  │ SI Quantities
223 │ Active │  80 │ 4.2.1                  │ Stax2 API
224 │ Active │  80 │ 2.1.2                  │ Units of Measurement Reference Implementation
225 │ Active │  80 │ 2.1.0                  │ Units of Measurement Common Library for Java
226 │ Active │  80 │ 1.4.19                 │ XStream Core
227 │ Active │  80 │ 2.27                   │ Dagger
228 │ Active │  80 │ 1.2.2                  │ hivemq-mqtt-client
229 │ Active │  80 │ 1.6.2                  │ JavaMail API
230 │ Active │  80 │ 4.1.72.Final           │ Netty/Buffer
231 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec
232 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec/HTTP
233 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec/Socks
234 │ Active │  80 │ 4.1.72.Final           │ Netty/Common
235 │ Active │  80 │ 4.1.72.Final           │ Netty/Handler
236 │ Active │  80 │ 4.1.72.Final           │ Netty/Handler/Proxy
237 │ Active │  80 │ 4.1.72.Final           │ Netty/Resolver
238 │ Active │  80 │ 2.0.46.Final           │ Netty/TomcatNative [OpenSSL - Classes]
239 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport
240 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport/Classes/Epoll
241 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport/Native/Unix/Common
242 │ Active │  80 │ 2.2.19                 │ rxjava
243 │ Active │  80 │ 5.2.1.OH1              │ nrjavaserial
244 │ Active │  80 │ 3.9.0                  │ Apache Commons Net
245 │ Active │  80 │ 2.1.2                  │ Java Concurrency Tools Core Library
246 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Automation :: Jython Scripting
247 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Astro Binding
248 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: FTP Upload Binding
249 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Mail Binding
250 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Xiaomi Mi Smart Home Binding
251 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
252 │ Active │  81 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT EspMilightHub
253 │ Active │  81 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
254 │ Active │  82 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
255 │ Active │  82 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
256 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Network Binding
257 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: ZWave Binding
258 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
259 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
260 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
261 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Serial
262 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: MQTT Transport
263 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport
264 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport for RXTX
265 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport for RFC2217
266 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Persistence Service :: InfluxDB
267 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Persistence Service :: MapDB
268 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: Exec
269 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: JSonPath
270 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: Map
271 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: RegEx
272 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: Scale
273 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: XPath
274 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: Xslt
275 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Basic UI
276 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: HABPanel UI
277 │ Active │  80 │ 1.0.3                  │ reactive-streams
278 │ Active │  80 │ 1.0.1                  │ IO.Socket Engine Client
279 │ Active │  80 │ 1.0.1                  │ IO.Socket Socket Client
280 │ Active │  80 │ 20180813.0.0           │ JSON in Java
281 │ Active │  80 │ 3.8.1.1                │ Apache ServiceMix :: Bundles :: okhttp
282 │ Active │  80 │ 1.13.0.1               │ Apache ServiceMix :: Bundles :: okio
283 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector

I have an issue with 4.0.0.M1 running in Docker on a Synology NAS.
If I want to add a Channel Link to an existing Item then there are never any channels available.

It works only if I use “Create Points from Thing” in the Model view. I tried this with different Things and the problem was always the same. I hope you can fix this for the next version.

I installed Zulu Jdk17, 13 then 11 on RPi3B and Raspbian stretch using wget
For 17, java complains of dependency to GLIBC_2.27 and on my setup apt-cache policy libc6 was uptodate with 2.24-11+deb9u4 … didn’t want to go ahead.
There is no trouble to install different versions, you just have to select at the end the one you want to use with update-alternatives --install

stretch is … err… old-oldstable?
buster is oldstable
bullseye is stable (at least for some time, will be oldstable this year)

So I recommend to upgrade to buster, then straight forward upgrade to bullseye (and when bookworm gets stable, upgrade soon)

2 Likes

Hello everyone,
Quick question:
Running on docker with openhab/openhab:4.0.0-snapshot image.
The following js script is executed:

var logger = log('rules_tools.'+ruleUID);
logger.warn(time.toZDT("00:00:10"));

The following is displayed in the log file:

2023-03-30 16:16:46.474 [WARN ] [on.openhab-js.rules_tools.1466384fae] - 2023-03-30T00:00:10+02:00[SYSTEM]

Isn’t [SYSTEM] actually the time zone e.g. Europe/Berlin?

Has anyone else noticed this?

LG Ralf

I guess SYSTEM is the Timezone of the System, so it’s up to you what you’ve set there.

Is that supposed to be an environment variable?
In the container is the time zone:

root@0708741d805d:~# cat /etc/timezone 
Europe/Berlin

So it should actually fit.

See openhab-js/time.js at main · openhab/openhab-js · GitHub row 197 and GitHub - openhab/openhab-js: openHAB JavaScript Library for JavaScript Scripting Automation ( content of the table ).

Ahh now I get it. Thanks

SYSTEM is your system’s timezone. If you set your system timezone to Europe/Berlin, then SYSTEM effectively is Europe/Berlin.

“java.io.IOException: Too many open files”

just happened to me.

  • It was the first time since upgrade to 4.0M1
  • It was after few days after last openhab service start.
  • No marketplace addons installed
    My addons:
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                │ Name
────┼────────┼─────┼────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 30 │ Active │  80 │ 2.14.1                 │ Jackson-annotations
 31 │ Active │  80 │ 2.14.1                 │ Jackson-core
 32 │ Active │  80 │ 2.14.1                 │ jackson-databind
 33 │ Active │  80 │ 2.14.1                 │ Jackson-dataformat-YAML
 34 │ Active │  80 │ 2.14.1                 │ Jackson datatype: JSR310
 35 │ Active │  80 │ 6.2.6                  │ Woodstox
 36 │ Active │  80 │ 2.9.1                  │ Gson
 37 │ Active │  80 │ 30.1.0.jre             │ Guava: Google Core Libraries for Java
 38 │ Active │  80 │ 1.0.1                  │ Guava InternalFutureFailureAccess and InternalFutures
 39 │ Active │  80 │ 5.0.1.v20210324-2015   │ Google Guice - Core Library
 40 │ Active │  80 │ 5.12.1                 │ jna
 41 │ Active │  80 │ 5.12.1                 │ jna-platform
 43 │ Active │  80 │ 4.8.149.v20220915-0556 │ ClassGraph
 44 │ Active │  80 │ 0.17.1                 │ Directory-Watcher
 45 │ Active │  80 │ 2.1.9                  │ swagger-annotations
 46 │ Active │  80 │ 2.1.9                  │ swagger-core
 47 │ Active │  80 │ 2.1.9                  │ swagger-integration
 48 │ Active │  80 │ 2.1.9                  │ swagger-jaxrs2
 49 │ Active │  80 │ 2.1.9                  │ swagger-models
 51 │ Active │  80 │ 2.0.2                  │ Jakarta Bean Validation API
 53 │ Active │  80 │ 2.3.3                  │ Jakarta XML Web Services API
 54 │ Active │  80 │ 1.2                    │ javax.annotation API
 55 │ Active │  80 │ 3.5.8                  │ JmDNS
 56 │ Active │  80 │ 2.1.3                  │ Units of Measurement API
 58 │ Active │  80 │ 0.5.10                 │ Jollyday
 59 │ Active │  80 │ 3.2.0.v201101311130    │ ANTLR Runtime
 60 │ Active │  80 │ 1.0.0.v201105210816    │ Aopalliance Plug-in
 61 │ Active │  80 │ 1.2.2                  │ org.apache.aries.component-dsl.component-dsl
 62 │ Active │  80 │ 1.0.1                  │ Apache Aries JAX-RS Specification API
 63 │ Active │  80 │ 2.0.0                  │ Apache Aries JAX-RS Whiteboard
 64 │ Active │  80 │ 1.3.4                  │ Apache Aries SPI Fly Dynamic Weaving Bundle
 65 │ Active │  80 │ 3.12.0                 │ Apache Commons Lang
 66 │ Active │  80 │ 3.4.5                  │ Apache CXF Core
 67 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime JAX-RS Frontend
 68 │ Active │  80 │ 3.4.5                  │ Apache CXF JAX-RS Client
 69 │ Active │  80 │ 3.4.5                  │ Apache CXF JAX-RS Server-Side Events Support
 70 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime Security functionality
 71 │ Active │  80 │ 3.4.5                  │ Apache CXF Runtime HTTP Transport
 77 │ Active │  80 │ 4.4.3                  │ Apache Karaf :: OSGi Services :: Event
 88 │ Active │  80 │ 1.0.0.2                │ Apache ServiceMix :: Bundles :: javax.inject
 95 │ Active │  80 │ 2.2.5                  │ XmlSchema Core
 96 │ Active │  80 │ 0.7.7                  │ jose4j
 97 │ Active │  80 │ 2.17.0.v20190920-0401  │ EMF Common
 98 │ Active │  80 │ 2.20.0.v20190920-0401  │ EMF Ecore
 99 │ Active │  80 │ 2.14.0.v20190528-0725  │ EMF Change Model
100 │ Active │  80 │ 2.16.0.v20190528-0725  │ EMF XML/XMI Persistence
101 │ Active │  80 │ 3.13.0.v20200828-1034  │ Common Eclipse Runtime
108 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Proxy
116 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: API
117 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Client
118 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Common
119 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Server
120 │ Active │  80 │ 9.4.50.v20221201       │ Jetty :: Websocket :: Servlet Interface
122 │ Active │  80 │ 0.19.0.v20221118-0359  │ org.eclipse.lsp4j
123 │ Active │  80 │ 0.19.0.v20221118-0359  │ org.eclipse.lsp4j.jsonrpc
124 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xtend Runtime Library
125 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xtend Macro Interfaces
126 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext
127 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xtext Common Types
128 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext IDE Core
129 │ Active │  80 │ 2.29.0.v20221121-0917  │ Xtext Utility
130 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xbase Model
131 │ Active │  80 │ 2.29.0.v20221121-0924  │ Xbase Generic IDE Services
132 │ Active │  80 │ 2.29.0.v20221121-0915  │ Xbase Runtime Library
136 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.commons
137 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.tree
138 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.tree.analysis
139 │ Active │  80 │ 9.2.0                  │ org.objectweb.asm.util
140 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Core
141 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Add-on XML
142 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Marketplace Add-on Services
143 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Community Marketplace Add-on Service :: Karaf
144 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Audio
145 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: JAAS Authentication
146 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: OAuth2Client
147 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation
148 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Media Modules
149 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Script Modules
150 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation Script RuleSupport
151 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Automation REST API
152 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Core
153 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Discovery
154 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration mDNS Discovery
155 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Dispatcher
156 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Ephemeris
157 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: ID
158 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Console
159 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
160 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: HTTP Interface
161 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: HTTP Interface Authentication
163 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Monitor
164 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Network I/O
165 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface
166 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Audio REST Interface
167 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
168 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface :: Core
169 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST mDNS Announcer
170 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Sitemap REST Interface
171 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: SSE Interface
172 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
173 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Transformation REST Interface
174 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI REST Interface
175 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Voice REST Interface
176 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: mDNS Service
177 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: WebSocket
178 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Karaf Integration
179 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Core
180 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Items
181 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Item IDE
182 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Items Runtime
183 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Language Server
184 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence
185 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence IDE
186 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Persistence Runtime
187 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rules
188 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rule IDE
189 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Rules Runtime
190 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script
191 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script IDE
192 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Script Runtime
193 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap
194 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap IDE
195 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Sitemap Runtime
196 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing
197 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing IDE
198 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Model Thing Runtime
199 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Persistence
200 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Semantics
201 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: JSON Storage
202 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Thing
203 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Transformation Service
204 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI
205 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: UI Icon Support
206 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Voice
207 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Main UI
208 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Icon Set :: Classic
218 │ Active │  80 │ 1.0.0.201802012106     │ org.osgi:org.osgi.service.jaxrs
219 │ Active │  80 │ 1.5.0                  │ ThreeTen-Extra
220 │ Active │  80 │ 1.33.0                 │ SnakeYAML
221 │ Active │  80 │ 2.1                    │ SI Units
222 │ Active │  80 │ 2.1.0                  │ SI Quantities
223 │ Active │  80 │ 4.2.1                  │ Stax2 API
224 │ Active │  80 │ 2.1.2                  │ Units of Measurement Reference Implementation
225 │ Active │  80 │ 2.1.0                  │ Units of Measurement Common Library for Java
226 │ Active │  80 │ 1.4.19                 │ XStream Core
227 │ Active │  80 │ 2.27                   │ Dagger
228 │ Active │  80 │ 1.2.2                  │ hivemq-mqtt-client
229 │ Active │  80 │ 1.6.2                  │ JavaMail API
230 │ Active │  80 │ 4.1.72.Final           │ Netty/Buffer
231 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec
232 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec/HTTP
233 │ Active │  80 │ 4.1.72.Final           │ Netty/Codec/Socks
234 │ Active │  80 │ 4.1.72.Final           │ Netty/Common
235 │ Active │  80 │ 4.1.72.Final           │ Netty/Handler
236 │ Active │  80 │ 4.1.72.Final           │ Netty/Handler/Proxy
237 │ Active │  80 │ 4.1.72.Final           │ Netty/Resolver
238 │ Active │  80 │ 2.0.46.Final           │ Netty/TomcatNative [OpenSSL - Classes]
239 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport
240 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport/Classes/Epoll
241 │ Active │  80 │ 4.1.72.Final           │ Netty/Transport/Native/Unix/Common
242 │ Active │  80 │ 2.2.19                 │ rxjava
243 │ Active │  80 │ 5.2.1.OH1              │ nrjavaserial
244 │ Active │  80 │ 3.9.0                  │ Apache Commons Net
245 │ Active │  80 │ 2.1.2                  │ Java Concurrency Tools Core Library
246 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Astro Binding
247 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Exec Binding
248 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: HTTP Binding
249 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: iCalendar Binding
250 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: IpCamera Binding
251 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Mail Binding
252 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
253 │ Active │  81 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT EspMilightHub
254 │ Active │  81 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
255 │ Active │  82 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
256 │ Active │  82 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
257 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Network Binding
258 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Network UPS Tools Binding
259 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: NTP Binding
260 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: OpenWeatherMap Binding
261 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: ZWave Binding
262 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
263 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
264 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
265 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Configuration Serial
266 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: MQTT Transport
267 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport
268 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport for RXTX
269 │ Active │  80 │ 4.0.0.M1               │ openHAB Core :: Bundles :: Serial Transport for RFC2217
270 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: IO :: Metrics Service
271 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Persistence Service :: InfluxDB
272 │ Active │  80 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Persistence Service :: MapDB
273 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: JSonPath
274 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: Map
275 │ Active │  75 │ 4.0.0.M1               │ openHAB Add-ons :: Bundles :: Transformation Service :: RegEx
276 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: Basic UI
277 │ Active │  80 │ 4.0.0.M1               │ openHAB UI :: Bundles :: HABPanel UI
278 │ Active │  80 │ 1.0.3                  │ reactive-streams

Open files error happened to me yesterday, for the second time since upgrading to 4.0.0. The first time was ten days earlier. No marketplace addons for me either.

Can you check the output of:

sudo lsof -p $(pgrep -f java.*openhab) | wc -l

and:

sudo lsof -p $(pgrep -f java.*openhab)

For reference, in my case the first command outputs 307.

Also, if you have recently restarted openhab, run the first command periodically and see if it increases. You could also write the output of the second command to a file (new one each time) and check the difference between the runs to see what new files are opened.