[SOLVED] Openhab unusable after snapshot update

Hi,
i´m on OH 2.2 Snapshot and was running version from 2017-07-04 until this morning. Today i made an update “apt-get update / upgrade”.

After that, OH2 stopped working. No rule is working anymore, i don´t get any values from my bindings. Many errors.

First error in log after update and restart was this:

2017-07-13 07:45:17.592 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-expert': BundleContext is no longer valid
2017-07-13 07:45:17.598 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.601 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.602 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.605 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.607 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.608 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed retrieving features: null
2017-07-13 07:45:17.621 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-synopanalyzer, openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-fritzbox1, openhab-binding-yahooweather, openhab-misc-openhabcloud, openhab-ui-habpanel, openhab-binding-mqtt1, openhab-binding-astro1, openhab-transformation-map, openhab-ui-classic, openhab-ui-habmin, openhab-binding-knx1, openhab-transformation-exec, openhab-ui-paper, openhab-transformation-scale, openhab-binding-ecotouch1, openhab-binding-milight, openhab-misc-market, openhab-transformation-javascript, openhab-binding-weather1, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-zwave, openhab-binding-mihome, openhab-persistence-rrd4j, openhab-binding-networkhealth1, openhab-ui-basic, openhab-persistence-json, openhab-binding-fsinternetradio, openhab-binding-ntp, openhab-action-mail, openhab-binding-astro, openhab-binding-expire1': Task java.util.concurrent.FutureTask@7da146dd rejected from java.util.concurrent.ThreadPoolExecutor@149dd0a4[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]


2017-07-13 07:46:55.356 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-synopanalyzer, openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-fritzbox1, openhab-binding-yahooweather, openhab-misc-openhabcloud, openhab-ui-habpanel, openhab-binding-mqtt1, openhab-binding-astro1, openhab-transformation-map, openhab-ui-classic, openhab-ui-habmin, openhab-binding-knx1, openhab-transformation-exec, openhab-ui-paper, openhab-transformation-scale, openhab-binding-ecotouch1, openhab-binding-milight, openhab-misc-market, openhab-transformation-javascript, openhab-binding-weather1, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-zwave, openhab-binding-mihome, openhab-persistence-rrd4j, openhab-binding-networkhealth1, openhab-ui-basic, openhab-persistence-json, openhab-binding-fsinternetradio, openhab-binding-ntp, openhab-action-mail, openhab-binding-astro, openhab-binding-expire1': Error restarting bundles

Can somebody help me?

i have never seen this error before…
did you try to restart OH2 once more after the apt-get upgrade?

Yes i did several times.

This errors are gone now, but i don´t get any values from rrd4j, mapdb and so on. All charts are empty and some rules aren´t working. Also some bindings don´t give me new values - ecotouch waterkotte heatpump binding for example.

Many errors with rrd4j in the log.

which OH 2.2 snapshot build?
the latest one (985) was released a few hours ago (I just updated to it)

can you post some of the rrd4j log entries to see what is going on?

I did the update 2 hours ago (07:45 german time).

Here are some of the latest errors in the log, but there are much more…

I think the errors are there, because openhab can´t read data from rrd4j and other persitences?

2017-07-13 09:53:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 3 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 2 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 4 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.002 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 5 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.002 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 1 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.002 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 6 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:00.003 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule power meter Hausverbrauch des heutigen Tages: The argument 'state' must not be null or empty.
2017-07-13 09:53:13.210 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:13.211 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'PV-Leistung - Strahlung Average': The argument 'state' must not be null or empty.
2017-07-13 09:53:33.525 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:33.525 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'PV-Leistung - Strahlung Average': The argument 'state' must not be null or empty.
2017-07-13 09:53:46.358 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.359 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.359 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.359 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.359 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.359 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mapdb'
2017-07-13 09:53:46.360 [ERROR] [se.smarthome.model.script.XiaomiTemp] - Failed to find most recent
2017-07-13 09:53:53.887 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:53:53.887 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'PV-Leistung - Strahlung Average': The argument 'state' must not be null or empty.
2017-07-13 09:54:00.000 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 3 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:54:00.000 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 2 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:54:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 5 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:54:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 4 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:54:00.001 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 6 time since: org.eclipse.smarthome.core.library.types.DateTimeType
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
2017-07-13 09:54:00.002 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule power meter Hausverbrauch des heutigen Tages: The argument 'state' must not be null or empty.
2017-07-13 09:54:00.004 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Xiaomi Temp 1 time since: org.eclipse.smarthome.core.library.types.DateTimeType

