only logs can show us what is happening. where are they?
Which log can be useful? openhab.log outputs nothing right before when it stops, events.log shows regular item updates/commands, nothing unexpected there.
is there anything? useful in:
journalctl -n 100 -u openhab2
also: what is your java -version
?
Nothing special. Now it is running since 07:45, so it should be if the logs started at 06:33
-- Logs begin at Wed 2018-11-28 06:33:26 CET, end at Wed 2018-11-28 08:53:20 CET. --
Nov 28 06:58:01 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 28 07:23:14 openHABianPi systemd[1]: Stopping openHAB 2 - empowering the smart home...
Nov 28 07:25:14 openHABianPi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Nov 28 07:45:25 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Java version:
openjdk version "1.8.0_152"
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)
is this a clean OH2.4.0.M6 deployment or an upgraded one? (from which OH2 version?)
can you provide a list of installed Add-ons plz
I would try to deploy clean and start enabling one by one the addons to see which one may be causing the service to fail.
I have updated from M5, so not a clean install.
ID β State β Lvl β Version β Name
βββββΌβββββββββββΌββββββΌβββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββ
20 β Active β 80 β 5.3.1.201602281253 β OSGi JAX-RS Connector
21 β Active β 80 β 2.7.0.v20170129-0911 β Gson: Google Json Library for Java
23 β Active β 80 β 3.0.0.v201312141243 β Google Guice (No AOP)
26 β Active β 80 β 3.5.4 β JmDNS
28 β Active β 80 β 1.0.0 β Units of Measurement API
30 β Active β 80 β 1.1.0.Final β Bean Validation API
31 β Active β 80 β 2.0.1 β javax.ws.rs-api
32 β Active β 80 β 3.2.0.v201101311130 β ANTLR Runtime
35 β Active β 80 β 3.2.1 β Commons Collections
36 β Active β 80 β 1.1 β Commons Exec
37 β Active β 80 β 2.2.0 β Commons IO
38 β Active β 80 β 2.6 β Commons Lang
47 β Active β 80 β 4.2.1 β Apache Karaf :: OSGi Services :: Event
63 β Active β 80 β 4.6.0 β Apache XBean OSGI Bundle Utilities
64 β Active β 80 β 4.6.0 β Apache XBean :: Classpath Resource Finder
65 β Active β 80 β 2.12.0.v20160420-0247 β EMF Common
66 β Active β 80 β 2.12.0.v20160420-0247 β EMF Ecore
67 β Active β 80 β 2.11.0.v20160420-0247 β EMF Change Model
68 β Active β 80 β 2.12.0.v20160420-0247 β EMF XML/XMI Persistence
69 β Active β 80 β 3.8.0.v20160509-1230 β Common Eclipse Runtime
70 β Active β 80 β 3.6.100.v20160223-2218 β Extension Registry Support
80 β Active β 80 β 9.4.11.v20180605 β Jetty :: Proxy
94 β Active β 80 β 0.4.1.v20180515-1321 β org.eclipse.lsp4j
95 β Active β 80 β 0.4.1.v20180515-1321 β org.eclipse.lsp4j.jsonrpc
96 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Config Core
97 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Configuration Discovery
98 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Configuration mDNS Discovery
99 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Config Dispatcher
100 β Active β 75 β 0.10.0.oh240M6 β Eclipse SmartHome Config XML
101 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core
102 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Audio
103 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Binding XML
104 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core ID
105 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Persistence
106 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Scheduler Service
107 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Semantics
108 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Thing
109 β Active β 75 β 0.10.0.oh240M6 β Eclipse SmartHome Core Thing XML
110 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Transformation Service
111 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core Voice
112 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Console
113 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Console for OSGi runtime Karaf
114 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome HTTP Interface Bundle
115 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome JavaSound I/O, Fragments: 185
116 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Monitor
117 β Active β 80 β 2.3.0.201805141314 β Animated Climacons Iconset
118 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Net I/O Bundle
120 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome REST Interface Bundle
121 β Active β 80 β 2.4.0.201806041651 β Heos Binding
122 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Core REST API
123 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome REST mDNS Announcer
124 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome REST Interface JAX-RS optimizatio
125 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Sitemap REST API
126 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome SSE REST API
127 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Voice REST API
128 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Bonjour/MDS Service Discovery Bun
129 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Web Audio Support
130 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Model Core
131 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Item Model
132 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Item Model IDE
133 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Item Model Runtime
134 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Language Server
135 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Persistence Model
136 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Persistence Model IDE
137 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Persistence Runtime
138 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Rule Model
139 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Rule Model IDE
140 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Rule Runtime
141 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Script
142 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Script Model IDE
143 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Script Runtime
144 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Sitemap Model
145 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Sitemap Model IDE
146 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Sitemap Runtime
147 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Thing Model
148 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Thing Model IDE
149 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Thing Model Runtime
150 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Json Storage Service
151 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome UI
152 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome UI Icons
153 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Classic IconSet
154 β Active β 80 β 2.14.0.v20180522-1629 β Xtend Runtime Library
155 β Active β 80 β 2.14.0.v20180522-1629 β Xtend Macro Interfaces
156 β Active β 80 β 2.14.0.v20180522-1821 β Xtext
157 β Active β 80 β 2.14.0.v20180522-1833 β Xtext Common Types
158 β Active β 80 β 2.14.0.v20180522-1821 β Xtext IDE Core
159 β Active β 80 β 2.14.0.v20180522-1821 β Xtext Utility
160 β Active β 80 β 2.14.0.v20180522-1833 β Xbase Model
161 β Active β 80 β 2.14.0.v20180522-1833 β Xbase Generic IDE Services
162 β Active β 80 β 2.14.0.v20180522-1629 β Xbase Runtime Library
177 β Active β 80 β 1.9.6 β MIME streaming extension
179 β Active β 80 β 6.2.0 β org.objectweb.asm
180 β Active β 80 β 6.2.0 β org.objectweb.asm.commons
181 β Active β 80 β 6.2.0 β org.objectweb.asm.tree
182 β Active β 90 β 2.4.0.M6 β openHAB Core
183 β Active β 80 β 2.4.0.M6 β openHAB Karaf Integration
185 β Resolved β 80 β 2.4.0.M6 β openHAB Sound Support, Hosts: 115
186 β Active β 80 β 2.4.0.M6 β openHAB Dashboard UI
191 β Active β 80 β 1.0.2 β Units of Measurement Common Library
192 β Active β 80 β 1.0.8 β Units of Measurement Implementation for Java SE
193 β Active β 80 β 1.1.1.201605111122 β Swagger Provider
194 β Active β 80 β 2.4.5 β Jackson-annotations
195 β Active β 80 β 2.4.5 β Jackson-core
196 β Active β 80 β 2.4.5 β jackson-databind
197 β Active β 80 β 2.4.5 β Jackson-dataformat-XML
198 β Active β 80 β 2.4.5 β Jackson-dataformat-YAML
199 β Active β 80 β 2.4.5 β Jackson-module-JAXB-annotations
200 β Active β 80 β 18.0.0 β Guava: Google Core Libraries for Java
201 β Active β 80 β 2.1.0 β json-path
202 β Active β 80 β 3.14.0 β nrjavaserial
203 β Active β 80 β 3.15.0.OH β nrjavaserial
204 β Active β 80 β 1.5.8 β swagger-annotations
205 β Active β 80 β 1.5.8 β swagger-core
206 β Active β 80 β 1.5.8 β swagger-jaxrs
207 β Active β 80 β 1.5.8 β swagger-models
208 β Active β 80 β 3.19.0.GA β Javassist
209 β Active β 80 β 2.2 β json-smart
210 β Active β 80 β 1.6.0 β Commons Codec
211 β Active β 80 β 3.2.1 β Apache Commons Lang
212 β Active β 80 β 3.3.0 β Commons Net
213 β Active β 80 β 4.2.3 β Apache HttpClient OSGi bundle
214 β Active β 80 β 4.2.3 β Apache HttpCore OSGi bundle
215 β Active β 80 β 3.1.0.7 β Apache ServiceMix :: Bundles :: commons-httpclient
216 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation API
217 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation commands
218 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Core
219 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Module Core
220 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Media Modules
221 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Module Script
222 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Script Globals
223 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Script RuleSupport
224 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Module Timer
225 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation GSON Parser
226 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation Providers
227 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Automation REST API
228 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Astro Binding
229 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome NTP Binding
230 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Configuration UPnP Discovery
231 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Configuration USB-Serial Discovery
232 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Configuration USB-Serial Discover
233 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Config Serial
234 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome IoT Marketplace Extension Service
235 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Serial Transport
236 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Serial Transport for RXTX
237 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Serial Transport extension for RX
238 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome UPnP Transport Bundle
239 β Active β 75 β 0.10.0.oh240M6 β Eclipse SmartHome JSonPath Transformation Service
240 β Active β 75 β 0.10.0.oh240M6 β Eclipse SmartHome Map Transformation Service
241 β Active β 75 β 0.10.0.oh240M6 β Eclipse SmartHome RegEx Transformation Service
242 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Basic UI, Fragments: 274
243 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome Paper UI, Fragments: 279
244 β Active β 80 β 2.4.0 β JUPnP Library
245 β Active β 80 β 1.13.0.M6 β openHAB Mqtt Action
246 β Active β 80 β 1.13.0.M6 β openHAB Telegram Action
247 β Active β 80 β 2.4.0.M6 β AirQuality Binding
248 β Active β 80 β 1.13.0.M6 β openHAB CalDav Binding
249 β Active β 80 β 2.4.0.M6 β Chromecast Binding
250 β Active β 80 β 2.4.0.M6 β DenonMarantz Binding
251 β Active β 80 β 2.4.0.M6 β Exec Binding
252 β Active β 80 β 1.13.0.M6 β openHAB Expire Binding
253 β Active β 80 β 2.4.0.M6 β HarmonyHub Binding
254 β Active β 80 β 1.13.0.M6 β openHAB HTTP Binding
255 β Active β 80 β 2.4.0.M6 β iCloud Binding
256 β Active β 80 β 2.4.0.M6 β IPP Binding
257 β Active β 80 β 2.4.0.M6 β Kodi Binding
258 β Active β 80 β 1.13.0.M6 β openHAB MQTT Binding
259 β Active β 80 β 1.13.0.M6 β openHAB Mqttitude Binding
260 β Active β 80 β 2.4.0.M6 β Network Binding
261 β Active β 80 β 2.4.0.M6 β Systeminfo Binding
262 β Active β 80 β 1.13.0.M6 β openHAB TCP-UDP Binding
263 β Active β 80 β 2.4.0.M6 β WiFiLED Binding
264 β Active β 80 β 2.4.0.M6 β ZWave Binding
265 β Active β 80 β 2.4.0.M6 β openHAB 1.x Compatibility Layer
266 β Active β 80 β 1.13.0.M6 β openHAB CalDav Calendar
267 β Active β 80 β 1.13.0.M6 β openHAB Google Calendar
268 β Active β 80 β 2.4.0.M6 β openHAB Cloud Connector Bundle
269 β Active β 80 β 2.4.0.M6 β openHAB REST Documentation
270 β Active β 80 β 1.13.0.M6 β openHAB MQTT Transport Bundle
273 β Active β 80 β 1.13.0.M6 β openHAB MQTT Persistence Bundle
274 β Resolved β 75 β 2.4.0.M6 β openHAB Basic UI Fragment, Hosts: 242
276 β Active β 80 β 2.4.0.M6 β HABot Interactive Bot
277 β Active β 80 β 2.4.0.M6 β HABPanel User Interface
278 β Active β 80 β 2.4.0.M6 β HomeBuilder User Interface
279 β Resolved β 75 β 2.4.0.M6 β openHAB Paper UI Theme Fragment, Hosts: 243
280 β Active β 80 β 2.4.0.M6 β Pico Text-to-Speech
281 β Active β 80 β 0.9.10.v20160429-1435 β reflections (wrap)
282 β Active β 80 β 3.1.4 β Stax2 API
283 β Active β 80 β 1.5.8.v20160511-1038 β swagger-jersey2-jaxrs (wrap)
284 β Active β 80 β 2.4.0.201811191918 β Xiaomi Mi IO Binding
285 β Active β 80 β 2.2.0.201711091019 β Sony Binding
287 β Active β 80 β 0.10.0.oh240M6 β Eclipse SmartHome OpenWeatherMap Binding
288 β Active β 80 β 1.13.0.M6 β openHAB mySQL Persistence bundle
289 β Active β 80 β 1.13.0.M6 β openHAB MapDB Persistence Bundle
bundle:list
However it might be just some anomaly, because I have restarted RPi and pulled power source from it for a few secs, now it has been running for 2 hours normally, before it stopped repeated times in 10-30 minsβ¦
βofficialβ PSU with+5,1V/2,5A or another Power Supply Unit on the rPi?
Official I just started to feel that RPi is might not be powerful enough for my setup.
Iβm running multiple (so manyβ¦) things on it that these problems might caused by this.
If itβs a rPi3 (b, b+) it should be okβ¦ it is trueβ¦ you are running lots of addons (and local MySQL?) but I wouldnβt give up on it just yet. Anywayβ¦ it doesnβt hurt to move to a stronger computing platform (e.g. NUC or Laptop) to run OH2
Itβs an RPi 3B. Iβm running OH, Node-RED, TasmoAdmin and a few python scripts for communicating with different protocols (security system, etcβ¦). Also Iβm running Kodi on that RPi, because mainly I used that just for media center. I know it that this is not the best case, but I wanted to try out openHab, what I can do with it (and not) and if it fits my needs Iβll upgrade the hardwareβ¦
your RAM may be all used up⦠(this can be a problem on SBCs)
what is the output of:
free
(or cat /proc/meminfo |grep -i swap)
Iβm monitoring the memory usage for days, and it is always almost full, but not not entirely.
total used free shared buff/cache available
Mem: 864188 660408 56528 5060 147252 144844
Swap: 102396 72704 29692
However thatβs the one I thought of, because sometimes I saw errors in openHab, that it canβt allocate memory for somethingβ¦ another guess for me is disk I/O. I had a previous problem where rules stopped working and that was because of the I/O, it was just too slow to write everything to the SD. Now I have solved this, Iβm using MySQL on my NAS, so not locally and also moved the logs to the NASβ¦
Disk I/O (usually) isnβt a bottleneck in terms of performance, nevertheless you should still move all write-intensive data storage over to your NAS to avoid getting hit by SD corruption.
The largest benefit will be in swapping [well, paging to use the correct term] to NAS, too. See this post.
Either way, please stay on topic. Open a new thread if you want to discuss server optimizations.
Sorry for spamming this post, but it seemed that this problem is related to M6.
Anyway it seems it solved itself
hey guys, Iβve just updated to m6 from 2.3. ive cleared the cache but openhab wonβt start and in the log I have the following.
2018-12-02 08:15:13.905 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Error initializing storage.
at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:70)
at org.eclipse.osgi.launch.Equinox.(Equinox.java:31)
at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
at org.apache.karaf.main.Main.launch(Main.java:256)
at org.apache.karaf.main.Main.main(Main.java:178)
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.(RandomAccessFile.java:243)
at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)
at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)
at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
at org.eclipse.osgi.storage.Storage.(Storage.java:132)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:68)
β¦ 4 more
any ideas how to fit the permission issue?
How did you upgrade?
post the output of
openhab-cli info
#1, #9
here is the output.
I used the openhababian config
Version: 2.4.0.M6 (Build)
User: openhab (Active Process 22767)
User Groups: openhab tty dialout audio bluetooth gpio
Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhabian
OPENHAB_CONF | /etc/openhab2 | openhab:openhabian
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhabian
URLs: http://192.168.178.42:8080
https://192.168.178.42:8443
I didnβt know that the openhabian config tool allows you to use Milestone builds.
I though that you could choose only between stable (2.3.0) and snapshot (2.4.0.S)
anyway, try:
sudo su
systemctl stop openhab2
mv /var/log/openhab2/openhab.log /var/log/openhab2/openhab.log.old
chown -R openhab:openhab /var/lib/openhab2/
systemctl start openhab2
tail -f /var/log/openhab2/openhab.log
then,
apt-get update && apt-get upgrade
to get the new one: [OH 2.4.0 M7] Testing Results
time to upgrade people! Letβs make OH2.4 the most stable release ever !
upgrading to m7 fixed it