openHAB 4.0 Milestone discussion

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.

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

@JimT on Milestone or Snapshot. I recently did some changes that may prevent file leaks, but itβ€˜s only available in snapshot.

The first command outputs 7365. I rebooted yesterday evening.

Running the second command periodically, I can see many new instances of

java 804 openhab 7417r DIR 0,5 60 408 /dev/serial/by-id

The only serial device I am using is a ZWave USB stick.

Snapshot currently build #3380. I don’t get β€œtoo many files” errors though. But I do restart my openhab quite often, trying new bundles, etc. Just contributed a data point for comparisons.

Could you try disabling the z-wave controller Thing (or uninstall the binding) and see if the problem remains? Otherwise we have at least found the source.

Edit: I’m still on 3.4 and I have no file descriptions open in that directory, despite having three connected USB devices (rfxtrx, z-wave and Zigbee). Have the serial library been updated in 4.0? Could that be the cause in that case?

Edit 2: This commit seems to have introduced the scanning of that directory, could it be related?

@jon.hazan are the new entries replacing old ones, or do you see multiple lines with the same file?

Very likely, because it does exactly what I fixed for Files.walk and Files.list.

I have created Fix resource leak in SysfsUsbSerialScanner by J-N-K Β· Pull Request #3513 Β· openhab/openhab-core Β· GitHub as a fix.

I have tried disabling the handler, deleting the binding and restarting the openhab service, but I am still getting multiple new lines with the same /dev/serial/by-id file

Well, we seem to have identified the cause, and @J-N-K have created a fix for it, so it will hopefully be solved in the next milestone (or if you upgrade to the next snapshot after it’s been released)

1 Like