Made update again and it seems that there is a new openhab2 snapshot again:

Holen: 1 http://openhab.jfrog.io/openhab/openhab-linuxpkg/ unstable/main openhab2 all 2.2.0~20170713081953-1 [53,4 MB]

Will do another upgrade now.

Still no new values from many bindings and no values in the charts. There is only an empty placeholder for the charts-image.

can you post the output of the following command in the openHAB console (ssh openhab@localhost -p 8101 with password habopen):

bundle:list -s |grep -i mapdb
bundle:list -s |grep -i rrd4j

and also the contents of your /etc/openhab2/services/addons.cfg file

https://image.prntscr.com/image/bXUeGnVqQfqOYREYQZx4UQ.png

# The installation package of this openHAB instance
# Note: This is only regarded at the VERY FIRST START of openHAB
# Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal"
# as otherwise your definition might be in conflict with what the installation package defines.
#
# Optional. If not set, the dashboard (https://<yourserver>:8080/) will ask you to choose a package.
#
# Valid options:
#   - minimal  : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups.
#   - simple   : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality!
#   - standard : Default setup for normal users, best for textual setup
#   - expert   : Setup for expert users, especially for people migrating from openHAB 1.x
#   - demo     : A demo setup which includes UIs, a few bindings, config files etc.
#
# See http://docs.openhab.org/configuration/packages.html for a detailed explanation of these packages.
#
package = expert

# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
# This not only makes latest snapshots of add-ons available, it is also required for the installation of
# any legacy 1.x add-on. (default is true)
#
remote = true

# Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is 
# already a 2.x version available (requires remote repo access, see above). (default is false)
#
legacy = true

# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
binding = astro,exec,fritzbox1,fsinternetradio,knx1,milight,networkhealth1,ntp,yahooweather,weather1,zwave,expire1,mqtt1,synopanalyzer,ecotouch1

# A comma-separated list of UIs to install (e.g. "basic,paper")
ui = basic,paper,habmin,habpanel,classic

# A comma-separated list of persistence services to install (e.g. "rrd4j,jpa")
persistence = rrd4j,mapdb,json

# A comma-separated list of actions to install (e.g. "mail,pushover")
#action = mail

# A comma-separated list of transformation services to install (e.g. "map,jsonpath")
transformation = map,regex,scale,exec,jsonpath,javascript

# A comma-separated list of voice services to install (e.g. "marytts,freetts")
#voice = 

# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
misc = openhabcloud,market

ecotouch1 binding is not working, even if i use an older binding manually copied into the addons-folder.

KNX-Binding (knx1) is alos not working.

Astro, xiaomi mihome, ntp and so on are working.

I did an upgrade of the snapshot at 07:45 and later at about 10:00 - everytime there was a new openhab snapshot version available.

But now i see version 984 in the screenshot and you told me, 985 is the latest build???

I did another apt-get update and there is a new openhab2 version, but with the same name as above.

I made another upgrade and now i can see build #985 in paper ui.

Ecotouch-Binding is working again. KNX too.

And i get charts again.

So it seems, it is working again. Thanks for your help!!!

1 Like

I have the same issue.

Build #1322 and openhabian here.

After upgrade, I need to perform a manual restart.

thanks
Andrea