I have just made my second attempt to update from 3.1.1-1 to 3.2, after a first attempt on 23/12.
For the second time it just blew up my OH system, flooding the log with errors (generating some 40MB or errors in the log in less than a minute), forcing me to restore the previous version.
Prior to posting here I did read this thread and a couple of issues mentioned here applied to me.
- I did encounter the karaf error about failing to install add-ones (see below), but had been under the impression that the underlying issue for that had been fixed in the meantime; or, at least, from this discussion, that this was not a fundamental issue preventing the proper functioning of the system.
2021-12-28 13:34:23.538 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-tr064, openhab-persistence-mapdb, openhab-binding-senechome, openhab-misc-openhabcloud, openhab-binding-avmfritz, openhab-binding-network, openhab-persistence-influxdb, openhab-ui-habpanel, openhab-automation-jsscripting, openhab-binding-shelly, openhab-binding-nuki, openhab-binding-mqtt, openhab-transformation-map, openhab-binding-ipcamera, openhab-binding-homematic, openhab-binding-systeminfo, openhab-binding-mail, openhab-persistence-jdbc-mariadb, openhab-transformation-javascript, openhab-binding-sonos, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-ui-basic, openhab-binding-http, openhab-binding-astro': null
- I also saw a mention of the System Info binding causing issues, so I uninstalled that prior to upgrading the second time.
- Also noticed a mentioned issue with Influxdb, but that sounded like it only applied to fresh installs where existing data gets copied in.
Hence asking whether anyone can make sense of the issues I am facing:
Hereās what I do / observe in my case (without really noticing any difference between first and second upgrade attempts):
- upgrade to 3.2 via apt full-upgrade
- in the logs I see the system restarting, loading all models and items
- I also start seeing some output from rules running at system start which post a number of default values to related number items (which are not connected to any bindings)
- then I start getting quite few error messages saying that transformation services MAP and JS are not available (plus all the states to be transformed are NULL) ā suggesting that the bindings are not working at this stage?
2021-12-28 13:33:25.780 [WARN ] [rest.core.item.EnrichedItemDTOMapper] - Failed transforming the state 'NULL' on item 'FboxKurtpresent' with pattern 'MAP(presence.map):%s': Couldn't transform value because transformation service of type 'MAP' is not available.
2021-12-28 13:33:25.879 [WARN ] [rest.core.item.EnrichedItemDTOMapper] - Failed transforming the state 'NULL' on item 'SonosWohnzimmerStecker19216817828DeviceUptime' with pattern 'JS(secstotimeshort.js):%s': Couldn't transform value because transformation service of type 'JS' is not available.
- then I have many rules and also scheduled jobs failing, again because of the NULLs
- also warning that no queryable persistance service influxdb (which is my default service)
2021-12-28 13:33:28.099 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'influxdb'
- then the above-mentioned karaf error of failed installing bindings
- after that OH restarts, starts loading items and rules again
- and then all hell breaks lose, with lots of āError executing EValidatorā or āresolution of uriFragment failedā errors on all the rules; and each of those errors fills 1-2k lines in the logs, hence quickly blowing up the logs. (See start of the first EValidator error message and start of first āresolution of uriFragmentā errors below).
2021-12-28 13:35:04.274 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'allother.rules'
2021-12-28 13:35:06.076 [ERROR] [xtext.validation.CompositeEValidator] - Error executing EValidator
java.lang.UnsupportedOperationException: Missing type computation for expression type: QuantityLiteral / ExpressionTypeComputationState: ExpressionAwareStackedResolvedTypes: [
parent: [
parent: [
parent: [
types:
JvmOperation: Tmp_allotherRules._Elternbad Temperatur() (visibility: PUBLIC, simpleName: _Elternbad Temperatur, identifier: Tmp_allotherRules._Elternbad Temperatur(), deprecated: <unset>) (varArgs: false) (static: true, final: false, abstract: false, synchronized: false, default: false, native: false, strictFloatingPoint: false) -> void
declaredTypeParameters:
parent: [
types:
JvmField: Tmp_allotherRules.counter (visibility: PRIVATE, simpleName: counter, identifier: Tmp_allotherRules.counter, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> Number
JvmField: Tmp_allotherRules.draussenkaelter (visibility: PRIVATE, simpleName: draussenkaelter, identifier: Tmp_allotherRules.draussenkaelter, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> boolean
JvmField: Tmp_allotherRules.ElternbadKalt (visibility: PRIVATE, simpleName: ElternbadKalt, identifier: Tmp_allotherRules.ElternbadKalt, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> boolean
JvmField: Tmp_allotherRules.KinderbadKalt (visibility: PRIVATE, simpleName: KinderbadKalt, identifier: Tmp_allotherRules.KinderbadKalt, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> boolean
JvmField: Tmp_allotherRules.STOP (visibility: PRIVATE, simpleName: STOP, identifier: Tmp_allotherRules.STOP, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> StopMoveType
JvmField: Tmp_allotherRules.PLAY (visibility: PRIVATE, simpleName: PLAY, identifier: Tmp_allotherRules.PLAY, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> PlayPauseType
[...]
2021-12-28 13:35:20.794 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.7.0::0::/1' failed.
java.lang.UnsupportedOperationException: Missing type computation for expression type: QuantityLiteral / ExpressionTypeComputationState: ExpressionAwareStackedResolvedTypes: [
parent: [
parent: [
parent: [
types:
JvmOperation: Tmp_allotherRules._Elternbad Temperatur() (visibility: PUBLIC, simpleName: _Elternbad Temperatur, identifier: Tmp_allotherRules._Elternbad Temperatur(), deprecated: <unset>) (varArgs: false) (static: true, final: false, abstract: false, synchronized: false, default: false, native: false, strictFloatingPoint: false) -> void
declaredTypeParameters:
parent: [
types:
JvmField: Tmp_allotherRules.counter (visibility: PRIVATE, simpleName: counter, identifier: Tmp_allotherRules.counter, deprecated: <unset>) (static: true, final: false, volatile: false, transient: false, constant: <unset>, constantValue: null) -> Number
If anyone had any ideas what might be causing this, it would be greatly appreciated!